ReactOS 0.4.15-dev-7953-g1f49173
apistubs.c
Go to the documentation of this file.
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) \
15void 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) \
24ret_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 */
38{
39 return 0;
40}
GLint GLAPIENTRY glDebugEntry(GLint unknown1, GLint unknown2)
Definition: apistubs.c:37
#define GLAPIENTRY
Definition: glu.h:44
int GLint
Definition: gl.h:156