opensurgsim
|
Base class defining the interface for a Cube Map Graphics Texture. More...
#include <TextureCubeMap.h>
Public Member Functions | |
virtual void | setSize (int width, int height)=0 |
Sets the size of the texture, which is the same for each face of the cube. More... | |
virtual void | getSize (int *width, int *height) const =0 |
Gets the size of the texture, which is the same for each face of the cube. More... | |
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)=0 |
Loads images from files into the faces of the cube map. More... | |
![]() | |
virtual | ~Texture () |
Destructor. | |
virtual bool | loadImage (const std::string &filePath)=0 |
Loads an image into the texture from a file. More... | |
virtual void | clearImage ()=0 |
Removes the image from the texture. | |
void | setIsPointSprite (bool value) |
Set point sprite flag on/off. | |
bool | isPointSprite () const |
Get point sprite flag state. | |
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.
|
pure virtual |
Gets the size of the texture, which is the same for each face of the cube.
[out] | width | Width of the texture |
[out] | height | Height of the texture |
Implemented in SurgSim::Graphics::OsgTextureCubeMap.
|
pure virtual |
Loads images from files into the faces of the cube map.
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 |
Implemented in SurgSim::Graphics::OsgTextureCubeMap.
|
pure virtual |
Sets the size of the texture, which is the same for each face of the cube.
width | Width of the texture |
height | Height of the texture |
Implemented in SurgSim::Graphics::OsgTextureCubeMap.