mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-17 13:01:41 +00:00
Changed: #573 Get the maximum anisotropic value
This commit is contained in:
parent
c7c6c2ce21
commit
7586b64494
2 changed files with 11 additions and 1 deletions
|
@ -1420,6 +1420,12 @@ void registerGlExtensions(CGlExtensions &ext)
|
||||||
// Check GL_EXT_texture_filter_anisotropic
|
// Check GL_EXT_texture_filter_anisotropic
|
||||||
ext.EXTTextureFilterAnisotropic = setupEXTTextureFilterAnisotropic(glext);
|
ext.EXTTextureFilterAnisotropic = setupEXTTextureFilterAnisotropic(glext);
|
||||||
|
|
||||||
|
if (ext.EXTTextureFilterAnisotropic)
|
||||||
|
{
|
||||||
|
// get the maximum value
|
||||||
|
glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &ext.EXTTextureFilterAnisotropicMaximum);
|
||||||
|
}
|
||||||
|
|
||||||
// Check GL_EXT_framebuffer_object
|
// Check GL_EXT_framebuffer_object
|
||||||
ext.FrameBufferObject = setupFrameBufferObject(glext);
|
ext.FrameBufferObject = setupFrameBufferObject(glext);
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,8 @@ struct CGlExtensions
|
||||||
bool FrameBufferMultisample;
|
bool FrameBufferMultisample;
|
||||||
bool PackedDepthStencil;
|
bool PackedDepthStencil;
|
||||||
bool EXTTextureFilterAnisotropic;
|
bool EXTTextureFilterAnisotropic;
|
||||||
|
float EXTTextureFilterAnisotropicMaximum;
|
||||||
|
|
||||||
// true if NVVertexProgram and if we know that VP is emulated
|
// true if NVVertexProgram and if we know that VP is emulated
|
||||||
bool NVVertexProgramEmulated;
|
bool NVVertexProgramEmulated;
|
||||||
bool EXTSecondaryColor;
|
bool EXTSecondaryColor;
|
||||||
|
@ -170,6 +172,7 @@ public:
|
||||||
NVTextureRectangle = false;
|
NVTextureRectangle = false;
|
||||||
EXTTextureRectangle = false;
|
EXTTextureRectangle = false;
|
||||||
EXTTextureFilterAnisotropic = false;
|
EXTTextureFilterAnisotropic = false;
|
||||||
|
EXTTextureFilterAnisotropicMaximum = 1.f;
|
||||||
ARBTextureRectangle = false;
|
ARBTextureRectangle = false;
|
||||||
ARBTextureNonPowerOfTwo = false;
|
ARBTextureNonPowerOfTwo = false;
|
||||||
ARBMultisample = false;
|
ARBMultisample = false;
|
||||||
|
@ -206,7 +209,7 @@ public:
|
||||||
result += NVTextureRectangle ? "NVTextureRectangle " : "";
|
result += NVTextureRectangle ? "NVTextureRectangle " : "";
|
||||||
result += EXTTextureRectangle ? "EXTTextureRectangle " : "";
|
result += EXTTextureRectangle ? "EXTTextureRectangle " : "";
|
||||||
result += ARBTextureRectangle ? "ARBTextureRectangle " : "";
|
result += ARBTextureRectangle ? "ARBTextureRectangle " : "";
|
||||||
result += EXTTextureFilterAnisotropic ? "EXTTextureFilterAnisotropic " : "";
|
result += EXTTextureFilterAnisotropic ? "EXTTextureFilterAnisotropic (Maximum = " + NLMISC::toString(EXTTextureFilterAnisotropicMaximum) + ") " : "";
|
||||||
result += ARBTextureNonPowerOfTwo ? "ARBTextureNonPowerOfTwo " : "";
|
result += ARBTextureNonPowerOfTwo ? "ARBTextureNonPowerOfTwo " : "";
|
||||||
result += "texture stages(*) = ";
|
result += "texture stages(*) = ";
|
||||||
result += NLMISC::toString(NbTextureStages);
|
result += NLMISC::toString(NbTextureStages);
|
||||||
|
@ -236,6 +239,7 @@ public:
|
||||||
result += WGLEXTSwapControl ? "WGLEXTSwapControl " : "";
|
result += WGLEXTSwapControl ? "WGLEXTSwapControl " : "";
|
||||||
#elif defined(NL_OS_MAC)
|
#elif defined(NL_OS_MAC)
|
||||||
#elif defined(NL_OS_UNIX)
|
#elif defined(NL_OS_UNIX)
|
||||||
|
result += "\n GLX: ";
|
||||||
result += GLXEXTSwapControl ? "GLXEXTSwapControl " : "";
|
result += GLXEXTSwapControl ? "GLXEXTSwapControl " : "";
|
||||||
result += GLXSGISwapControl ? "GLXSGISwapControl " : "";
|
result += GLXSGISwapControl ? "GLXSGISwapControl " : "";
|
||||||
result += GLXMESASwapControl ? "GLXMESASwapControl " : "";
|
result += GLXMESASwapControl ? "GLXMESASwapControl " : "";
|
||||||
|
|
Loading…
Reference in a new issue