diff --git a/reactos/lib/opengl32/opengl32.c b/reactos/lib/opengl32/opengl32.c index 7a8e1463d73..b56cb2d2e6a 100644 --- a/reactos/lib/opengl32/opengl32.c +++ b/reactos/lib/opengl32/opengl32.c @@ -1,4 +1,4 @@ -/* $Id: opengl32.c,v 1.2 2004/02/01 17:07:16 royce Exp $ +/* $Id: opengl32.c,v 1.3 2004/02/01 17:18:47 royce Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -16,6 +16,13 @@ #define EXPORT __declspec(dllexport) +const char* OPENGL32_funcnames[GLIDX_COUNT] = +{ +#define X(X) #X, + GLFUNCS_MACRO +#undef X +}; + static void OPENGL32_ThreadDetach() { /* FIXME - do we need to release some HDC or something? */ diff --git a/reactos/lib/opengl32/opengl32.h b/reactos/lib/opengl32/opengl32.h index 80bf3f5accd..0f3be5bd5fb 100644 --- a/reactos/lib/opengl32/opengl32.h +++ b/reactos/lib/opengl32/opengl32.h @@ -1,4 +1,4 @@ -/* $Id: opengl32.h,v 1.2 2004/02/01 17:07:16 royce Exp $ +/* $Id: opengl32.h,v 1.3 2004/02/01 17:18:48 royce Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -12,6 +12,24 @@ #ifndef OPENGL32_PRIVATE_H #define OPENGL32_PRIVATE_H +#define GLFUNCS_MACRO \ + X(glAccum) \ + X(glAddSwapHintRectWIN) \ + X(glArrayElement) \ + X(glBegin) \ + X(glBindTexture) + +enum glfunc_indices +{ + GLIDX_INVALID = -1, +#define X(X) GLIDX_##X, + GLFUNCS_MACRO +#undef X + GLIDX_COUNT +}; + +extern const char* OPENGL32_funcnames[GLIDX_COUNT]; + typedef void WINAPI