[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_context_create()

Create a QNXGL context

Synopsis:

qnxglc_t* qnxgl_context_create(
  qnxgl_bufs_t *  buffers,
  qnxglc_t *  share);

Arguments:

buffers
A pointer to the buffers that this context will use.
share
A QNXGL context with which display list information is to be shared with the newly created context.

Library:

qnxgl

Description:

This function creates a qnxglc_t QNXGL context,an opaque structure that's used to store all information relating to an OpenGL state machine. It needs to be associated with a qnxgl_bufs_t created with qnxgl_buffers_create(), so buffers can't be NULL and must point to a valid QNXGL buffer.

Release the context when you're done with it, by using qnxgl_context_destroy().

Returns:

A pointer to an opaque qnxglc_t structure, or NULL on failure.

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_buffers_create()

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


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