sfml_impl 0.1.0
Vendor SFML 3.0.2 : IGraphic2Module / IAudioModule
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
 
Vector2f getSize () const override
 
const sf::Texture & handle () const
 

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
inlineoverride

◆ handle()

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

◆ isReady()

bool SfmlTexture::isReady ( ) const
inlineoverride

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