Added State::computeSecondaryColorSupported() & computeFogCoordSupported().

Updated NEWS.
This commit is contained in:
Robert Osfield
2002-11-13 11:09:55 +00:00
parent b6838c703e
commit bd7762a73e
3 changed files with 67 additions and 22 deletions

View File

@@ -16,6 +16,12 @@ State::State()
_currentActiveTextureUnit=0;
_currentClientActiveTextureUnit=0;
_isSecondColorSupportResolved = false;
_isSecondColorSupported = false;
_isFogCoordSupportResolved = false;
_isFogCoordSupported = false;
}
State::~State()
@@ -512,3 +518,17 @@ void State::setSecondaryColorPointer( GLint size, GLenum type,
_secondaryColorArray._dirty = false;
}
}
bool State::computeSecondaryColorSupported() const
{
_isSecondColorSupportResolved = true;
_isSecondColorSupported = osg::isGLExtensionSupported("GL_EXT_secondary_color");;
return _isSecondColorSupported;
}
bool State::computeFogCoordSupported() const
{
_isFogCoordSupportResolved = true;
_isFogCoordSupported = osg::isGLExtensionSupported("GL_EXT_fog_coord");
return _isFogCoordSupported;
}