preparing for gl manipulations

This commit is contained in:
damdoum 2007-02-07 12:08:19 +00:00
parent 88161637c9
commit 9badd2dd42
2 changed files with 16 additions and 0 deletions

View File

@ -110,6 +110,17 @@ GraphicsInterface_struct *GFXCoreList[] = {
NULL
};
BOOL _fun_gl_Begin (int screen) { return FALSE; }
void _fun_gl_End (int screen) { }
fun_gl_Begin Open_GL_beg = _fun_gl_Begin;
fun_gl_End Open_GL_end = _fun_gl_End;
void register_gl_fun(fun_gl_Begin beg,fun_gl_End end) {
Open_GL_beg = beg;
Open_GL_end = end;
}
/*****************************************************************************/
// INITIALIZATION

View File

@ -44,6 +44,11 @@ extern "C" {
#define max(a,b) (((a)>(b))?(a):(b))
#endif
typedef BOOL (*fun_gl_Begin) (int screen);
typedef void (*fun_gl_End) (int screen);
// the GUI should use this function prior to all gl calls
// if call to beg succeeds opengl draw
void register_gl_fun(fun_gl_Begin beg,fun_gl_End end);
#define GPU_MAIN 0
#define GPU_SUB 1