class SG_EXPORT osg::TextureCubeMap

TextureCubeMap state class which encapsulates OpenGl texture cubemap functionality

Inheritance:


Public Methods

[more] TextureCubeMap()
[more] TextureCubeMap(const TextureCubeMap& cm, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy
[more] META_StateAttribute(TextureCubeMap, (Type)(TEXTURE_0+_textureUnit))
[more]virtual int compare(const StateAttribute& rhs) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs
[more]void setImage(const Face, Image* image)
Set the texture image for specified face.
[more]Image* getImage(const Face)
Get the texture image for specified face.
[more]const Image* getImage(const Face) const
Get the const texture image for specified face.
[more]virtual void apply(State& state) const
On first apply (unless already compiled), create the minmapped texture and bind it, subsequent apply will simple bind to texture

Public Members

[more]enum Face

Protected Fields

[more]mutable ref_ptr<Image> _images[6]

Protected Methods

[more]virtual ~TextureCubeMap()
[more]bool imagesValid() const
[more]void setImage(Image*)
[more]Image* getImage()
[more]const Image* getImage() const


Inherited from Texture:

Public Methods

ovirtual void setStateSetModes(StateSet& ds, const GLModeValue value) const
ovoid copyTexImage2D(State& state, int x, int y, int width, int height )
ovoid copyTexSubImage2D(State& state, int xoffset, int yoffset, int x, int y, int width, int height )
oinline void setTextureUnit(const unsigned int textureUnit)
oinline const unsigned int getTextureUnit() const
ovoid setWrap(const WrapParameter which, const WrapMode wrap)
oconst WrapMode getWrap(const WrapParameter which) const
ovoid setBorderColor(const Vec4& color)
oconst Vec4& borderColor(void) const
ovoid setFilter(const FilterParameter which, const FilterMode filter)
oconst FilterMode getFilter(const FilterParameter which) const
oinline void setInternalFormatMode(const InternalFormatMode mode)
oinline const InternalFormatMode getInternalFormatMode() const
oinline void setInternalFormatValue(const int internalFormat)
oinline const int getInternalFormatValue() const
oinline const uint getTextureObject(const uint contextID) const
oinline void setSubloadMode(const SubloadMode mode)
oinline const SubloadMode getSubloadMode() const
oinline void setSubloadOffset(const int x, const int y)
oinline void getSubloadOffset(int& x, int& y) const
oinline void setSubloadSize(const int width, const int height)
oinline void getSubloadSize(int& width, int& height) const
oinline GLuint& getHandle(const uint contextID) const
oinline uint& getModifiedTag(const uint contextID) const
ovoid dirtyTextureObject()
ovirtual void compile(State& state) const
ostatic void deleteTextureObject(uint contextID, GLuint handle)
ostatic void flushDeletedTextureObjects(uint contextID)

Public Members

oenum WrapParameter
oenum WrapMode
oenum FilterParameter
oenum FilterMode
oenum InternalFormatMode
oenum SubloadMode

Protected Fields

omutable ref_ptr<Image> _image
oGLenum _target
ounsigned int _textureUnit
oWrapMode _wrap_s
oWrapMode _wrap_t
oWrapMode _wrap_r
oFilterMode _min_filter
oFilterMode _mag_filter
omutable bool _texParamtersDirty
oInternalFormatMode _internalFormatMode
oint _internalFormatValue
oVec4 _borderColor
omutable GLsizei _textureWidth
omutable GLsizei _textureHeight
oSubloadMode _subloadMode
oGLint _subloadOffsX
oGLint _subloadOffsY
oGLsizei _subloadWidth
oGLsizei _subloadHeight

Protected Methods

ovoid applyTexParameters(GLenum target, State& state) const
ovirtual void applyTexImage(GLenum target, Image* image, State& state) const

Protected Members

otypedef std::vector<GLuint> TextureNameList mutable TextureNameList _handleList
otypedef std::vector<uint> ImageModifiedTag mutable ImageModifiedTag _modifiedTag
otypedef std::map<uint,std::set<uint> >static DeletedTextureObjectCache DeletedTextureObjectCache s_deletedTextureObjectCache


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* 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

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

Public Members

oenum DataVariance

Protected Fields

oDataVariance _dataVariance


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

TextureCubeMap state class which encapsulates OpenGl texture cubemap functionality
o TextureCubeMap()

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

o META_StateAttribute(TextureCubeMap, (Type)(TEXTURE_0+_textureUnit))

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

oenum Face

o POSITIVE_X

o NEGATIVE_X

o POSITIVE_Y

o NEGATIVE_Y

o POSITIVE_Z

o NEGATIVE_Z

ovoid setImage(const Face, Image* image)
Set the texture image for specified face.

oImage* getImage(const Face)
Get the texture image for specified face.

oconst Image* getImage(const Face) const
Get the const texture image for specified face.

ovirtual void apply(State& state) const
On first apply (unless already compiled), create the minmapped texture and bind it, subsequent apply will simple bind to texture

ovirtual ~TextureCubeMap()

obool imagesValid() const

ovoid setImage(Image*)

oImage* getImage()

oconst Image* getImage() const

omutable ref_ptr<Image> _images[6]


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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