OSG implementation of a Cube Map Texture.
Definition: OsgTextureCubeMap.h:37
osg::ref_ptr< osg::Texture > getOsgTexture() const
Returns the osg::Texture1D.
Definition: OsgTexture.h:44
osg::ref_ptr< osg::TextureCubeMap > getOsgTextureCubeMap() const
Returns the osg::TextureCubeMap.
Definition: OsgTextureCubeMap.h:83
virtual void setSize(int width, int height)
Sets the size of the texture.
Definition: OsgTextureCubeMap.cpp:26
OsgTextureCubeMap()
Constructor.
Definition: OsgTextureCubeMap.cpp:22
Base class for OSG implementations of Graphics Textures.
Definition: OsgTexture.h:32
osg::ref_ptr< osg::Image > copyImageBlock(const osg::Image &source, int column, int row, int width, int height)
Makes a copy of an image block.
Definition: OsgTextureCubeMap.cpp:113
virtual bool loadImage(const std::string &filePath)
Loads an image into the texture from a file.
Definition: OsgTextureCubeMap.cpp:45
virtual bool loadImageFaces(const std::string &negativeX, const std::string &positiveX, const std::string &negativeY, const std::string &positiveY, const std::string &negativeZ, const std::string &positiveZ)
Loads images from files into the faces of the cube map.
Definition: OsgTextureCubeMap.cpp:85
virtual void getSize(int *width, int *height) const
Gets the size of the texture.
Definition: OsgTextureCubeMap.cpp:31