Base class defining the interface for a Cube Map Graphics Texture.
More...
#include <SurgSim/Graphics/TextureCubeMap.h>
Base class defining the interface for a Cube Map Graphics Texture.
A Cube Map Texture has a width and height, which is the same for each face of the cube.
◆ getSize()
| virtual void SurgSim::Graphics::TextureCubeMap::getSize |
( |
int * |
width, |
|
|
int * |
height |
|
) |
| const |
|
pure virtual |
Gets the size of the texture, which is the same for each face of the cube.
- Parameters
-
| [out] | width | Width of the texture |
| [out] | height | Height of the texture |
Implemented in SurgSim::Graphics::OsgTextureCubeMap.
◆ loadImageFaces()
Loads images from files into the faces of the cube map.
- Parameters
-
| negativeX | Path to the image for the (-X) face |
| positiveX | Path to the image for the (+X) face |
| negativeY | Path to the image for the (-Y) face |
| positiveY | Path to the image for the (+Y) face |
| negativeZ | Path to the image for the (-Z) face |
| positiveZ | Path to the image for the (+Z) face |
- Returns
- True if the image is successfully loaded, otherwise false
Implemented in SurgSim::Graphics::OsgTextureCubeMap.
◆ setSize()
| virtual void SurgSim::Graphics::TextureCubeMap::setSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
pure virtual |
Sets the size of the texture, which is the same for each face of the cube.
- Parameters
-
| width | Width of the texture |
| height | Height of the texture |
- Note
- Use this to setup a texture as a render target rather than loading from file.
Implemented in SurgSim::Graphics::OsgTextureCubeMap.
The documentation for this class was generated from the following file: