NAME
glTexCoordPointer
- define an array of texture coordinates
C SPECIFICATION
void ggllTTeexxCCoooorrddPPooiinntteerr(
GLint _s_i_z_e,
GLenum _t_y_p_e,
GLsizei _s_t_r_i_d_e,
const GLvoid _*_p_t_r )
delim $$
PARAMETERS
-
_s_i_z_e
-
Specifies the number of coordinates per array element. Must be 1, 2, 3
or 4. The initial value is 4.
-
_t_y_p_e
-
Specifies the data type of each texture coordinate.
Symbolic constants
GGLL__SSHHOORRTT,
GGLL__IINNTT,
GGLL__FFLLOOAATT,
or GGLL__DDOOUUBBLLEE
are accepted. The initial value is GGLL__FFLLOOAATT.
-
_s_t_r_i_d_e
-
Specifies the byte offset between consecutive array elements.
If _s_t_r_i_d_e is 0, the array elements are understood
to be tightly packed. The initial value is 0.
-
_p_t_r
-
Specifies a pointer to the first coordinate of the first element in the
array. The initial value is 0.
DESCRIPTION
ggllTTeexxCCoooorrddPPooiinntteerr specifies the location and data of an array of texture
coordinates to use when rendering.
_s_i_z_e specifies the number of coordinates per
element, and must be 1, 2, 3, or 4.
_t_y_p_e specifies the data type of each texture coordinate
and _s_t_r_i_d_e specifies the byte stride from one
array element 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 a texture
coordinate array is specified, _s_i_z_e, _t_y_p_e, _s_t_r_i_d_e, and _p_t_r
are saved client-side state.
To enable and disable the texture coordinate array, call
ggllEEnnaabblleeCClliieennttSSttaattee and ggllDDiissaabblleeCClliieennttSSttaattee with the argument
GGLL__TTEEXXTTUURREE__CCOOOORRDD__AARRRRAAYY. If
enabled, the texture coordinate array is used
when ggllDDrraawwAArrrraayyss, ggllDDrraawwEElleemmeennttss, ggllDDrraawwRRaannggeeEElleemmeennttss 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
ggllTTeexxCCoooorrddPPooiinntteerr is available only if the GL version is 1.1 or greater.
The texture coordinate array is initially disabled and it won't be
accessed when
ggllAArrrraayyEElleemmeenntt, ggllDDrraawwEElleemmeennttss, ggllDDrraawwRRaannggeeEElleemmeennttss, or
ggllDDrraawwAArrrraayyss is called.
Execution of ggllTTeexxCCoooorrddPPooiinntteerr 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.
ggllTTeexxCCoooorrddPPooiinntteerr is typically implemented on the client side with no protocol.
The texture coordinate array parameters are client-side state and are
therefore not saved or restored by ggllPPuusshhAAttttrriibb and ggllPPooppAAttttrriibb.
Use ggllPPuusshhCClliieennttAAttttrriibb and
ggllPPooppCClliieennttAAttttrriibb instead.
When the GGLL__AARRBB__iimmaaggiinngg extension is supported, ggllTTeexxCCoooorrddPPooiinntteerr updates the
texture coordinate array state of the active client texture unit,
specified with ggllCClliieennttAAccttiivveeTTeexxttuurreeAARRBB.
ERRORS
GGLL__IINNVVAALLIIDD__VVAALLUUEE is generated if _s_i_z_e is not 1, 2, 3, or 4.
GGLL__IINNVVAALLIIDD__EENNUUMM is generated if _t_y_p_e is not an accepted value.
GGLL__IINNVVAALLIIDD__VVAALLUUEE is generated if _s_t_r_i_d_e is negative.
ASSOCIATED GETS
ggllIIssEEnnaabblleedd with argument GGLL__TTEEXXTTUURREE__CCOOOORRDD__AARRRRAAYY
ggllGGeett with argument GGLL__TTEEXXTTUURREE__CCOOOORRDD__AARRRRAAYY__SSIIZZEE
ggllGGeett with argument GGLL__TTEEXXTTUURREE__CCOOOORRDD__AARRRRAAYY__TTYYPPEE
ggllGGeettPPooiinntteerrvv with argument GGLL__TTEEXXTTUURREE__CCOOOORRDD__AARRRRAAYY__PPOOIINNTTEERR
SEE ALSO
ggllAArrrraayyEElleemmeenntt((33GG)),
ggllCClliieennttAAccttiivveeTTeexxttuurreeAARRBB((33GG)),
ggllCCoolloorrPPooiinntteerr((33GG)),
ggllDDrraawwAArrrraayyss((33GG)),
ggllDDrraawwEElleemmeennttss((33GG)),
ggllDDrraawwRRaannggeeEElleemmeennttss((33GG)),
ggllEEddggeeFFllaaggPPooiinntteerr((33GG)),
ggllEEnnaabbllee((33GG)),
ggllGGeettPPooiinntteerrvv((33GG)),
ggllIInnddeexxPPooiinntteerr((33GG)),
ggllNNoorrmmaallPPooiinntteerr((33GG)),
ggllPPooppCClliieennttAAttttrriibb((33GG)),
ggllPPuusshhCClliieennttAAttttrriibb((33GG)),
ggllTTeexxCCoooorrdd((33GG)),
ggllVVeerrtteexxPPooiinntteerr((33GG))