Added platform function for gl flushing/buffer switching to allow double buffering or similar.
This commit is contained in:
parent
8c880d91b2
commit
c51d64f228
|
@ -1,4 +1,4 @@
|
|||
/* $Id: opengl_collector_3Demu.h,v 1.1 2007-04-17 16:47:11 masscat Exp $
|
||||
/* $Id: opengl_collector_3Demu.h,v 1.2 2007-04-20 12:42:58 masscat Exp $
|
||||
*/
|
||||
#ifndef _OPENGL_COLLECTOR_3DEMU_H_
|
||||
#define _OPENGL_COLLECTOR_3DEMU_H_ 1
|
||||
|
@ -25,9 +25,41 @@
|
|||
extern GPU3DInterface gpu3D_opengl_collector;
|
||||
|
||||
|
||||
/**
|
||||
* This is called before a set of OpenGL functions are called.
|
||||
* It is up to the platform code to switch to the correct context and similar.
|
||||
*
|
||||
* If the platform code is unsucessful then return 0 and the OpenGL functions
|
||||
* will not be called. Return 1 otherwise.
|
||||
*
|
||||
* If this is not overridden then the call will always fail.
|
||||
*/
|
||||
extern int (*begin_opengl_ogl_collector_platform)( void);
|
||||
|
||||
/**
|
||||
* This is called after a set of OpenGL functions have been called, marking
|
||||
* the end the OpenGL calls.
|
||||
*
|
||||
* If not overridden this function will do nothing.
|
||||
*/
|
||||
extern void (*end_opengl_ogl_collector_platform)( void);
|
||||
|
||||
/**
|
||||
* This is called during the OpenGL Collector's initialisation.
|
||||
*
|
||||
* If the platform code is unsucessful then return 0 and the initialisation
|
||||
* will fail. Return 1 otherwise.
|
||||
*
|
||||
* If this is not overridden then the call will always fail.
|
||||
*/
|
||||
extern int (*initialise_ogl_collector_platform)( void);
|
||||
|
||||
/**
|
||||
* This is called when all the OpenGL functions comprising a single set
|
||||
* have been called.
|
||||
*
|
||||
* If this is not overridden then a call to glFlush() is made.
|
||||
*/
|
||||
extern void (*complete_render_ogl_collector_platform)( void);
|
||||
|
||||
#endif /* End of _OPENGL_COLLECTOR_3DEMU_H_ */
|
||||
|
|
Loading…
Reference in New Issue