OpenSceneGraph
Classes | Namespaces | Macros
State File Reference
#include <osg/Export>
#include <osg/GLExtensions>
#include <osg/StateSet>
#include <osg/Matrix>
#include <osg/Uniform>
#include <osg/BufferObject>
#include <osg/Observer>
#include <osg/Timer>
#include <osg/VertexArrayState>
#include <osg/ShaderComposer>
#include <osg/FrameStamp>
#include <osg/DisplaySettings>
#include <osg/Polytope>
#include <osg/Viewport>
#include <osg/AttributeDispatchers>
#include <osg/GraphicsCostEstimator>
#include <iosfwd>
#include <vector>
#include <map>
#include <set>
#include <string>

Classes

class  osg::State
 Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings, implements lazy state updating and provides accessors for querying the current state. More...
 
struct  osg::State::ApplyModeProxy
 Proxy helper class for applyig a model in a local scope, with the preivous value being resotred automatically on leaving the scope that proxy was created. More...
 
struct  osg::State::ApplyTextureModeProxy
 
struct  osg::State::SetCurrentVertexArrayStateProxy
 Proxy helper class for applyig a VertexArrayState in a local scope, with the preivous value being resotred automatically on leaving the scope that proxy was created. More...
 
struct  osg::State::DynamicObjectRenderingCompletedCallback
 
struct  osg::State::ModeStack
 
struct  osg::State::AttributeStack
 
struct  osg::State::UniformStack
 
struct  osg::State::DefineStack
 
struct  osg::State::DefineMap
 

Namespaces

 osg
 The core osg library provides the basic scene graph classes such as Nodes, State and Drawables, and maths and general helper classes.
 

Macros

#define OSG_STATE   1
 
#define GL_TEXTURE0   0x84C0
 
#define GL_TEXTURE1   0x84C1
 
#define GL_TEXTURE2   0x84C2
 
#define GL_TEXTURE3   0x84C3
 
#define GL_TEXTURE4   0x84C4
 
#define GL_TEXTURE5   0x84C5
 
#define GL_TEXTURE6   0x84C6
 
#define GL_TEXTURE7   0x84C7
 
#define OSG_GL_DEBUG(message)
 macro for use with osg::StateAttribute::apply methods for detecting and reporting OpenGL error messages. More...
 

Macro Definition Documentation

◆ GL_TEXTURE0

#define GL_TEXTURE0   0x84C0

◆ GL_TEXTURE1

#define GL_TEXTURE1   0x84C1

◆ GL_TEXTURE2

#define GL_TEXTURE2   0x84C2

◆ GL_TEXTURE3

#define GL_TEXTURE3   0x84C3

◆ GL_TEXTURE4

#define GL_TEXTURE4   0x84C4

◆ GL_TEXTURE5

#define GL_TEXTURE5   0x84C5

◆ GL_TEXTURE6

#define GL_TEXTURE6   0x84C6

◆ GL_TEXTURE7

#define GL_TEXTURE7   0x84C7

◆ OSG_GL_DEBUG

#define OSG_GL_DEBUG (   message)
Value:
if (state.getFineGrainedErrorDetection()) \
{ \
GLenum errorNo = glGetError(); \
if (errorNo!=GL_NO_ERROR) \
{ \
osg::notify(WARN)<<"Warning: detected OpenGL error '"<<gluErrorString(errorNo)<<" "<<message<<endl; \
}\
}
OSG_EXPORT const GLubyte * gluErrorString(GLenum error)
Definition: Notify:33
OSG_EXPORT std::ostream & notify(const NotifySeverity severity)
notify messaging function for providing fatal through to verbose debugging messages.

macro for use with osg::StateAttribute::apply methods for detecting and reporting OpenGL error messages.

◆ OSG_STATE

#define OSG_STATE   1