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:

## Public Member Functions

| Texture ()
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...
void | setIsPointSprite (bool value)
| Set point sprite flag on/off. More...
bool | isPointSprite () const
| Get point sprite flag state. More...

## Private Attributes

bool | m_isPointSprite

## Detailed Description

Base class defining the interface for a Graphics Texture.

## Constructor & Destructor Documentation

## Texture()

SurgSim::Graphics::Texture::Texture | ( |  | ) |

## ~Texture()

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

inline virtual

Destructor.

## Member Function Documentation

## clearImage()

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

pure virtual

Removes the image from the texture.

Implemented in SurgSim::Graphics::OsgTexture.

## isPointSprite()

bool SurgSim::Graphics::Texture::isPointSprite | ( |  | ) | const

Get point sprite flag state.

## loadImage()

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

pure virtual

Loads an image into the texture from a file.

Parameters

  filePath | Path to the image file

Returns
  True if the image is successfully loaded, otherwise false

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

## setIsPointSprite()

void SurgSim::Graphics::Texture::setIsPointSprite | ( | bool | value | ) |

Set point sprite flag on/off.

## Member Data Documentation

## m_isPointSprite

bool SurgSim::Graphics::Texture::m_isPointSprite

private

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

- SurgSim/Graphics/Texture.h
- SurgSim/Graphics/Texture.cpp