|
Public Types |
| enum | Face {
POSITIVE_X = 0,
NEGATIVE_X = 1,
POSITIVE_Y = 2,
NEGATIVE_Y = 3,
POSITIVE_Z = 4,
NEGATIVE_Z = 5
} |
Public Member Functions |
| | 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.
|
| virtual bool | getModeUsage (ModeUsage &usage) const |
| virtual void | setImage (unsigned int face, Image *image) |
| | Set the texture image for specified face.
|
| virtual Image * | getImage (unsigned int face) |
| | Get the texture image for specified face.
|
| virtual const Image * | getImage (unsigned int face) const |
| | Get the const texture image for specified face.
|
| virtual unsigned int | getNumImages () const |
| | Get the number of images that can be assigned to the Texture.
|
| unsigned int & | getModifiedTag (unsigned int face, unsigned int contextID) const |
| void | setTextureSize (int width, 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.
|
| 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 mipmapped texture and bind it.
|
Static Public Member Functions |
| static Extensions * | getExtensions (unsigned int contextID, bool createIfNotInitalized) |
| | Function to call to get the extension of a specified context.
|
| static void | setExtensions (unsigned int contextID, Extensions *extensions) |
| | The setExtensions method allows users to override the extensions across graphics contexts.
|
Protected Types |
typedef buffered_value< unsigned
int > | ImageModifiedTag |
Protected Member Functions |
| virtual | ~TextureCubeMap () |
| bool | imagesValid () const |
| virtual void | computeInternalFormat () const |
Protected Attributes |
| ref_ptr< Image > | _images [6] |
| GLsizei | _textureWidth |
| GLsizei | _textureHeight |
| GLsizei | _numMipmapLevels |
| ref_ptr< SubloadCallback > | _subloadCallback |
| ImageModifiedTag | _modifiedTag [6] |
Classes |
| class | Extensions |
| | Extensions class which encapsulates the querying of extensions and associated function pointers, and provides convinience wrappers to check for the extensions or use the associated functions. More...
|
| class | SubloadCallback |