00001 #ifdef _WIN32 00002 #include <windows.h> 00003 #endif 00004 00005 #include <GL/gl.h> 00006 #include "glext.h" 00007 00008 extern PFNGLGETOBJECTPARAMETERIVARBPROC glGetObjectParameterivARB; 00009 extern PFNGLGETATTACHEDOBJECTSARBPROC glGetAttachedObjectsARB; 00010 extern PFNGLDELETEOBJECTARBPROC glDeleteObjectARB; 00011 extern PFNGLDETACHOBJECTARBPROC glDetachObjectARB; 00012 extern PFNGLGENPROGRAMSARBPROC glGenProgramsARB; 00013 extern PFNGLBINDPROGRAMARBPROC glBindProgramARB; 00014 extern PFNGLPROGRAMSTRINGARBPROC glProgramStringARB; 00015 extern PFNGLCREATESHADEROBJECTARBPROC glCreateShaderObjectARB; 00016 extern PFNGLSHADERSOURCEARBPROC glShaderSourceARB; 00017 extern PFNGLCOMPILESHADERARBPROC glCompileShaderARB; 00018 extern PFNGLGETINFOLOGARBPROC glGetInfoLogARB; 00019 extern PFNGLCREATEPROGRAMOBJECTARBPROC glCreateProgramObjectARB; 00020 extern PFNGLATTACHOBJECTARBPROC glAttachObjectARB; 00021 extern PFNGLLINKPROGRAMARBPROC glLinkProgramARB; 00022 extern PFNGLPROGRAMENVPARAMETER4FARBPROC glProgramEnvParameter4fARB; 00023 extern PFNGLUSEPROGRAMOBJECTARBPROC glUseProgramObjectARB; 00024 extern PFNGLGETUNIFORMLOCATIONARBPROC glGetUniformLocationARB; 00025 extern PFNGLUNIFORM1IARBPROC glUniform1iARB; 00026 extern PFNGLUNIFORM1FARBPROC glUniform1fARB; 00027 extern PFNGLACTIVETEXTUREARBPROC glActiveTextureARB; 00028 extern PFNGLDELETERENDERBUFFERSEXTPROC glDeleteRenderbuffersEXT; 00029 extern PFNGLGENRENDERBUFFERSEXTPROC glGenRenderbuffersEXT; 00030 extern PFNGLBINDFRAMEBUFFEREXTPROC glBindFramebufferEXT; 00031 extern PFNGLDELETEFRAMEBUFFERSEXTPROC glDeleteFramebuffersEXT; 00032 extern PFNGLGENFRAMEBUFFERSEXTPROC glGenFramebuffersEXT; 00033 extern PFNGLBINDRENDERBUFFEREXTPROC glBindRenderbufferEXT; 00034 extern PFNGLRENDERBUFFERSTORAGEEXTPROC glRenderbufferStorageEXT; 00035 extern PFNGLFRAMEBUFFERTEXTURE2DEXTPROC glFramebufferTexture2DEXT; 00036 extern PFNGLDRAWBUFFERSARBPROC glDrawBuffersARB; 00037 extern PFNGLDELETEBUFFERSARBPROC glDeleteBuffersARB; 00038 extern PFNGLBINDBUFFERARBPROC glBindBufferARB; 00039 extern PFNGLGENBUFFERSARBPROC glGenBuffersARB; 00040 extern PFNGLGETATTRIBLOCATIONARBPROC glGetAttribLocationARB; 00041 extern PFNGLENABLEVERTEXATTRIBARRAYARBPROC glEnableVertexAttribArrayARB; 00042 extern PFNGLVERTEXATTRIBPOINTERARBPROC glVertexAttribPointerARB; 00043 extern PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC glFramebufferRenderbufferEXT; 00044 extern PFNGLBUFFERDATAARBPROC glBufferDataARB; 00045 extern PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC glCheckFramebufferStatusEXT; 00046 extern PFNGLPROGRAMPARAMETERIEXTPROC glProgramParameteriEXT; 00047 00049 00052 void SetupAllExtensions(); 00053 00054 //Public Domain 2007 Charles Lohr 00055 //NOTE: OpenGL Code is Copyright OpenGL.