|
|
@ -38,6 +38,7 @@ struct CGlExtensions
|
|
|
|
// Required extensions
|
|
|
|
// Required extensions
|
|
|
|
bool GLCore;
|
|
|
|
bool GLCore;
|
|
|
|
bool ARBSeparateShaderObjects;
|
|
|
|
bool ARBSeparateShaderObjects;
|
|
|
|
|
|
|
|
uint NbFragmentTextureUnits;
|
|
|
|
|
|
|
|
|
|
|
|
// Optional extensions
|
|
|
|
// Optional extensions
|
|
|
|
bool EXTTextureCompressionS3TC;
|
|
|
|
bool EXTTextureCompressionS3TC;
|
|
|
@ -46,7 +47,7 @@ struct CGlExtensions
|
|
|
|
|
|
|
|
|
|
|
|
// Required Extensions. (old)
|
|
|
|
// Required Extensions. (old)
|
|
|
|
bool ARBMultiTexture;
|
|
|
|
bool ARBMultiTexture;
|
|
|
|
uint NbTextureStages;
|
|
|
|
// uint NbTextureStages;
|
|
|
|
|
|
|
|
|
|
|
|
// Optional Extensions. (old)
|
|
|
|
// Optional Extensions. (old)
|
|
|
|
bool EXTSecondaryColor;
|
|
|
|
bool EXTSecondaryColor;
|
|
|
@ -67,20 +68,26 @@ public:
|
|
|
|
CGlExtensions()
|
|
|
|
CGlExtensions()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Fill all false by default.
|
|
|
|
// Fill all false by default.
|
|
|
|
|
|
|
|
GLCore = false;
|
|
|
|
|
|
|
|
ARBSeparateShaderObjects = false;
|
|
|
|
|
|
|
|
NbFragmentTextureUnits = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EXTTextureCompressionS3TC = false;
|
|
|
|
|
|
|
|
EXTTextureFilterAnisotropic = false;
|
|
|
|
|
|
|
|
EXTTextureFilterAnisotropicMaximum = 0.f;
|
|
|
|
|
|
|
|
|
|
|
|
ARBMultiTexture= false;
|
|
|
|
ARBMultiTexture= false;
|
|
|
|
NbTextureStages= 1;
|
|
|
|
|
|
|
|
EXTTextureCompressionS3TC= false;
|
|
|
|
|
|
|
|
EXTSecondaryColor= false;
|
|
|
|
EXTSecondaryColor= false;
|
|
|
|
WGLARBPBuffer= false;
|
|
|
|
|
|
|
|
WGLARBPixelFormat= false;
|
|
|
|
|
|
|
|
WGLEXTSwapControl= false;
|
|
|
|
|
|
|
|
GLXEXTSwapControl= false;
|
|
|
|
|
|
|
|
GLXSGISwapControl= false;
|
|
|
|
|
|
|
|
GLXMESASwapControl= false;
|
|
|
|
|
|
|
|
EXTBlendColor= false;
|
|
|
|
EXTBlendColor= false;
|
|
|
|
EXTTextureFilterAnisotropic = false;
|
|
|
|
|
|
|
|
EXTTextureFilterAnisotropicMaximum = 0.f;
|
|
|
|
|
|
|
|
ARBMultisample = false;
|
|
|
|
ARBMultisample = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WGLARBPBuffer = false;
|
|
|
|
|
|
|
|
WGLARBPixelFormat = false;
|
|
|
|
|
|
|
|
WGLEXTSwapControl = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GLXEXTSwapControl = false;
|
|
|
|
|
|
|
|
GLXSGISwapControl = false;
|
|
|
|
|
|
|
|
GLXMESASwapControl = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::string toString()
|
|
|
|
std::string toString()
|
|
|
@ -89,12 +96,16 @@ public:
|
|
|
|
result += GLVersion;
|
|
|
|
result += GLVersion;
|
|
|
|
result += "; Available extensions:";
|
|
|
|
result += "; Available extensions:";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result += "\n Required: ";
|
|
|
|
|
|
|
|
result += GLCore ? "GLCore " : "";
|
|
|
|
|
|
|
|
result += ARBSeparateShaderObjects ? "ARBSeparateShaderObjects " : "";
|
|
|
|
|
|
|
|
|
|
|
|
result += "\n Texturing: ";
|
|
|
|
result += "\n Texturing: ";
|
|
|
|
result += ARBMultiTexture ? "ARBMultiTexture " : "";
|
|
|
|
result += ARBMultiTexture ? "ARBMultiTexture " : "";
|
|
|
|
result += EXTTextureCompressionS3TC ? "EXTTextureCompressionS3TC " : "";
|
|
|
|
result += EXTTextureCompressionS3TC ? "EXTTextureCompressionS3TC " : "";
|
|
|
|
result += EXTTextureFilterAnisotropic ? "EXTTextureFilterAnisotropic (Maximum = " + NLMISC::toString(EXTTextureFilterAnisotropicMaximum) + ") " : "";
|
|
|
|
result += EXTTextureFilterAnisotropic ? "EXTTextureFilterAnisotropic (Maximum = " + NLMISC::toString(EXTTextureFilterAnisotropicMaximum) + ") " : "";
|
|
|
|
result += "texture stages(*) = ";
|
|
|
|
result += "texture stages(*) = ";
|
|
|
|
result += NLMISC::toString(NbTextureStages);
|
|
|
|
result += NLMISC::toString(NbFragmentTextureUnits);
|
|
|
|
|
|
|
|
|
|
|
|
result += "\n Misc: ";
|
|
|
|
result += "\n Misc: ";
|
|
|
|
result += EXTSecondaryColor ? "EXTSecondaryColor " : "";
|
|
|
|
result += EXTSecondaryColor ? "EXTSecondaryColor " : "";
|
|
|
|