39 #elif defined( MACOS_X )
42 #define GL_GLEXT_LEGACY
43 #include <OpenGL/gl.h>
45 #elif defined( __linux__ )
49 #define GL_GLEXT_LEGACY
50 #define GLX_GLXEXT_LEGACY
69 #ifndef GL_GLEXT_VERSION
169 #if defined( __APPLE__ ) || defined( ID_GL_HARDLINK )
514 #if defined( _WIN32 )
516 extern int (
WINAPI * qwglChoosePixelFormat )(
HDC, CONST PIXELFORMATDESCRIPTOR *);
519 extern BOOL (
WINAPI * qwglSetPixelFormat)(
HDC,
int, CONST PIXELFORMATDESCRIPTOR *);
528 extern PROC (
WINAPI * qwglGetProcAddress)(LPCSTR);
547 #if defined( __linux__ )
550 extern XVisualInfo * (*qglXChooseVisual)( Display *
dpy,
int screen,
int *attribList );
551 extern GLXContext (*qglXCreateContext)( Display *
dpy, XVisualInfo *vis, GLXContext shareList, Bool direct );
552 extern void (*qglXDestroyContext)( Display *
dpy, GLXContext ctx );
553 extern Bool (*qglXMakeCurrent)( Display *
dpy, GLXDrawable drawable, GLXContext ctx);
554 extern void (*qglXSwapBuffers)( Display *
dpy, GLXDrawable drawable );
555 extern GLExtension_t (*qglXGetProcAddressARB)(
const GLubyte *procname );
559 #if !defined( GLIMP )
560 #include "../sys/linux/qgl_enforce.h"
565 #endif // hardlinlk vs dlopen
#define qglTexCoordPointer
#define qglPixelTransferf
GLenum GLenum GLenum input
#define qglGetTexLevelParameteriv
GLenum GLenum GLenum GLenum GLenum scale
GLvoid *APIENTRYP PFNGLMAPBUFFERARBPROC(GLenum target, GLenum access)
GLfloat GLfloat GLfloat alpha
#define qglCopyTexSubImage1D
PFNGLVERTEXATTRIBPOINTERARBPROC qglVertexAttribPointerARB
#define qglGetTexLevelParameterfv
#define qglEnableClientState
#define qglFeedbackBuffer
GLdouble GLdouble GLint GLint GLdouble GLdouble GLint vstride
#define qglDisableClientState
GLdouble GLdouble GLint vn
GLdouble GLdouble GLdouble GLdouble zNear
GLenum GLenum GLenum GLenum sumOutput
GLint GLint internalformat
PFNGLGENPROGRAMSARBPROC qglGenProgramsARB
GLenum GLenum GLenum GLenum GLenum componentUsage
CONST PIXELFORMATDESCRIPTOR UINT
GLint GLint GLint yoffset
GLint GLenum internalFormat
PFNGLCOMPRESSEDTEXIMAGE2DARBPROC qglCompressedTexImage2DARB
PFNGLENDFRAGMENTSHADERATIPROC qglEndFragmentShaderATI
PFNGLSAMPLEMAPATIPROC qglSampleMapATI
PFNGLSTENCILOPSEPARATEATIPROC qglStencilOpSeparateATI
PFNGLCOLORFRAGMENTOP2ATIPROC qglColorFragmentOp2ATI
PFNGLDISABLEVERTEXATTRIBARRAYARBPROC qglDisableVertexAttribArrayARB
PFNGLBUFFERSUBDATAARBPROC qglBufferSubDataARB
GLExtension_t GLimp_ExtensionPointer(const char *name)
PFNGLMAPBUFFERARBPROC qglMapBufferARB
GLuint(APIENTRY *qglGenLists)(GLsizei range)
GLint GLint GLsizei GLsizei GLsizei depth
PFNGLGENBUFFERSARBPROC qglGenBuffersARB
#define qglCopyTexImage1D
PFNGLALPHAFRAGMENTOP1ATIPROC qglAlphaFragmentOp1ATI
GLsizei GLenum const GLvoid * indices
PFNGLDELETEBUFFERSARBPROC qglDeleteBuffersARB
#define qglDeleteTextures
PFNGLBINDFRAGMENTSHADERATIPROC qglBindFragmentShaderATI
void(* GLExtension_t)(void)
GLenum GLsizei const GLvoid * pointer
GLsizei GLfloat GLfloat yorig
const GLubyte *APIENTRY * qglGetString(GLenum name)
#define qglGetPixelMapuiv
#define qglPixelTransferi
GLenum GLenum GLenum GLenum mapping
const GLvoid const void *PFNGLGENFRAGMENTSHADERSATIPROC qglGenFragmentShadersATI
const GLuint const GLclampf * priorities
GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte * bitmap
PFNGLCOLORFRAGMENTOP1ATIPROC qglColorFragmentOp1ATI
#define qglPolygonStipple
#define qglTexParameteriv
PFNGLALPHAFRAGMENTOP2ATIPROC qglAlphaFragmentOp2ATI
GLint GLint GLint GLint j2
PFNGLPASSTEXCOORDATIPROC qglPassTexCoordATI
GLdouble GLdouble GLint GLint order
GLdouble GLdouble GLdouble q
PFNGLENABLEVERTEXATTRIBARRAYARBPROC qglEnableVertexAttribArrayARB
#define qglPushClientAttrib
GLenum const GLvoid * lists
PFNGLBINDPROGRAMARBPROC qglBindProgramARB
#define qglGetPolygonStipple
const GLdouble * equation
GLdouble GLdouble GLint ustride
PFNGLGETBUFFERPOINTERVARBPROC qglGetBufferPointervARB
#define qglInterleavedArrays
PFNGLISBUFFERARBPROC qglIsBufferARB
PFNGLBUFFERDATAARBPROC qglBufferDataARB
PROC(WINAPI *qwglGetProcAddress)(LPCSTR)
GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint vorder
GLint GLenum GLint GLint GLsizei GLint border
#define qglCopyTexImage2D
typedef HDC(WINAPI *PFNWGLGETCURRENTREADDCARBPROC)(void)
GLboolean(APIENTRY *qglAreTexturesResident)(GLsizei n
PFNGLDELETEFRAGMENTSHADERATIPROC qglDeleteFragmentShaderATI
GLdouble GLdouble GLdouble y2
typedef VOID(WINAPI *PFNWGLDELETEBUFFERREGIONARBPROC)(HANDLE hRegion)
PFNGLGETCOMPRESSEDTEXIMAGEARBPROC qglGetCompressedTexImageARB
const GLuint GLboolean * residences
PFNGLGETBUFFERSUBDATAARBPROC qglGetBufferSubDataARB
GLdouble GLdouble GLdouble top
GLdouble GLdouble GLdouble w
GLenum GLenum GLenum GLenum GLenum GLenum GLboolean abDotProduct
GLenum GLenum GLenum GLenum GLenum GLenum GLboolean GLboolean GLboolean muxSum
GLfloat GLfloat GLfloat GLfloat nx
PFNGLDEPTHBOUNDSEXTPROC qglDepthBoundsEXT
#define qglGetPixelMapusv
GLdouble GLdouble GLint GLint GLdouble v1
#define qglCopyTexSubImage2D
#define qglEdgeFlagPointer
void(APIENTRY *qglMultiTexCoord2fARB)(GLenum texture
#define qglGetTexParameterfv
PFNGLSETFRAGMENTSHADERCONSTANTATIPROC qglSetFragmentShaderConstantATI
#define qglAreTexturesResident
PFNGLSTENCILFUNCSEPARATEATIPROC qglStencilFuncSeparateATI
PFNGLPROGRAMENVPARAMETER4FVARBPROC qglProgramEnvParameter4fvARB
PFNGLPROGRAMLOCALPARAMETER4FVARBPROC qglProgramLocalParameter4fvARB
PFNGLALPHAFRAGMENTOP3ATIPROC qglAlphaFragmentOp3ATI
PFNGLBINDBUFFERARBPROC qglBindBufferARB
GLdouble GLdouble GLint GLint GLdouble GLdouble v2
GLsizei GLfloat GLfloat GLfloat xmove
PFNGLGETBUFFERPARAMETERIVARBPROC qglGetBufferParameterivARB
GLdouble GLdouble GLint GLint const GLdouble * points
GLenum GLenum GLenum GLenum GLenum GLenum bias
PFNGLCOLORFRAGMENTOP3ATIPROC qglColorFragmentOp3ATI
GLenum GLenum GLenum GLenum GLenum GLenum GLboolean GLboolean cdDotProduct
#define qglTexParameterfv
PFNGLUNMAPBUFFERARBPROC qglUnmapBufferARB
PFNGLPROGRAMSTRINGARBPROC qglProgramStringARB
#define qglPopClientAttrib
PFNGLBEGINFRAGMENTSHADERATIPROC qglBeginFragmentShaderATI
CONST PIXELFORMATDESCRIPTOR LPPIXELFORMATDESCRIPTOR
GLenum GLenum GLenum cdOutput
GLsizei GLfloat GLfloat GLfloat GLfloat ymove
GLsizei GLenum GLenum const GLvoid * pixels
#define qglGetTexParameteriv
GLdouble GLdouble GLint GLint uorder
#define qglPrioritizeTextures
PFNGLACTIVESTENCILFACEEXTPROC qglActiveStencilFaceEXT