|
|
|
@ -101,137 +101,6 @@ NEL_PFNGLMULTITEXCOORD4IVARBPROC nglMultiTexCoord4ivARB;
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD4FVARBPROC nglMultiTexCoord4fvARB;
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD4DVARBPROC nglMultiTexCoord4dvARB;
|
|
|
|
|
|
|
|
|
|
// SecondaryColor extension
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3BEXTPROC nglSecondaryColor3bEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3BVEXTPROC nglSecondaryColor3bvEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3DEXTPROC nglSecondaryColor3dEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3DVEXTPROC nglSecondaryColor3dvEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3FEXTPROC nglSecondaryColor3fEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3FVEXTPROC nglSecondaryColor3fvEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3IEXTPROC nglSecondaryColor3iEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3IVEXTPROC nglSecondaryColor3ivEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3SEXTPROC nglSecondaryColor3sEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3SVEXTPROC nglSecondaryColor3svEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3UBEXTPROC nglSecondaryColor3ubEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3UBVEXTPROC nglSecondaryColor3ubvEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3UIEXTPROC nglSecondaryColor3uiEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3UIVEXTPROC nglSecondaryColor3uivEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3USEXTPROC nglSecondaryColor3usEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLOR3USVEXTPROC nglSecondaryColor3usvEXT;
|
|
|
|
|
NEL_PFNGLSECONDARYCOLORPOINTEREXTPROC nglSecondaryColorPointerEXT;
|
|
|
|
|
|
|
|
|
|
// BlendColor extension
|
|
|
|
|
NEL_PFNGLBLENDCOLOREXTPROC nglBlendColorEXT;
|
|
|
|
|
|
|
|
|
|
// GL_ATI_envmap_bumpmap extension
|
|
|
|
|
PFNGLTEXBUMPPARAMETERIVATIPROC nglTexBumpParameterivATI;
|
|
|
|
|
PFNGLTEXBUMPPARAMETERFVATIPROC nglTexBumpParameterfvATI;
|
|
|
|
|
PFNGLGETTEXBUMPPARAMETERIVATIPROC nglGetTexBumpParameterivATI;
|
|
|
|
|
PFNGLGETTEXBUMPPARAMETERFVATIPROC nglGetTexBumpParameterfvATI;
|
|
|
|
|
|
|
|
|
|
// GL_ATI_fragment_shader extension
|
|
|
|
|
NEL_PFNGLGENFRAGMENTSHADERSATIPROC nglGenFragmentShadersATI;
|
|
|
|
|
NEL_PFNGLBINDFRAGMENTSHADERATIPROC nglBindFragmentShaderATI;
|
|
|
|
|
NEL_PFNGLDELETEFRAGMENTSHADERATIPROC nglDeleteFragmentShaderATI;
|
|
|
|
|
NEL_PFNGLBEGINFRAGMENTSHADERATIPROC nglBeginFragmentShaderATI;
|
|
|
|
|
NEL_PFNGLENDFRAGMENTSHADERATIPROC nglEndFragmentShaderATI;
|
|
|
|
|
NEL_PFNGLPASSTEXCOORDATIPROC nglPassTexCoordATI;
|
|
|
|
|
NEL_PFNGLSAMPLEMAPATIPROC nglSampleMapATI;
|
|
|
|
|
NEL_PFNGLCOLORFRAGMENTOP1ATIPROC nglColorFragmentOp1ATI;
|
|
|
|
|
NEL_PFNGLCOLORFRAGMENTOP2ATIPROC nglColorFragmentOp2ATI;
|
|
|
|
|
NEL_PFNGLCOLORFRAGMENTOP3ATIPROC nglColorFragmentOp3ATI;
|
|
|
|
|
NEL_PFNGLALPHAFRAGMENTOP1ATIPROC nglAlphaFragmentOp1ATI;
|
|
|
|
|
NEL_PFNGLALPHAFRAGMENTOP2ATIPROC nglAlphaFragmentOp2ATI;
|
|
|
|
|
NEL_PFNGLALPHAFRAGMENTOP3ATIPROC nglAlphaFragmentOp3ATI;
|
|
|
|
|
NEL_PFNGLSETFRAGMENTSHADERCONSTANTATIPROC nglSetFragmentShaderConstantATI;
|
|
|
|
|
|
|
|
|
|
// GL_ARB_fragment_program
|
|
|
|
|
// the following functions are the sames than with GL_ARB_vertex_program
|
|
|
|
|
//NEL_PFNGLPROGRAMSTRINGARBPROC nglProgramStringARB;
|
|
|
|
|
//NEL_PFNGLBINDPROGRAMARBPROC nglBindProgramARB;
|
|
|
|
|
//NEL_PFNGLDELETEPROGRAMSARBPROC nglDeleteProgramsARB;
|
|
|
|
|
//NEL_PFNGLGENPROGRAMSARBPROC nglGenProgramsARB;
|
|
|
|
|
//NEL_PFNGLPROGRAMENVPARAMETER4DARBPROC nglProgramEnvParameter4dARB;
|
|
|
|
|
//NEL_PFNGLPROGRAMENVPARAMETER4DVARBPROC nglProgramEnvParameter4dvARB;
|
|
|
|
|
//NEL_PFNGLPROGRAMENVPARAMETER4FARBPROC nglProgramEnvParameter4fARB;
|
|
|
|
|
//NEL_PFNGLPROGRAMENVPARAMETER4FVARBPROC nglProgramEnvParameter4fvARB;
|
|
|
|
|
NEL_PFNGLPROGRAMLOCALPARAMETER4DARBPROC nglGetProgramLocalParameter4dARB;
|
|
|
|
|
NEL_PFNGLPROGRAMLOCALPARAMETER4DVARBPROC nglGetProgramLocalParameter4dvARB;
|
|
|
|
|
NEL_PFNGLPROGRAMLOCALPARAMETER4FARBPROC nglGetProgramLocalParameter4fARB;
|
|
|
|
|
NEL_PFNGLPROGRAMLOCALPARAMETER4FVARBPROC nglGetProgramLocalParameter4fvARB;
|
|
|
|
|
//NEL_PFNGLGETPROGRAMENVPARAMETERDVARBPROC nglGetProgramEnvParameterdvARB;
|
|
|
|
|
//NEL_PFNGLGETPROGRAMENVPARAMETERFVARBPROC nglGetProgramEnvParameterfvARB;
|
|
|
|
|
//NEL_PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC nglGetProgramLocalParameterdvARB;
|
|
|
|
|
//NEL_PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC nglGetProgramLocalParameterfvARB;
|
|
|
|
|
//NEL_PFNGLGETPROGRAMIVARBPROC nglGetProgramivARB;
|
|
|
|
|
//NEL_PFNGLGETPROGRAMSTRINGARBPROC nglGetProgramStringARB;
|
|
|
|
|
//NEL_PFNGLISPROGRAMARBPROC nglIsProgramARB;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// GL_ARB_vertex_program
|
|
|
|
|
PFNGLVERTEXATTRIB1SARBPROC nglVertexAttrib1sARB;
|
|
|
|
|
PFNGLVERTEXATTRIB1FARBPROC nglVertexAttrib1fARB;
|
|
|
|
|
PFNGLVERTEXATTRIB1DARBPROC nglVertexAttrib1dARB;
|
|
|
|
|
PFNGLVERTEXATTRIB2SARBPROC nglVertexAttrib2sARB;
|
|
|
|
|
PFNGLVERTEXATTRIB2FARBPROC nglVertexAttrib2fARB;
|
|
|
|
|
PFNGLVERTEXATTRIB2DARBPROC nglVertexAttrib2dARB;
|
|
|
|
|
PFNGLVERTEXATTRIB3SARBPROC nglVertexAttrib3sARB;
|
|
|
|
|
PFNGLVERTEXATTRIB3FARBPROC nglVertexAttrib3fARB;
|
|
|
|
|
PFNGLVERTEXATTRIB3DARBPROC nglVertexAttrib3dARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4SARBPROC nglVertexAttrib4sARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4FARBPROC nglVertexAttrib4fARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4DARBPROC nglVertexAttrib4dARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4NUBARBPROC nglVertexAttrib4NubARB;
|
|
|
|
|
PFNGLVERTEXATTRIB1SVARBPROC nglVertexAttrib1svARB;
|
|
|
|
|
PFNGLVERTEXATTRIB1FVARBPROC nglVertexAttrib1fvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB1DVARBPROC nglVertexAttrib1dvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB2SVARBPROC nglVertexAttrib2svARB;
|
|
|
|
|
PFNGLVERTEXATTRIB2FVARBPROC nglVertexAttrib2fvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB2DVARBPROC nglVertexAttrib2dvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB3SVARBPROC nglVertexAttrib3svARB;
|
|
|
|
|
PFNGLVERTEXATTRIB3FVARBPROC nglVertexAttrib3fvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB3DVARBPROC nglVertexAttrib3dvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4BVARBPROC nglVertexAttrib4bvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4SVARBPROC nglVertexAttrib4svARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4IVARBPROC nglVertexAttrib4ivARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4UBVARBPROC nglVertexAttrib4ubvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4USVARBPROC nglVertexAttrib4usvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4UIVARBPROC nglVertexAttrib4uivARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4FVARBPROC nglVertexAttrib4fvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4DVARBPROC nglVertexAttrib4dvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4NBVARBPROC nglVertexAttrib4NbvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4NSVARBPROC nglVertexAttrib4NsvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4NIVARBPROC nglVertexAttrib4NivARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4NUBVARBPROC nglVertexAttrib4NubvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4NUSVARBPROC nglVertexAttrib4NusvARB;
|
|
|
|
|
PFNGLVERTEXATTRIB4NUIVARBPROC nglVertexAttrib4NuivARB;
|
|
|
|
|
PFNGLVERTEXATTRIBPOINTERARBPROC nglVertexAttribPointerARB;
|
|
|
|
|
PFNGLENABLEVERTEXATTRIBARRAYARBPROC nglEnableVertexAttribArrayARB;
|
|
|
|
|
PFNGLDISABLEVERTEXATTRIBARRAYARBPROC nglDisableVertexAttribArrayARB;
|
|
|
|
|
PFNGLPROGRAMSTRINGARBPROC nglProgramStringARB;
|
|
|
|
|
PFNGLBINDPROGRAMARBPROC nglBindProgramARB;
|
|
|
|
|
PFNGLDELETEPROGRAMSARBPROC nglDeleteProgramsARB;
|
|
|
|
|
PFNGLGENPROGRAMSARBPROC nglGenProgramsARB;
|
|
|
|
|
PFNGLPROGRAMENVPARAMETER4FARBPROC nglProgramEnvParameter4fARB;
|
|
|
|
|
PFNGLPROGRAMENVPARAMETER4DARBPROC nglProgramEnvParameter4dARB;
|
|
|
|
|
PFNGLPROGRAMENVPARAMETER4FVARBPROC nglProgramEnvParameter4fvARB;
|
|
|
|
|
PFNGLPROGRAMENVPARAMETER4DVARBPROC nglProgramEnvParameter4dvARB;
|
|
|
|
|
PFNGLPROGRAMLOCALPARAMETER4FARBPROC nglProgramLocalParameter4fARB;
|
|
|
|
|
PFNGLPROGRAMLOCALPARAMETER4DARBPROC nglProgramLocalParameter4dARB;
|
|
|
|
|
PFNGLPROGRAMLOCALPARAMETER4FVARBPROC nglProgramLocalParameter4fvARB;
|
|
|
|
|
PFNGLPROGRAMLOCALPARAMETER4DVARBPROC nglProgramLocalParameter4dvARB;
|
|
|
|
|
PFNGLGETPROGRAMENVPARAMETERFVARBPROC nglGetProgramEnvParameterfvARB;
|
|
|
|
|
PFNGLGETPROGRAMENVPARAMETERDVARBPROC nglGetProgramEnvParameterdvARB;
|
|
|
|
|
PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC nglGetProgramLocalParameterfvARB;
|
|
|
|
|
PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC nglGetProgramLocalParameterdvARB;
|
|
|
|
|
PFNGLGETPROGRAMIVARBPROC nglGetProgramivARB;
|
|
|
|
|
PFNGLGETPROGRAMSTRINGARBPROC nglGetProgramStringARB;
|
|
|
|
|
PFNGLGETVERTEXATTRIBDVARBPROC nglGetVertexAttribdvARB;
|
|
|
|
|
PFNGLGETVERTEXATTRIBFVARBPROC nglGetVertexAttribfvARB;
|
|
|
|
|
PFNGLGETVERTEXATTRIBIVARBPROC nglGetVertexAttribivARB;
|
|
|
|
|
PFNGLGETVERTEXATTRIBPOINTERVARBPROC nglGetVertexAttribPointervARB;
|
|
|
|
|
PFNGLISPROGRAMARBPROC nglIsProgramARB;
|
|
|
|
|
|
|
|
|
|
// Core
|
|
|
|
|
PFNGLATTACHSHADERPROC nglAttachShader;
|
|
|
|
|
PFNGLCOMPILESHADERPROC nglCompileShader;
|
|
|
|
@ -333,6 +202,8 @@ PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC nglCompressedTexSubImage2D;
|
|
|
|
|
PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC nglCompressedTexSubImage1D;
|
|
|
|
|
PFNGLGETCOMPRESSEDTEXIMAGEPROC nglGetCompressedTexImage;
|
|
|
|
|
|
|
|
|
|
PFNGLBLENDCOLORPROC nglBlendColor;
|
|
|
|
|
|
|
|
|
|
// GL_ARB_separate_shader_objects
|
|
|
|
|
PFNGLUSEPROGRAMSTAGESPROC nglUseProgramStages;
|
|
|
|
|
PFNGLACTIVESHADERPROGRAMPROC nglActiveShaderProgram;
|
|
|
|
@ -516,33 +387,6 @@ static bool setupEXTTextureCompressionS3TC(const char *glext)
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// *********************************
|
|
|
|
|
static bool setupEXTSecondaryColor(const char *glext)
|
|
|
|
|
{
|
|
|
|
|
H_AUTO_OGL(setupEXTSecondaryColor);
|
|
|
|
|
CHECK_EXT("GL_EXT_secondary_color");
|
|
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3BEXTPROC, glSecondaryColor3bEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3BVEXTPROC, glSecondaryColor3bvEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3DEXTPROC, glSecondaryColor3dEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3DVEXTPROC, glSecondaryColor3dvEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3FEXTPROC, glSecondaryColor3fEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3FVEXTPROC, glSecondaryColor3fvEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3IEXTPROC, glSecondaryColor3iEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3IVEXTPROC, glSecondaryColor3ivEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3SEXTPROC, glSecondaryColor3sEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3SVEXTPROC, glSecondaryColor3svEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3UBEXTPROC, glSecondaryColor3ubEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3UBVEXTPROC, glSecondaryColor3ubvEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3UIEXTPROC, glSecondaryColor3uiEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3UIVEXTPROC, glSecondaryColor3uivEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3USEXTPROC, glSecondaryColor3usEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLOR3USVEXTPROC, glSecondaryColor3usvEXT);
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLSECONDARYCOLORPOINTEREXTPROC, glSecondaryColorPointerEXT);
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// *********************************
|
|
|
|
|
static bool setupWGLARBPBuffer(const char *glext)
|
|
|
|
|
{
|
|
|
|
@ -575,17 +419,6 @@ static bool setupWGLARBPixelFormat (const char *glext)
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// *********************************
|
|
|
|
|
static bool setupEXTBlendColor(const char *glext)
|
|
|
|
|
{
|
|
|
|
|
H_AUTO_OGL(setupEXTBlendColor);
|
|
|
|
|
CHECK_EXT("GL_EXT_blend_color");
|
|
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLBLENDCOLOREXTPROC, glBlendColorEXT);
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
|
static bool setupEXTTextureFilterAnisotropic(const char *glext)
|
|
|
|
|
{
|
|
|
|
@ -696,6 +529,8 @@ static bool setupGLCore(const char *glext)
|
|
|
|
|
CHECK_ADDRESS(PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC, glCompressedTexSubImage1D);
|
|
|
|
|
CHECK_ADDRESS(PFNGLGETCOMPRESSEDTEXIMAGEPROC, glGetCompressedTexImage);
|
|
|
|
|
|
|
|
|
|
CHECK_ADDRESS(PFNGLBLENDCOLORPROC, glBlendColor);
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -827,11 +662,8 @@ void registerGlExtensions(CGlExtensions &ext)
|
|
|
|
|
|
|
|
|
|
// ---
|
|
|
|
|
|
|
|
|
|
// Check EXTSecondaryColor
|
|
|
|
|
ext.EXTSecondaryColor= setupEXTSecondaryColor(glext);
|
|
|
|
|
|
|
|
|
|
// Check EXTBlendColor
|
|
|
|
|
ext.EXTBlendColor= setupEXTBlendColor(glext);
|
|
|
|
|
// Check ARBMultiTexture
|
|
|
|
|
ext.ARBMultiTexture= setupARBMultiTexture(glext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|