Added support for OpenGL mode black listing to provide better support
for extension checking and invalidation of OpenGL modes associated with extensions.
This commit is contained in:
@@ -410,6 +410,10 @@ class OSG_EXPORT StateSet : public Object
|
||||
/** Run the event callbacks attached directly to this StateSet or to its children.*/
|
||||
void runEventCallbacks(osg::NodeVisitor* nv);
|
||||
|
||||
/** Check the modes associated with this StateSet are supported by current OpenGL drivers,
|
||||
* and if not set the associated mode in osg::State to be black listed/invalid.
|
||||
* Return true if any modes have been black listed.*/
|
||||
bool checkValididityOfAssociatedModes(State& state) const;
|
||||
|
||||
/** call compile on all StateAttributes contained within this StateSet.*/
|
||||
void compileGLObjects(State& state) const;
|
||||
|
||||
Reference in New Issue
Block a user