NAME

glEdgeFlagPointer - define an array of edge flags

C SPECIFICATION

void ggllEEddggeeFFllaaggPPooiinntteerr( GLsizei _s_t_r_i_d_e,
                        const GLvoid _*_p_t_r )

delim $$

PARAMETERS

_s_t_r_i_d_e
Specifies the byte offset between consecutive edge flags. If _s_t_r_i_d_e is 0 (the initial value), the edge flags are understood to be tightly packed in the array. The initial value is 0.
_p_t_r
Specifies a pointer to the first edge flag in the array. The initial value is zero.

DESCRIPTION

ggllEEddggeeFFllaaggPPooiinntteerr specifies the location and data of an array of boolean edge flags to use when rendering. _s_t_r_i_d_e specifies the byte stride from one edge flag to the next allowing vertices and attributes to be packed into a single array or stored in separate arrays. (Single-array storage may be more efficient on some implementations; see ggllIInntteerrlleeaavveeddAArrrraayyss.)

When an edge flag array is specified, _s_t_r_i_d_e and _p_t_r are saved as client-side state.

To enable and disable the edge flag array, call ggllEEnnaabblleeCClliieennttSSttaattee and
ggllDDiissaabblleeCClliieennttSSttaattee with the argument GGLL__EEDDGGEE__FFLLAAGG__AARRRRAAYY. If enabled, the edge flag array is used when ggllDDrraawwAArrrraayyss, ggllDDrraawwEElleemmeennttss, or ggllAArrrraayyEElleemmeenntt is called.

Use ggllDDrraawwAArrrraayyss to construct a sequence of primitives (all of the same type) from prespecified vertex and vertex attribute arrays. Use ggllAArrrraayyEElleemmeenntt to specify primitives by indexing vertices and vertex attributes and ggllDDrraawwEElleemmeennttss to construct a sequence of primitives by indexing vertices and vertex attributes.

NOTES

ggllEEddggeeFFllaaggPPooiinntteerr is available only if the GL version is 1.1 or greater.

The edge flag array is initially disabled and it won't be accessed when
ggllAArrrraayyEElleemmeenntt, ggllDDrraawwEElleemmeennttss or ggllDDrraawwAArrrraayyss is called.

Execution of ggllEEddggeeFFllaaggPPooiinntteerr is not allowed between the execution of ggllBBeeggiinn and the corresponding execution of ggllEEnndd, but an error may or may not be generated. If no error is generated, the operation is undefined.

ggllEEddggeeFFllaaggPPooiinntteerr is typically implemented on the client side.

Edge flag array parameters are client-side state and are therefore not saved or restored by ggllPPuusshhAAttttrriibb and ggllPPooppAAttttrriibb. Use ggllPPuusshhCClliieennttAAttttrriibb and
ggllPPooppCClliieennttAAttttrriibb instead.

ERRORS

GGLL__IINNVVAALLIIDD__EENNUUMM is generated if _s_t_r_i_d_e is negative.

ASSOCIATED GETS

ggllIIssEEnnaabblleedd with argument GGLL__EEDDGGEE__FFLLAAGG__AARRRRAAYY
ggllGGeett with argument GGLL__EEDDGGEE__FFLLAAGG__AARRRRAAYY__SSTTRRIIDDEE
ggllGGeettPPooiinntteerrvv with argument GGLL__EEDDGGEE__FFLLAAGG__AARRRRAAYY__PPOOIINNTTEERR

SEE ALSO

ggllAArrrraayyEElleemmeenntt((33GG)), ggllCCoolloorrPPooiinntteerr((33GG)), ggllDDrraawwAArrrraayyss((33GG)), ggllDDrraawwEElleemmeennttss((33GG)), ggllEEnnaabbllee((33GG)), ggllGGeettPPooiinntteerrvv((33GG)), ggllIInnddeexxPPooiinntteerr((33GG)), ggllNNoorrmmaallPPooiinntteerr((33GG)), ggllPPooppCClliieennttAAttttrriibb((33GG)),
ggllPPuusshhCClliieennttAAttttrriibb((33GG)), ggllTTeexxCCoooorrddPPooiinntteerr((33GG)), ggllVVeerrtteexxPPooiinntteerr((33GG))