Inheritance diagram for osg::TextureCubeMap:
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) | |
META_StateAttribute (osg, TextureCubeMap, TEXTURE) | |
virtual int | compare (const StateAttribute &rhs) const |
virtual bool | getModeUsage (ModeUsage &usage) const |
virtual void | setImage (unsigned int face, Image *image) |
virtual Image * | getImage (unsigned int face) |
virtual const Image * | getImage (unsigned int face) const |
virtual unsigned int | getNumImages () const |
unsigned int & | getModifiedTag (unsigned int face, unsigned int contextID) const |
void | setTextureSize (int width, int height) const |
void | getTextureSize (int &width, int &height) const |
void | setSubloadCallback (SubloadCallback *cb) |
SubloadCallback * | getSubloadCallback () |
const SubloadCallback * | getSubloadCallback () const |
void | setNumMipmapLevels (unsigned int num) const |
unsigned int | getNumMipmapLevels () const |
virtual void | apply (State &state) const |
Static Public Member Functions | |
static Extensions * | getExtensions (unsigned int contextID, bool createIfNotInitalized) |
static void | setExtensions (unsigned int contextID, Extensions *extensions) |
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 |
class | SubloadCallback |
|
|
|
|
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy. |
|
|
|
On first apply (unless already compiled), create the mipmapped texture and bind it. Subsequent apply will simple bind to texture. Implements osg::Texture. |
|
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. Implements osg::StateAttribute. |
|
Implements osg::Texture. |
|
Function to call to get the extension of a specified context. If the Exentsion object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID. Reimplemented from osg::Texture. |
|
Get the const texture image for specified face. Implements osg::Texture. |
|
Get the texture image for specified face. Implements osg::Texture. |
|
Return the modes associated with this StateAttribute. Reimplemented from osg::StateAttribute. |
|
|
|
Get the number of images that can be assigned to the Texture. Implements osg::Texture. |
|
Get the number of mip map levels the the texture has been created with. |
|
|
|
|
|
Get the texture subload width. |
|
|
|
|
|
The setExtensions method allows users to override the extensions across graphics contexts. Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. Reimplemented from osg::Texture. |
|
Set the texture image for specified face. Implements osg::Texture. |
|
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. |
|
|
|
Set the texture width and height. If width or height are zero then the repsective size value is calculated from the source image sizes. |
|
|
|
|
|
|
|
|
|
|
|
|