2013-09-15 20:54:01 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS kernel
|
|
|
|
* FILE: lib/opengl32/apistubs.c
|
|
|
|
* PURPOSE: OpenGL32 lib, glXXX functions
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "opengl32.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-11-19 23:26:11 +00:00
|
|
|
#ifndef __i386__
|
2013-09-15 20:54:01 +00:00
|
|
|
|
2017-11-19 23:26:11 +00:00
|
|
|
#define USE_GL_FUNC(name, proto_args, call_args, offset, stack) \
|
|
|
|
void GLAPIENTRY gl##name proto_args \
|
|
|
|
{ \
|
|
|
|
const GLDISPATCHTABLE * Dispatch = IntGetCurrentDispatchTable(); \
|
|
|
|
if (!Dispatch) \
|
|
|
|
return; \
|
|
|
|
Dispatch->name call_args ; \
|
2013-09-15 20:54:01 +00:00
|
|
|
}
|
|
|
|
|
2017-11-19 23:26:11 +00:00
|
|
|
#define USE_GL_FUNC_RET(name, ret_type, proto_args, call_args, offset, stack) \
|
|
|
|
ret_type GLAPIENTRY gl##name proto_args \
|
|
|
|
{ \
|
|
|
|
const GLDISPATCHTABLE * Dispatch = IntGetCurrentDispatchTable(); \
|
|
|
|
if (!Dispatch) \
|
|
|
|
return 0; \
|
|
|
|
return Dispatch->name call_args ; \
|
2013-09-15 20:54:01 +00:00
|
|
|
}
|
|
|
|
|
2017-11-19 23:26:11 +00:00
|
|
|
#include "glfuncs.h"
|
2013-09-15 20:54:01 +00:00
|
|
|
|
2013-09-21 14:17:59 +00:00
|
|
|
#endif //__i386__
|
2013-09-15 20:54:01 +00:00
|
|
|
|
|
|
|
/* Unknown debug function */
|
|
|
|
GLint GLAPIENTRY glDebugEntry(GLint unknown1, GLint unknown2)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|