NAME
glEnableClientState, glDisableClientState
- enable or disable client-side capability
C SPECIFICATION
void ggllEEnnaabblleeCClliieennttSSttaattee(
GLenum cap); _1_._1 )
PARAMETERS
-
_1_._1
-
Specifies the capability to enable.
Symbolic constants
GGLL__CCOOLLOORR__AARRRRAAYY,
GGLL__EEDDGGEE__FFLLAAGG__AARRRRAAYY,
GGLL__IINNDDEEXX__AARRRRAAYY,
GGLL__NNOORRMMAALL__AARRRRAAYY,
GGLL__TTEEXXTTUURREE__CCOOOORRDD__AARRRRAAYY, and
GGLL__VVEERRTTEEXX__AARRRRAAYY
are accepted.
C SPECIFICATION
void ggllDDiissaabblleeCClliieennttSSttaattee(
GLenum cap); _1_._1 )
PARAMETERS
-
_1_._1
-
Specifies the capability to disable.
DESCRIPTION
ggllEEnnaabblleeCClliieennttSSttaattee and ggllDDiissaabblleeCClliieennttSSttaattee
enable or disable individual client-side capabilities. By default, all
client-side capabilities are disabled.
Both
ggllEEnnaabblleeCClliieennttSSttaattee and ggllDDiissaabblleeCClliieennttSSttaattee take a
single argument, _1_._1, which can assume one of the following
values:
-
GGLL__CCOOLLOORR__AARRRRAAYY
-
If enabled, the color array is enabled for writing and used during
rendering when ggllAArrrraayyEElleemmeenntt, ggllDDrraawwAArrrraayyss,
ggllDDrraawwEElleemmeenntt, or ggllDDrraawwRRaannggeeEElleemmeennttss is called. See
ggllCCoolloorrPPooiinntteerr.
-
GGLL__EEDDGGEE__FFLLAAGG__AARRRRAAYY
-
If enabled, the edge flag array is enabled for writing and used during
rendering when ggllAArrrraayyEElleemmeenntt, ggllDDrraawwAArrrraayyss,
ggllDDrraawwEElleemmeenntt, or ggllDDrraawwRRaannggeeEElleemmeennttss is called. See
ggllEEddggeeFFllaaggPPooiinntteerr.
-
GGLL__IINNDDEEXX__AARRRRAAYY
-
If enabled, the index array is enabled for writing and used during
rendering when ggllAArrrraayyEElleemmeenntt, ggllDDrraawwAArrrraayyss,
ggllDDrraawwEElleemmeenntt, or ggllDDrraawwRRaannggeeEElleemmeennttss is called. See
ggllIInnddeexxPPooiinntteerr.
-
GGLL__NNOORRMMAALL__AARRRRAAYY
-
If enabled, the normal array is enabled for writing and used during
rendering when ggllAArrrraayyEElleemmeenntt, ggllDDrraawwAArrrraayyss,
ggllDDrraawwEElleemmeenntt, or ggllDDrraawwRRaannggeeEElleemmeennttss is called. See
ggllNNoorrmmaallPPooiinntteerr.
-
GGLL__TTEEXXTTUURREE__CCOOOORRDD__AARRRRAAYY
-
If enabled, the texture coordinate array is enabled for writing and used during
rendering when ggllAArrrraayyEElleemmeenntt, ggllDDrraawwAArrrraayyss,
ggllDDrraawwEElleemmeenntt, or ggllDDrraawwRRaannggeeEElleemmeennttss is called. See
ggllTTeexxCCoooorrddPPooiinntteerr.
-
GGLL__VVEERRTTEEXX__AARRRRAAYY
-
If enabled, the vertex array is enabled for writing and used during
rendering when ggllAArrrraayyEElleemmeenntt, ggllDDrraawwAArrrraayyss,
ggllDDrraawwEElleemmeenntt, or ggllDDrraawwRRaannggeeEElleemmeennttss is called. See
ggllVVeerrtteexxPPooiinntteerr.
NOTES
ggllEEnnaabblleeCClliieennttSSttaattee is available only if the GL version is 1.1 or greater.
If GGLL__AARRBB__mmuullttiitteexxttuurree is supported, enabling and disabling
GGLL__TTEEXXTTUURREE__CCOOOORRDD__AARRRRAAYY affects the active client texture unit.
The active client texture unit is controlled with
ggllCClliieennttAAccttiivveeTTeexxttuurreeAARRBB.
ERRORS
GGLL__IINNVVAALLIIDD__EENNUUMM is generated if _1_._1 is not an accepted value.
ggllEEnnaabblleeCClliieennttSSttaattee is not allowed between the execution of ggllBBeeggiinn and the
corresponding ggllEEnndd, but an error may or may not be generated. If
no error is generated, the behavior is undefined.
SEE ALSO
ggllAArrrraayyEElleemmeenntt((33GG)),
ggllCClliieennttAAccttiivveeTTeexxttuurreeAARRBB((33GG)),
ggllCCoolloorrPPooiinntteerr((33GG)),
ggllDDrraawwAArrrraayyss((33GG)),
ggllDDrraawwEElleemmeennttss((33GG)),
ggllEEddggeeFFllaaggPPooiinntteerr((33GG)),
ggllEEnnaabbllee((33GG)),
ggllGGeettPPooiinntteerrvv((33GG)),
ggllIInnddeexxPPooiinntteerr((33GG)),
ggllIInntteerrlleeaavveeddAArrrraayyss((33GG)),
ggllNNoorrmmaallPPooiinntteerr((33GG)),
ggllTTeexxCCoooorrddPPooiinntteerr((33GG)),
ggllVVeerrtteexxPPooiinntteerr((33GG))