R-Type
Public Member Functions | List of all members
GameEngine::ITexture< T, rectT > Class Template Referenceabstract

Interface for texture. More...

#include <RenderInterfaces.hpp>

Public Member Functions

 ~ITexture ()=default
 Destructor. More...
 
virtual const T & getTexture () const =0
 Get the texture stored. More...
 
virtual void load (const std::string &filename, const IRect< int, rectT > &area)=0
 load the texture More...
 

Detailed Description

template<class T, template< typename > class rectT>
class GameEngine::ITexture< T, rectT >

Interface for texture.

Template Parameters
Ttype of the texture
rectTtype of rect that will be used

Constructor & Destructor Documentation

◆ ~ITexture()

template<class T , template< typename > class rectT>
GameEngine::ITexture< T, rectT >::~ITexture ( )
default

Destructor.

Member Function Documentation

◆ getTexture()

template<class T , template< typename > class rectT>
virtual const T& GameEngine::ITexture< T, rectT >::getTexture ( ) const
pure virtual

Get the texture stored.

Returns
reference to the texture

Implemented in GameEngine::Texture.

◆ load()

template<class T , template< typename > class rectT>
virtual void GameEngine::ITexture< T, rectT >::load ( const std::string &  filename,
const IRect< int, rectT > &  area 
)
pure virtual

load the texture

Parameters
filenamefile from which to load the texture
areathe area of the texture

Implemented in GameEngine::Texture.


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