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

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

#include <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::MockOsgTexture 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::OsgTextureCubeMap SurgSim::Graphics::OsgTextureRectangle

Public Member Functions

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.
 

Detailed Description

Base class defining the interface for a Graphics Texture.

Member Function Documentation

§ loadImage()

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 files: