[OPENGL32]
[reactos.git] / dll / opengl / opengl32 / apistubs.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: lib/opengl32/apistubs.c
5 * PURPOSE: OpenGL32 lib, glXXX functions
6 */
7
8 #include "opengl32.h"
9
10
11
12 #ifndef __i386__
13
14 #define USE_GL_FUNC(name, proto_args, call_args, offset, stack) \
15 void GLAPIENTRY gl##name proto_args \
16 { \
17 const GLDISPATCHTABLE * Dispatch = IntGetCurrentDispatchTable(); \
18 if (!Dispatch) \
19 return; \
20 Dispatch->name call_args ; \
21 }
22
23 #define USE_GL_FUNC_RET(name, ret_type, proto_args, call_args, offset, stack) \
24 ret_type GLAPIENTRY gl##name proto_args \
25 { \
26 const GLDISPATCHTABLE * Dispatch = IntGetCurrentDispatchTable(); \
27 if (!Dispatch) \
28 return 0; \
29 return Dispatch->name call_args ; \
30 }
31
32 #include "glfuncs.h"
33
34 #endif //__i386__
35
36 /* Unknown debug function */
37 GLint GLAPIENTRY glDebugEntry(GLint unknown1, GLint unknown2)
38 {
39 return 0;
40 }