![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Create a QNXGL context
qnxglc_t* qnxgl_context_create( qnxgl_bufs_t * buffers, qnxglc_t * share);
qnxgl
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().
A pointer to an opaque qnxglc_t structure, or NULL on failure.
See the code example in the OpenGL section of "Raw Drawing and Animation" in the Photon Programmer's Guide.
Neutrino
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | No |
"OpenGL" section of the Raw Drawing and Animation chapter in the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |