R-Type
Public Member Functions | List of all members
GameEngine::Texture Class Reference

Class representing a texture wrapper for sf::Texture with an associated area. More...

#include <SfmlTypes.hpp>

Inheritance diagram for GameEngine::Texture:
GameEngine::ITexture< sf::Texture, sf::Rect >

Public Member Functions

 Texture ()=default
 Default constructor for Texture. More...
 
 ~Texture ()=default
 Destructor for Texture. More...
 
const sf::Texture & getTexture () const override
 Returns the wrapped sf::Texture. More...
 
void load (const std::string &filename, const IRect< int, sf::Rect > &area) override
 Loads a texture from a file with a specified area. More...
 
- Public Member Functions inherited from GameEngine::ITexture< sf::Texture, sf::Rect >
 ~ITexture ()=default
 Destructor. More...
 

Detailed Description

Class representing a texture wrapper for sf::Texture with an associated area.

Constructor & Destructor Documentation

◆ Texture()

GameEngine::Texture::Texture ( )
default

Default constructor for Texture.

◆ ~Texture()

GameEngine::Texture::~Texture ( )
default

Destructor for Texture.

Member Function Documentation

◆ getTexture()

const sf::Texture& GameEngine::Texture::getTexture ( ) const
inlineoverridevirtual

Returns the wrapped sf::Texture.

Returns
Reference to the sf::Texture instance

Implements GameEngine::ITexture< sf::Texture, sf::Rect >.

◆ load()

void GameEngine::Texture::load ( const std::string &  filename,
const IRect< int, sf::Rect > &  area 
)
inlineoverridevirtual

Loads a texture from a file with a specified area.

Parameters
filenameThe path to the texture file
areaThe area of the texture to load

Implements GameEngine::ITexture< sf::Texture, sf::Rect >.


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