|
|
@ -33,8 +33,7 @@ namespace NLDRIVERGL3 {
|
|
|
|
/// The extensions used by NL3D.
|
|
|
|
/// The extensions used by NL3D.
|
|
|
|
struct CGlExtensions
|
|
|
|
struct CGlExtensions
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Is this driver a correct OpenGL 1.2 driver?
|
|
|
|
std::string GLVersion;
|
|
|
|
bool Version1_2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Required Extensions.
|
|
|
|
// Required Extensions.
|
|
|
|
bool ARBMultiTexture;
|
|
|
|
bool ARBMultiTexture;
|
|
|
@ -83,7 +82,6 @@ struct CGlExtensions
|
|
|
|
// ARB Extensions
|
|
|
|
// ARB Extensions
|
|
|
|
bool ARBTextureCompression;
|
|
|
|
bool ARBTextureCompression;
|
|
|
|
bool ARBFragmentProgram;
|
|
|
|
bool ARBFragmentProgram;
|
|
|
|
bool ARBVertexProgram;
|
|
|
|
|
|
|
|
bool ARBTextureNonPowerOfTwo;
|
|
|
|
bool ARBTextureNonPowerOfTwo;
|
|
|
|
bool ARBMultisample;
|
|
|
|
bool ARBMultisample;
|
|
|
|
|
|
|
|
|
|
|
@ -98,7 +96,6 @@ public:
|
|
|
|
CGlExtensions()
|
|
|
|
CGlExtensions()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Fill all false by default.
|
|
|
|
// Fill all false by default.
|
|
|
|
Version1_2= false;
|
|
|
|
|
|
|
|
ARBMultiTexture= false;
|
|
|
|
ARBMultiTexture= false;
|
|
|
|
NbTextureStages= 1;
|
|
|
|
NbTextureStages= 1;
|
|
|
|
EXTTextureEnvCombine= false;
|
|
|
|
EXTTextureEnvCombine= false;
|
|
|
@ -122,7 +119,6 @@ public:
|
|
|
|
ATIEnvMapBumpMap = false;
|
|
|
|
ATIEnvMapBumpMap = false;
|
|
|
|
ATIFragmentShader = false;
|
|
|
|
ATIFragmentShader = false;
|
|
|
|
ARBFragmentProgram = false;
|
|
|
|
ARBFragmentProgram = false;
|
|
|
|
ARBVertexProgram = false;
|
|
|
|
|
|
|
|
NVTextureRectangle = false;
|
|
|
|
NVTextureRectangle = false;
|
|
|
|
EXTTextureRectangle = false;
|
|
|
|
EXTTextureRectangle = false;
|
|
|
|
EXTTextureFilterAnisotropic = false;
|
|
|
|
EXTTextureFilterAnisotropic = false;
|
|
|
@ -144,7 +140,7 @@ public:
|
|
|
|
std::string toString()
|
|
|
|
std::string toString()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string result = "OpenGL version ";
|
|
|
|
std::string result = "OpenGL version ";
|
|
|
|
result += Version1_2 ? "1.2 or above(*)" : "1.1 or below";
|
|
|
|
result += GLVersion;
|
|
|
|
result += "; Available extensions:";
|
|
|
|
result += "; Available extensions:";
|
|
|
|
|
|
|
|
|
|
|
|
result += "\n Texturing: ";
|
|
|
|
result += "\n Texturing: ";
|
|
|
@ -169,7 +165,7 @@ public:
|
|
|
|
result += NVTextureShader ? "NVTextureShader " : "";
|
|
|
|
result += NVTextureShader ? "NVTextureShader " : "";
|
|
|
|
result += ATIFragmentShader ? "ATIFragmentShader " : "";
|
|
|
|
result += ATIFragmentShader ? "ATIFragmentShader " : "";
|
|
|
|
result += ARBFragmentProgram ? "ARBFragmentProgram " : "";
|
|
|
|
result += ARBFragmentProgram ? "ARBFragmentProgram " : "";
|
|
|
|
result += ARBVertexProgram ? "ARBVertexProgram " : "";
|
|
|
|
result += "ARBVertexProgram";
|
|
|
|
|
|
|
|
|
|
|
|
result += "\n Misc: ";
|
|
|
|
result += "\n Misc: ";
|
|
|
|
result += EXTVertexWeighting ? "EXTVertexWeighting " : "";
|
|
|
|
result += EXTVertexWeighting ? "EXTVertexWeighting " : "";
|
|
|
|