sfml_impl 0.1.0
Vendor SFML 3.0.2 : IGraphic2Module / IAudioModule
Loading...
Searching...
No Matches
SfmlSprite Class Reference

Sfml Sprite class - references a SfmlTexture, does not own it. Deleting the sprite never touches the texture. More...

#include <SfmlSprite.hpp>

Inheritance diagram for SfmlSprite:
Collaboration diagram for SfmlSprite:

Public Member Functions

 SfmlSprite (SfmlTexture &texture)
 
 ~SfmlSprite () override=default
 
bool isReady () const override
 
Rect< float > getBounds () const override
 
void setCrop (Rect< float > rect) override
 
Vector2f getPosition () const override
 
void setPosition (Vector2f position) override
 
float getRotation () const override
 
void setRotation (float angle, bool isRad=false) override
 
Vector2f getSize () const override
 
void setSize (Vector2f size) override
 

Friends

class SfmlWindow
 

Detailed Description

Sfml Sprite class - references a SfmlTexture, does not own it. Deleting the sprite never touches the texture.

Constructor & Destructor Documentation

◆ SfmlSprite()

SfmlSprite::SfmlSprite ( SfmlTexture texture)
inline

◆ ~SfmlSprite()

SfmlSprite::~SfmlSprite ( )
overridedefault

Member Function Documentation

◆ getBounds()

Rect< float > SfmlSprite::getBounds ( ) const
inlineoverride

◆ getPosition()

Vector2f SfmlSprite::getPosition ( ) const
inlineoverride

◆ getRotation()

float SfmlSprite::getRotation ( ) const
inlineoverride

◆ getSize()

Vector2f SfmlSprite::getSize ( ) const
inlineoverride

◆ isReady()

bool SfmlSprite::isReady ( ) const
inlineoverride

◆ setCrop()

void SfmlSprite::setCrop ( Rect< float >  rect)
inlineoverride

◆ setPosition()

void SfmlSprite::setPosition ( Vector2f  position)
inlineoverride

◆ setRotation()

void SfmlSprite::setRotation ( float  angle,
bool  isRad = false 
)
inlineoverride

◆ setSize()

void SfmlSprite::setSize ( Vector2f  size)
inlineoverride

Friends And Related Symbol Documentation

◆ SfmlWindow

friend class SfmlWindow
friend

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