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

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

#include <Texture1d.h>

Inheritance diagram for SurgSim::Graphics::Texture1d:
SurgSim::Graphics::Texture SurgSim::Graphics::OsgTexture1d

Public Member Functions

virtual void setSize (int width)=0
 Sets the size of the texture. More...
 
virtual void getSize (int *width) const =0
 Gets the size of the texture. More...
 
- Public Member Functions inherited from SurgSim::Graphics::Texture
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 1D Graphics Texture.

A 1D Texture only has width.

Note
Normalized texture coordinates are used to access this texture.

Member Function Documentation

§ getSize()

virtual void SurgSim::Graphics::Texture1d::getSize ( int *  width) const
pure virtual

Gets the size of the texture.

Returns
width Width of the texture

Implemented in SurgSim::Graphics::OsgTexture1d.

§ setSize()

virtual void SurgSim::Graphics::Texture1d::setSize ( int  width)
pure virtual

Sets the size of the texture.

Parameters
widthWidth of the texture
Note
Use this to setup a texture as a render target rather than loading from file.

Implemented in SurgSim::Graphics::OsgTexture1d.


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