Public Types |
| enum | Face {
POSITIVE_X = 0,
NEGATIVE_X = 1,
POSITIVE_Y = 2,
NEGATIVE_Y = 3,
POSITIVE_Z = 4,
NEGATIVE_Z = 5
} |
Public Methods |
| | TextureCubeMap () |
| | TextureCubeMap (const TextureCubeMap &cm, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| | Copy constructor using CopyOp to manage deep vs shallow copy.
|
| | META_StateAttribute (osg, TextureCubeMap, TEXTURE) |
| 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.
|
| void | setTextureSize (const int width, const int height) const |
| | Set the texture width and height.
|
| void | getTextureSize (int &width, int &height) const |
| | Get the texture subload width.
|
| void | setSubloadCallback (SubloadCallback *cb) |
| SubloadCallback * | getSubloadCallback () |
| const SubloadCallback * | getSubloadCallback () const |
| void | setNumMipmapLevels (unsigned int num) const |
| | Set the number of mip map levels the the texture has been created with, should only be called within an osg::Texuture::apply() and custom OpenGL texture load.
|
| unsigned int | getNumMipmapLevels () const |
| | Get the number of mip map levels the the texture has been created with.
|
| 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.
|
Protected Methods |
| virtual | ~TextureCubeMap () |
| bool | imagesValid () const |
| virtual void | computeInternalFormat () const |
Protected Attributes |
| ref_ptr< Image > | _images [6] |
| GLsizei | _textureWidth |
| GLsizei | _textureHeight |
| GLsizei | _numMimpmapLevels |
| ref_ptr< SubloadCallback > | _subloadCallback |