Added a little more info into the State contextID docs.

This commit is contained in:
Robert Osfield 2002-10-10 13:06:24 +00:00
parent 50652f389b
commit 6ba195efea

View File

@ -499,7 +499,11 @@ class SG_EXPORT State : public Referenced
set up unique ID for each OpenGL context. This value is set up unique ID for each OpenGL context. This value is
then used by osg::StateAttribure's and osg::Drawable's to then used by osg::StateAttribure's and osg::Drawable's to
help manage OpenGL display list and texture binds appropriate help manage OpenGL display list and texture binds appropriate
for each context.*/ for each context, the contextID simply acts as an index local
arrays that they maintain for the purpose.
Typical settings for contextID are 0,1,2,3... up to the maximum
number of graphics contexts you have setup.
By default contextID is 0.*/
inline void setContextID(unsigned int contextID) { _contextID=contextID; } inline void setContextID(unsigned int contextID) { _contextID=contextID; }
/** Get the current OpenGL context unique ID.*/ /** Get the current OpenGL context unique ID.*/