Encapsulates OpenGL state modes and attributes.
Encapsulates OpenGL state modes and attributes. Used to specificy textures etc of osg::GeoSet's which hold references to a single osg::GeoState. GeoState can be shared between GeoSet's and is recommend if possible as it minimize expensive state changes in the graphics pipeline.
static GeoState* instance()
virtual Object* clone() const
virtual bool isSameKindAs(Object* obj)
const char* className() const
void setGlobalDefaults()
void setAllToInherit()
void setMode(AttributeType type, AttributeMode mode)
AttributeMode getMode(AttributeType type) const
void setAttribute(AttributeType type, Object *attribute)
Object* getAttribute(AttributeType type) const
bool isTransparent()
void apply()
void apply(GeoState* global, GeoState* prev)
bool check()
static AttributeMode combineMode(const AttributeMode g, const AttributeMode p, const AttributeMode c)
static AttributeMode mergeMode(const AttributeMode lhs, const AttributeMode rhs)
virtual ~GeoState()
GeoState(const GeoState&)
GeoState& operator = (const GeoState&)
virtual bool readLocalData(Input& fr)
virtual bool writeLocalData(Output& fw)
bool matchModeStr(const char* str, AttributeMode& mode)
const char* getModeStr(AttributeMode flag)
AttributeMode _transparencing
AttributeMode _face_culling
AttributeMode _lighting
AttributeMode _texturing
AttributeMode _fogging
AttributeMode _texgening
AttributeMode _antialiasing
AttributeMode _colortable
AttributeMode _pointSmoothing
AttributeMode _polygonOffsetting
AttributeMode _alphaTesting
ref_ptr<Texture> _texture
ref_ptr<TexGen> _texgen
ref_ptr<Material> _material
ref_ptr<TexEnv> _texenv
ref_ptr<Transparency> _transparency
ref_ptr<TexMat> _texmat
ref_ptr<Fog> _fog
Alphabetic index HTML hierarchy of classes or Java