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