[Previous] [Contents] [Index] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

qnxgl_set_current()

Set the current QNXGL context

Synopsis:

int qnxgl_set_current( qnxglc_t * gc );

Arguments:

gc
A pointer to the QNXGL context you wish make current.

Library:

qnxgl

Description:

This function makes a qnxglc_t QNXGL context the currently active context. All subsequent OpenGL functions operate on this context.

Returns:

0
The context was successfully set.
-1
An error occurred.

Examples:

See the code example in the OpenGL section of "Raw Drawing and Animation" in the Photon Programmer's Guide.

Classification:

Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread No

See also:

qnxgl_get_current()

"OpenGL" section of the Raw Drawing and Animation chapter in the Photon Programmer's Guide


[Previous] [Contents] [Index] [Next]