|
|
@ -63,45 +63,7 @@ void (*nglGetProcAddress(const char *procName))()
|
|
|
|
// ***************************************************************************
|
|
|
|
// ***************************************************************************
|
|
|
|
// The exported function names
|
|
|
|
// The exported function names
|
|
|
|
|
|
|
|
|
|
|
|
// ARB_multitexture
|
|
|
|
// Core 3.30
|
|
|
|
NEL_PFNGLACTIVETEXTUREARBPROC nglActiveTextureARB;
|
|
|
|
|
|
|
|
NEL_PFNGLCLIENTACTIVETEXTUREARBPROC nglClientActiveTextureARB;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD1SARBPROC nglMultiTexCoord1sARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD1IARBPROC nglMultiTexCoord1iARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD1FARBPROC nglMultiTexCoord1fARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD1DARBPROC nglMultiTexCoord1dARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD2SARBPROC nglMultiTexCoord2sARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD2IARBPROC nglMultiTexCoord2iARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD2FARBPROC nglMultiTexCoord2fARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD2DARBPROC nglMultiTexCoord2dARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD3SARBPROC nglMultiTexCoord3sARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD3IARBPROC nglMultiTexCoord3iARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD3FARBPROC nglMultiTexCoord3fARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD3DARBPROC nglMultiTexCoord3dARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD4SARBPROC nglMultiTexCoord4sARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD4IARBPROC nglMultiTexCoord4iARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD4FARBPROC nglMultiTexCoord4fARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD4DARBPROC nglMultiTexCoord4dARB;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD1SVARBPROC nglMultiTexCoord1svARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD1IVARBPROC nglMultiTexCoord1ivARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD1FVARBPROC nglMultiTexCoord1fvARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD1DVARBPROC nglMultiTexCoord1dvARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD2SVARBPROC nglMultiTexCoord2svARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD2IVARBPROC nglMultiTexCoord2ivARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD2FVARBPROC nglMultiTexCoord2fvARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD2DVARBPROC nglMultiTexCoord2dvARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD3SVARBPROC nglMultiTexCoord3svARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD3IVARBPROC nglMultiTexCoord3ivARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD3FVARBPROC nglMultiTexCoord3fvARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD3DVARBPROC nglMultiTexCoord3dvARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD4SVARBPROC nglMultiTexCoord4svARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD4IVARBPROC nglMultiTexCoord4ivARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD4FVARBPROC nglMultiTexCoord4fvARB;
|
|
|
|
|
|
|
|
NEL_PFNGLMULTITEXCOORD4DVARBPROC nglMultiTexCoord4dvARB;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Core
|
|
|
|
|
|
|
|
PFNGLATTACHSHADERPROC nglAttachShader;
|
|
|
|
PFNGLATTACHSHADERPROC nglAttachShader;
|
|
|
|
PFNGLCOMPILESHADERPROC nglCompileShader;
|
|
|
|
PFNGLCOMPILESHADERPROC nglCompileShader;
|
|
|
|
PFNGLCREATEPROGRAMPROC nglCreateProgram;
|
|
|
|
PFNGLCREATEPROGRAMPROC nglCreateProgram;
|
|
|
@ -329,53 +291,6 @@ namespace NLDRIVERGL3 {
|
|
|
|
// ***************************************************************************
|
|
|
|
// ***************************************************************************
|
|
|
|
// Extensions registrations, and Windows function Registration.
|
|
|
|
// Extensions registrations, and Windows function Registration.
|
|
|
|
|
|
|
|
|
|
|
|
// *********************************
|
|
|
|
|
|
|
|
static bool setupARBMultiTexture(const char *glext)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
H_AUTO_OGL(setupARBMultiTexture);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CHECK_EXT("GL_ARB_multitexture");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLACTIVETEXTUREARBPROC, glActiveTextureARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLCLIENTACTIVETEXTUREARBPROC, glClientActiveTextureARB);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD1SARBPROC, glMultiTexCoord1sARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD1IARBPROC, glMultiTexCoord1iARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD1FARBPROC, glMultiTexCoord1fARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD1DARBPROC, glMultiTexCoord1dARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD2SARBPROC, glMultiTexCoord2sARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD2IARBPROC, glMultiTexCoord2iARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD2FARBPROC, glMultiTexCoord2fARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD2DARBPROC, glMultiTexCoord2dARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD3SARBPROC, glMultiTexCoord3sARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD3IARBPROC, glMultiTexCoord3iARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD3FARBPROC, glMultiTexCoord3fARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD3DARBPROC, glMultiTexCoord3dARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD4SARBPROC, glMultiTexCoord4sARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD4IARBPROC, glMultiTexCoord4iARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD4FARBPROC, glMultiTexCoord4fARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD4DARBPROC, glMultiTexCoord4dARB);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD1SVARBPROC, glMultiTexCoord1svARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD1IVARBPROC, glMultiTexCoord1ivARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD1FVARBPROC, glMultiTexCoord1fvARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD1DVARBPROC, glMultiTexCoord1dvARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD2SVARBPROC, glMultiTexCoord2svARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD2IVARBPROC, glMultiTexCoord2ivARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD2FVARBPROC, glMultiTexCoord2fvARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD2DVARBPROC, glMultiTexCoord2dvARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD3SVARBPROC, glMultiTexCoord3svARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD3IVARBPROC, glMultiTexCoord3ivARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD3FVARBPROC, glMultiTexCoord3fvARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD3DVARBPROC, glMultiTexCoord3dvARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD4SVARBPROC, glMultiTexCoord4svARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD4IVARBPROC, glMultiTexCoord4ivARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD4FVARBPROC, glMultiTexCoord4fvARB);
|
|
|
|
|
|
|
|
CHECK_ADDRESS(NEL_PFNGLMULTITEXCOORD4DVARBPROC, glMultiTexCoord4dvARB);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// *********************************
|
|
|
|
// *********************************
|
|
|
|
static bool setupEXTTextureCompressionS3TC(const char *glext)
|
|
|
|
static bool setupEXTTextureCompressionS3TC(const char *glext)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -659,11 +574,6 @@ void registerGlExtensions(CGlExtensions &ext)
|
|
|
|
GLint nbFragmentTextureUnits;
|
|
|
|
GLint nbFragmentTextureUnits;
|
|
|
|
glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &nbFragmentTextureUnits);
|
|
|
|
glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &nbFragmentTextureUnits);
|
|
|
|
ext.NbFragmentTextureUnits = (nbFragmentTextureUnits > IDRV_MAT_MAXTEXTURES) ? IDRV_MAT_MAXTEXTURES : nbFragmentTextureUnits; // FIXME GL3
|
|
|
|
ext.NbFragmentTextureUnits = (nbFragmentTextureUnits > IDRV_MAT_MAXTEXTURES) ? IDRV_MAT_MAXTEXTURES : nbFragmentTextureUnits; // FIXME GL3
|
|
|
|
|
|
|
|
|
|
|
|
// ---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Check ARBMultiTexture
|
|
|
|
|
|
|
|
ext.ARBMultiTexture= setupARBMultiTexture(glext);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|