nngxUpdateState Function
NNGX_APICALL void NNGX_APIENTRY nngxUpdateState(
GLbitfield statemask
);
| Name | Description | |
|---|---|---|
| in | statemask | State flags to update (specified as a bitwise OR) |
Updates the specified states.
Updates the DMPGL states. Using this function to update the states will cause a complete command to be generated during validation.
The glDrawElements and glDrawArrays functions check the DMPGL state and, if it is updated, generate the relevant commands. Commands are not usually generated if the state has not been updated. If you call this function, the states will be updated, and a complete command will be scheduled for generation. This function does not itself generate commands. Call to a function such as glDrawElements or glDrawArrays after this function generates commands.
The state in which a complete command is scheduled to be generated will start when this function is called and will continue until the first call to glDrawElements or glDrawArrays. If you call nngxValidateState before glDrawElements or glDrawArrays, the commands for each validated state flag will cease to be generated.
Set statemask equal to a bitwise OR of the state flags to update.
You can use this function in combination with nngxValidateState to generate complete commands for each state flag.
This function will not generate any errors.
CONFIDENTIAL