Graphics Reference
In-Depth Information
(continued)
width
width in pixels of window to create
height
height in pixels of window to create
flags
bitfield for the window creation flags
ES_WINDOW_RGB
—speciies that the color buffer should
have R, G, B channels
ES_WINDOW_ALPHA
—speciies that the color buffer should
have alpha
ES_WINDOW_DEPTH
—speciies that a depth buffer should be
created
ES_WINDOW_STENCIL
—speciies that a stencil buffer
should be created
ES_WINDOW_MULTISAMPLE
—speciies that a multisample
buffer should be created
Returns:
GL_TRUE
if window creation is successful;
GL_FALSE
otherwise
void ESUTIL_API
esRegisterDrawFunc
(ESContext *
esContext,
void(ESCALLBACK
*drawFunc
) (ESContext *))
Register a draw callback function to be used to render each frame.
Parameters:
esContext
application context
drawFunc
draw callback function that will be used to render the scene
void ESUTIL_API
esRegisterUpdateFunc
(ESContext *
esContext
,
void(ESCALLBACK *
updateFunc
)
(ESContext *, float))
Register an update callback function to be used to update on each time step.
Parameters:
esContext
application context
updateFunc
update callback function that will be used to render the
scene