TextureCubeMap state class which encapsulates OpenGl texture cubemap functionality
Inheritance:
Public Methods
-
TextureCubeMap()
-
TextureCubeMap(const TextureCubeMap& cm, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs shallow copy
-
META_StateAttribute(TextureCubeMap, (Type)(TEXTURE_0+_textureUnit))
-
virtual int compare(const StateAttribute& rhs) const
- return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs
-
void setImage(const Face, Image* image)
- Set the texture image for specified face.
-
Image* getImage(const Face)
- Get the texture image for specified face.
-
const Image* getImage(const Face) const
- Get the const texture image for specified face.
-
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
-
enum Face
Protected Fields
-
mutable ref_ptr<Image> _images[6]
Protected Methods
-
virtual ~TextureCubeMap()
-
bool imagesValid() const
-
void setImage(Image*)
-
Image* getImage()
-
const Image* getImage() const
Inherited from Texture:
Public Methods
-
virtual void setStateSetModes(StateSet& ds, const GLModeValue value) const
-
void copyTexImage2D(State& state, int x, int y, int width, int height )
-
void copyTexSubImage2D(State& state, int xoffset, int yoffset, int x, int y, int width, int height )
-
inline void setTextureUnit(const unsigned int textureUnit)
-
inline const unsigned int getTextureUnit() const
-
void setWrap(const WrapParameter which, const WrapMode wrap)
-
const WrapMode getWrap(const WrapParameter which) const
-
void setBorderColor(const Vec4& color)
-
const Vec4& borderColor(void) const
-
void setFilter(const FilterParameter which, const FilterMode filter)
-
const FilterMode getFilter(const FilterParameter which) const
-
inline void setInternalFormatMode(const InternalFormatMode mode)
-
inline const InternalFormatMode getInternalFormatMode() const
-
inline void setInternalFormatValue(const int internalFormat)
-
inline const int getInternalFormatValue() const
-
inline const uint getTextureObject(const uint contextID) const
-
inline void setSubloadMode(const SubloadMode mode)
-
inline const SubloadMode getSubloadMode() const
-
inline void setSubloadOffset(const int x, const int y)
-
inline void getSubloadOffset(int& x, int& y) const
-
inline void setSubloadSize(const int width, const int height)
-
inline void getSubloadSize(int& width, int& height) const
-
inline GLuint& getHandle(const uint contextID) const
-
inline uint& getModifiedTag(const uint contextID) const
-
void dirtyTextureObject()
-
virtual void compile(State& state) const
-
static void deleteTextureObject(uint contextID, GLuint handle)
-
static void flushDeletedTextureObjects(uint contextID)
Public Members
-
enum WrapParameter
-
enum WrapMode
-
enum FilterParameter
-
enum FilterMode
-
enum InternalFormatMode
-
enum SubloadMode
Protected Fields
-
mutable ref_ptr<Image> _image
-
GLenum _target
-
unsigned int _textureUnit
-
WrapMode _wrap_s
-
WrapMode _wrap_t
-
WrapMode _wrap_r
-
FilterMode _min_filter
-
FilterMode _mag_filter
-
mutable bool _texParamtersDirty
-
InternalFormatMode _internalFormatMode
-
int _internalFormatValue
-
Vec4 _borderColor
-
mutable GLsizei _textureWidth
-
mutable GLsizei _textureHeight
-
SubloadMode _subloadMode
-
GLint _subloadOffsX
-
GLint _subloadOffsY
-
GLsizei _subloadWidth
-
GLsizei _subloadHeight
Protected Methods
-
void applyTexParameters(GLenum target, State& state) const
-
virtual void applyTexImage(GLenum target, Image* image, State& state) const
Protected Members
-
typedef std::vector<GLuint> TextureNameList mutable TextureNameList _handleList
-
typedef std::vector<uint> ImageModifiedTag mutable ImageModifiedTag _modifiedTag
-
typedef std::map<uint,std::set<uint> >static DeletedTextureObjectCache DeletedTextureObjectCache s_deletedTextureObjectCache
Public Methods
-
virtual Object* cloneType() const
-
virtual Object* clone(const CopyOp&) const
-
virtual bool isSameKindAs(const Object* obj) const
-
virtual const char* className() const
-
virtual const Type getType() const
-
bool operator < (const StateAttribute& rhs) const
-
bool operator == (const StateAttribute& rhs) const
-
bool operator != (const StateAttribute& rhs) const
Public Members
-
typedef GLenum GLMode
-
typedef unsigned int GLModeValue
-
typedef unsigned int OverrideValue
-
enum Values
-
typedef unsigned int Type
-
enum Types
Inherited from Object:
Public Methods
-
inline void setDataVariance(const DataVariance dv)
-
inline const DataVariance getDataVariance() const
Public Members
-
enum DataVariance
Protected Fields
-
DataVariance _dataVariance
Public Methods
-
inline Referenced& operator = (Referenced&)
-
inline void ref() const
-
inline void unref() const
-
inline void unref_nodelete() const
-
inline const int referenceCount() const
Protected Fields
-
mutable int _refCount
Documentation
TextureCubeMap state class which encapsulates OpenGl texture cubemap functionality
- TextureCubeMap()
- TextureCubeMap(const TextureCubeMap& cm, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs shallow copy
- META_StateAttribute(TextureCubeMap, (Type)(TEXTURE_0+_textureUnit))
- virtual int compare(const StateAttribute& rhs) const
- return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs
- enum Face
- POSITIVE_X
- NEGATIVE_X
- POSITIVE_Y
- NEGATIVE_Y
- POSITIVE_Z
- NEGATIVE_Z
- void setImage(const Face, Image* image)
- Set the texture image for specified face.
- Image* getImage(const Face)
- Get the texture image for specified face.
- const Image* getImage(const Face) const
- Get the const texture image for specified face.
- 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
- virtual ~TextureCubeMap()
- bool imagesValid() const
- void setImage(Image*)
- Image* getImage()
- const Image* getImage() const
- mutable 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++.