GameKit
0.0.1a
C++ gamedev tools
|
#include <Tileset.hpp>
Public Member Functions | |
Tileset ()=default | |
Tileset (const Tileset &)=delete | |
Tileset (Tileset &&tileset)=default | |
Tileset (const std::string &filename, const std::string &configFile) | |
void | load (const std::string &filename, const std::string &configFile) |
const std::vector< u16 > & | info () const |
const Tile & | getTile (u16 id) const |
void | setTile (u16 id, Tile &tile) |
u16 | tileWidth () const |
u16 | tileHeight () const |
u16 | tileCount () const |
![]() | |
Texture ()=default | |
Default constructor. More... | |
Texture (const std::string &filename) | |
Load the texture from a file on the disk. More... | |
Texture (SDL_Surface *surface) | |
Load the texture from a SDL_Surface. More... | |
Texture (Texture &&texture) | |
Move constructor. More... | |
~Texture () noexcept | |
Destructor. More... | |
Texture & | operator= (Texture &&texture) |
Move assignement operator. More... | |
void | loadFromFile (const std::string &filename) |
Load the texture from a file on the disk. More... | |
void | loadFromSurface (SDL_Surface *surface) |
Load the texture from a SDL_Surface. More... | |
const std::string & | filename () const |
Return the filename of the texture. More... | |
u16 | width () const |
Return the width of the texture. More... | |
u16 | height () const |
Return the height of the texture. More... | |
Private Attributes | |
std::vector< u16 > | m_info |
u16 | m_tileWidth |
u16 | m_tileHeight |
std::vector< Tile > | m_tiles |
Additional Inherited Members | |
![]() | |
static void | bind (const Texture *texture) |
Bind a texture for rendering. More... | |
![]() | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
const NonCopyable & | operator= (const NonCopyable &)=delete |
Definition at line 44 of file Tileset.hpp.
|
default |
|
delete |
|
default |
gk::Tileset::Tileset | ( | const std::string & | filename, |
const std::string & | configFile | ||
) |
Definition at line 22 of file Tileset.cpp.
Definition at line 55 of file Tileset.hpp.
|
inline |
Definition at line 53 of file Tileset.hpp.
void gk::Tileset::load | ( | const std::string & | filename, |
const std::string & | configFile | ||
) |
Definition at line 26 of file Tileset.cpp.
Definition at line 56 of file Tileset.hpp.
|
inline |
Definition at line 60 of file Tileset.hpp.
|
inline |
Definition at line 59 of file Tileset.hpp.
|
inline |
Definition at line 58 of file Tileset.hpp.
|
private |
Definition at line 63 of file Tileset.hpp.
|
private |
Definition at line 66 of file Tileset.hpp.
|
private |
Definition at line 68 of file Tileset.hpp.
|
private |
Definition at line 65 of file Tileset.hpp.