[ Previous | Next | Table Of Contents

7.11 HPS pglWaitGL(hab)

HPS pglWaitGL(hab)

Description:

Ensure that all OpenGL rendering commands made prior to pgl- WaitGL are executed before any Gpi rendering calls made after pgl- WaitGL. This call is ignored if there is no current context. OpenGL and Gpi rendering can only be integrated in the same window if the OpenGL context used is an indirect context. This call does an implicit glFinish(). The return value for this function is HPS that has the bitmap set in it to be the bitmap containing OpenGL rendering.

Parameters:
HAB hab Handle to Anchor Block

Return Values:
HPS hps Handle to the PS which is used to blit the OpenGL image to the screen. This HPS can be used for Gpi draw- ing commands. 
NULL No Current Context exists, or current context is not using Gpi to display OpenGL images.

Notes:

Gpi drawing intermingled with OpenGL drawing is only allowed on Indirect contexts that use Gpi to blit their OpenGL ren- dering to the screen. Prior to doing any Gpi drawing, the user must call pglWaitGL in order to flush the OpenGL rendering stream.

pglWaitGL is ignored if there is no current context. 


[ Previous | Next | Table Of Contents ]