P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
Loading...
Searching...
No Matches
SfmlTexture Class Reference

Sfml Texture class - owns the loaded texture. SfmlSprite only references it (sf::Sprite itself already takes a const sf::Texture& natively, this contract matches sfml's own model). More...

#include <SfmlTexture.hpp>

Inheritance diagram for SfmlTexture:
Collaboration diagram for SfmlTexture:

Public Member Functions

 SfmlTexture (std::string path)
 ~SfmlTexture ()=default
bool isReady () const override
 notice if the texture is ready
Vector2f getSize () const override
 Get the Size object.
const sf::Texture & handle () const
Public Member Functions inherited from graphic::ITexture
virtual ~ITexture ()=default

Detailed Description

Sfml Texture class - owns the loaded texture. SfmlSprite only references it (sf::Sprite itself already takes a const sf::Texture& natively, this contract matches sfml's own model).

Constructor & Destructor Documentation

◆ SfmlTexture()

SfmlTexture::SfmlTexture ( std::string path)
inline

◆ ~SfmlTexture()

SfmlTexture::~SfmlTexture ( )
default

Member Function Documentation

◆ getSize()

Vector2f SfmlTexture::getSize ( ) const
inlineoverridevirtual

Get the Size object.

Returns
Vector2f

Implements graphic::ITexture.

◆ handle()

const sf::Texture & SfmlTexture::handle ( ) const
inline

◆ isReady()

bool SfmlTexture::isReady ( ) const
inlineoverridevirtual

notice if the texture is ready

Returns
bool

Implements graphic::ITexture.


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