|
2D_Game_Engine
|
#include <texture.hpp>
Public Member Functions | |
| SpriteSheet (const std::string &path, unsigned int tile_width, unsigned int tile_height, int mag_filter, int min_filter, uint32_t tex_id) | |
| SpriteSheet () | |
| SpriteSheet (SpriteSheet &other) | |
| SpriteSheet & | operator= (SpriteSheet &other) |
| SpriteSheet & | operator= (SpriteSheet &&other) |
| int | GetTileWidth () const |
| int | GetTileHeight () const |
| std::array< Vertex, 4 > | CreateQuadSpriteSheet (float x, float y, float width, float height, float row, float col, int layer, float texID) |
Public Member Functions inherited from Texture | |
| Texture () | |
| Texture (const std::string &path, int mag_filter, int min_filter, uint32_t texID) | |
| Texture (Texture &other) | |
| ~Texture () | |
| void | Bind (unsigned int slot=0) const |
| void | Unbind () const |
| int | GetWidth () const |
| int | GetHeight () const |
| unsigned int | GetTexID () const |
| Texture & | operator= (Texture &other) |
| Texture & | operator= (Texture &&other) |
| void | FreeTexture () |
Friends | |
| class | Renderer |
| class | TexturesManager |
| class | SceneSerializer |
Additional Inherited Members | |
Protected Attributes inherited from Texture | |
| unsigned int | m_ID |
| uint32_t | m_TexID |
| std::string | m_FilePath |
| std::string | m_LoadedFilePath |
| int | m_MagFilter |
| int | m_MinFilter |
| int | m_LoadedMagFilter |
| int | m_LoadedMinFilter |
| unsigned char * | m_LocalBuffer |
| int | m_Width |
| int | m_Height |
| int | m_BPP |
Definition at line 84 of file texture.hpp.
|
inline |
Definition at line 86 of file texture.hpp.
|
inline |
Definition at line 88 of file texture.hpp.
| SpriteSheet::SpriteSheet | ( | SpriteSheet & | other | ) |
Definition at line 71 of file texture.cpp.
| std::array< Vertex, 4 > SpriteSheet::CreateQuadSpriteSheet | ( | float | x, |
| float | y, | ||
| float | width, | ||
| float | height, | ||
| float | row, | ||
| float | col, | ||
| int | layer, | ||
| float | texID ) |
Definition at line 89 of file texture.cpp.
|
inline |
Definition at line 132 of file texture.hpp.
|
inline |
Definition at line 131 of file texture.hpp.
|
inline |
Definition at line 110 of file texture.hpp.
|
inline |
Definition at line 91 of file texture.hpp.
|
friend |
Definition at line 137 of file texture.hpp.
|
friend |
Definition at line 139 of file texture.hpp.
|
friend |
Definition at line 138 of file texture.hpp.