preparing for gl manipulations
This commit is contained in:
parent
88161637c9
commit
9badd2dd42
|
@ -110,6 +110,17 @@ GraphicsInterface_struct *GFXCoreList[] = {
|
||||||
NULL
|
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
|
// INITIALIZATION
|
||||||
|
|
|
@ -44,6 +44,11 @@ extern "C" {
|
||||||
#define max(a,b) (((a)>(b))?(a):(b))
|
#define max(a,b) (((a)>(b))?(a):(b))
|
||||||
#endif
|
#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_MAIN 0
|
||||||
#define GPU_SUB 1
|
#define GPU_SUB 1
|
||||||
|
|
Loading…
Reference in New Issue