class SG_EXPORT osg::TexGen

TexGen - encapsulates the OpenGL glTexGen (texture coordinate generation) state

Inheritance:


Public Methods

[more] TexGen( void )
[more]virtual Object* clone() const
[more]virtual bool isSameKindAs(const Object* obj) const
[more]virtual const char* className() const
[more]virtual const Type getType() const
[more]virtual void setStateSetModes(StateSet& ds, const GLModeValue value) const
[more]virtual void apply(State& state) const
[more]inline void setMode( const Mode mode )
[more]const Mode getMode() const
[more]void setPlane(const Coord which, const Vec4& plane)
[more]const Vec4& getPlane(const Coord which) const

Public Members

[more]enum Mode
[more]enum Coord

Protected Fields

[more]Mode _mode
[more]Vec4 _plane_s
additional texgen coefficents for GL_OBJECT_PLANE or GL_EYE_PLANE,
[more]Vec4 _plane_t
[more]Vec4 _plane_r
[more]Vec4 _plane_q

Protected Methods

[more]virtual ~TexGen( void )


Inherited from StateAttribute:

Public Methods

ovirtual void compile(State&) const

Public Members

otypedef GLenum GLMode
otypedef unsigned int GLModeValue
otypedef unsigned int OverrideValue
oenum Values
oenum Type


Inherited from Object:


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (Referenced&)
oinline void ref() const
oinline void unref() const
oinline const int referenceCount() const

Protected Fields

omutable int _refCount


Documentation

TexGen - encapsulates the OpenGL glTexGen (texture coordinate generation) state
o TexGen( void )

ovirtual Object* clone() const

ovirtual bool isSameKindAs(const Object* obj) const

ovirtual const char* className() const

ovirtual const Type getType() const

ovirtual void setStateSetModes(StateSet& ds, const GLModeValue value) const

ovirtual void apply(State& state) const

oenum Mode

o OBJECT_LINEAR

o EYE_LINEAR

o SPHERE_MAP

oinline void setMode( const Mode mode )

oconst Mode getMode() const

oenum Coord

o S

o T

o R

o Q

ovoid setPlane(const Coord which, const Vec4& plane)

oconst Vec4& getPlane(const Coord which) const

ovirtual ~TexGen( void )

oMode _mode

oVec4 _plane_s
additional texgen coefficents for GL_OBJECT_PLANE or GL_EYE_PLANE,

oVec4 _plane_t

oVec4 _plane_r

oVec4 _plane_q


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.