Platform Data Engine 0.0.1
A data-driven game engine for platformers
PlatformDataEngine::TileTexture Class Reference

The tile texture class is responsible for defining a texture and a corrosponding rect inside that texture More...

#include <TileTexture.h>

Public Member Functions

 TileTexture (const sf::Texture *texture=nullptr, sf::IntRect rect=sf::IntRect())
 Constructor
 
const sf::IntRect & getRect () const
 Gets the rect. More...
 
const sf::Texture * getTexture ()
 Gets the texture. More...
 

Detailed Description

The tile texture class is responsible for defining a texture and a corrosponding rect inside that texture

Member Function Documentation

◆ getRect()

const sf::IntRect & TileTexture::getRect ( ) const

Gets the rect.

Returns
The rect.

◆ getTexture()

const sf::Texture * TileTexture::getTexture ( )

Gets the texture.

Returns
The texture ptr.

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