Public Member Functions | List of all members
SurgSim::Graphics::Texture Class Referenceabstract

Base class defining the interface for a Graphics Texture. More...

#include <SurgSim/Graphics/Texture.h>

Inheritance diagram for SurgSim::Graphics::Texture:
SurgSim::Graphics::OsgTexture SurgSim::Graphics::Texture1d SurgSim::Graphics::Texture2d SurgSim::Graphics::Texture3d SurgSim::Graphics::TextureCubeMap SurgSim::Graphics::TextureRectangle SurgSim::Graphics::OsgTexture1d SurgSim::Graphics::OsgTexture2d SurgSim::Graphics::OsgTexture3d SurgSim::Graphics::OsgTextureCubeMap SurgSim::Graphics::OsgTextureRectangle SurgSim::Graphics::OsgTexture1d SurgSim::Graphics::OsgTexture2d SurgSim::Graphics::OsgTexture3d SurgSim::Graphics::OsgTextureRectangle

Public Member Functions

virtual ~Texture ()
 Destructor. More...
 
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. More...
 

Detailed Description

Base class defining the interface for a Graphics Texture.

Constructor & Destructor Documentation

virtual SurgSim::Graphics::Texture::~Texture ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual void SurgSim::Graphics::Texture::clearImage ( )
pure virtual

Removes the image from the texture.

Implemented in SurgSim::Graphics::OsgTexture.

virtual bool SurgSim::Graphics::Texture::loadImage ( const std::string filePath)
pure virtual

Loads an image into the texture from a file.

Parameters
filePathPath to the image file
Returns
True if the image is successfully loaded, otherwise false

Implemented in SurgSim::Graphics::OsgTextureCubeMap, and SurgSim::Graphics::OsgTexture.


The documentation for this class was generated from the following file: