class SG_EXPORT osg::TexEnvCombine

TexEnvCombine - encapsulates the OpenGL glTexEnvCombine (texture environment) state

Inheritance:


Public Methods

[more] TexEnvCombine()
[more] TexEnvCombine(const TexEnvCombine& texenv, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy
[more] META_StateAttribute(osg, TexEnvCombine, TEXENV)
[more]virtual bool isTextureAttribute() const
[more]virtual int compare(const StateAttribute& sa) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs
[more]void setCombine_RGB(GLint cm)
[more]void setCombine_Alpha(GLint cm)
[more]GLint getCombine_RGB() const
[more]GLint getCombine_Alpha() const
[more]void setSource0_RGB(GLint sp)
[more]void setSource1_RGB(GLint sp)
[more]void setSource2_RGB(GLint sp)
[more]void setSource0_Alpha(GLint sp)
[more]void setSource1_Alpha(GLint sp)
[more]void setSource2_Alpha(GLint sp)
[more]GLint getSource0_RGB() const
[more]GLint getSource1_RGB() const
[more]GLint getSource2_RGB() const
[more]GLint getSource0_Alpha() const
[more]GLint getSource1_Alpha() const
[more]GLint getSource2_Alpha() const
[more]void setOperand0_RGB(GLint op)
[more]void setOperand1_RGB(GLint op)
[more]void setOperand2_RGB(GLint op)
[more]void setOperand0_Alpha(GLint op)
[more]void setOperand1_Alpha(GLint op)
[more]void setOperand2_Alpha(GLint op)
[more]GLint getOperand0_RGB() const
[more]GLint getOperand1_RGB() const
[more]GLint getOperand2_RGB() const
[more]GLint getOperand0_Alpha() const
[more]GLint getOperand1_Alpha() const
[more]GLint getOperand2_Alpha() const
[more]void setScale_RGB(float scale)
[more]void setScale_Alpha(float scale)
[more]float getScale_RGB() const
[more]float getScale_Alpha() const
[more]void setConstantColor( const Vec4& color )
[more]const Vec4& getConstantColor() const
[more]virtual void apply(State& state) const

Public Members

[more]enum CombineParam
[more]enum SourceParam
[more]enum OperandParam

Protected Fields

[more]bool _needsTexEnvCrossbar
[more]GLint _combine_RGB
[more]GLint _combine_Alpha
[more]GLint _source0_RGB
[more]GLint _source1_RGB
[more]GLint _source2_RGB
[more]GLint _source0_Alpha
[more]GLint _source1_Alpha
[more]GLint _source2_Alpha
[more]GLint _operand0_RGB
[more]GLint _operand1_RGB
[more]GLint _operand2_RGB
[more]GLint _operand0_Alpha
[more]GLint _operand1_Alpha
[more]GLint _operand2_Alpha
[more]float _scale_RGB
[more]float _scale_Alpha
[more]osg::Vec4 _constantColor

Protected Methods

[more]virtual ~TexEnvCombine()
[more]inline bool needsTexEnvCombiner(GLint value) const
[more]void computeNeedoForTexEnvCombiners()


Inherited from StateAttribute:

Public Methods

ovirtual Object* cloneType() const
ovirtual Object* clone(const CopyOp&) const
ovirtual bool isSameKindAs(const Object* obj) const
ovirtual const char* libraryName() const
ovirtual const char* className() const
ovirtual const Type getType() const
obool operator < (const StateAttribute& rhs) const
obool operator == (const StateAttribute& rhs) const
obool operator != (const StateAttribute& rhs) const
ovirtual void getAssociatedModes(std::vector<GLMode>& ) const
ovirtual void compile(State&) const

Public Members

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


Inherited from Object:

Public Methods

oinline void setDataVariance(const DataVariance dv)
oinline const DataVariance getDataVariance() const
oinline void setUserData(Referenced* obj)
oinline Referenced* getUserData()
oinline const Referenced* getUserData() const

Public Members

oenum DataVariance

Protected Fields

oDataVariance _dataVariance
oref_ptr<Referenced> _userData


Inherited from Referenced:

Public Methods

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

Protected Fields

omutable int _refCount


Documentation

TexEnvCombine - encapsulates the OpenGL glTexEnvCombine (texture environment) state
o TexEnvCombine()

o TexEnvCombine(const TexEnvCombine& texenv, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy

o META_StateAttribute(osg, TexEnvCombine, TEXENV)

ovirtual bool isTextureAttribute() const

ovirtual int compare(const StateAttribute& sa) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs

oenum CombineParam

o REPLACE

o MODULATE

o ADD

o ADD_SIGNED

o INTERPOLATE

o SUBTRACT

o DOT3_RGB

o DOT3_RGBA

ovoid setCombine_RGB(GLint cm)

ovoid setCombine_Alpha(GLint cm)

oGLint getCombine_RGB() const

oGLint getCombine_Alpha() const

oenum SourceParam

o CONSTANT

o PRIMARY_COLOR

o PREVIOUS

o TEXTURE

o TEXTURE0

o TEXTURE1

o TEXTURE2

o TEXTURE3

o TEXTURE4

o TEXTURE5

o TEXTURE6

o TEXTURE7

ovoid setSource0_RGB(GLint sp)

ovoid setSource1_RGB(GLint sp)

ovoid setSource2_RGB(GLint sp)

ovoid setSource0_Alpha(GLint sp)

ovoid setSource1_Alpha(GLint sp)

ovoid setSource2_Alpha(GLint sp)

oGLint getSource0_RGB() const

oGLint getSource1_RGB() const

oGLint getSource2_RGB() const

oGLint getSource0_Alpha() const

oGLint getSource1_Alpha() const

oGLint getSource2_Alpha() const

oenum OperandParam

o SRC_COLOR

o ONE_MINUS_SRC_COLOR

o SRC_ALPHA

o ONE_MINUS_SRC_ALPHA

ovoid setOperand0_RGB(GLint op)

ovoid setOperand1_RGB(GLint op)

ovoid setOperand2_RGB(GLint op)

ovoid setOperand0_Alpha(GLint op)

ovoid setOperand1_Alpha(GLint op)

ovoid setOperand2_Alpha(GLint op)

oGLint getOperand0_RGB() const

oGLint getOperand1_RGB() const

oGLint getOperand2_RGB() const

oGLint getOperand0_Alpha() const

oGLint getOperand1_Alpha() const

oGLint getOperand2_Alpha() const

ovoid setScale_RGB(float scale)

ovoid setScale_Alpha(float scale)

ofloat getScale_RGB() const

ofloat getScale_Alpha() const

ovoid setConstantColor( const Vec4& color )

oconst Vec4& getConstantColor() const

ovirtual void apply(State& state) const

ovirtual ~TexEnvCombine()

oinline bool needsTexEnvCombiner(GLint value) const

ovoid computeNeedoForTexEnvCombiners()

obool _needsTexEnvCrossbar

oGLint _combine_RGB

oGLint _combine_Alpha

oGLint _source0_RGB

oGLint _source1_RGB

oGLint _source2_RGB

oGLint _source0_Alpha

oGLint _source1_Alpha

oGLint _source2_Alpha

oGLint _operand0_RGB

oGLint _operand1_RGB

oGLint _operand2_RGB

oGLint _operand0_Alpha

oGLint _operand1_Alpha

oGLint _operand2_Alpha

ofloat _scale_RGB

ofloat _scale_Alpha

oosg::Vec4 _constantColor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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