|
2D_Game_Engine
|
#include <texture.hpp>
Public Member Functions | |
| 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 () |
Protected Attributes | |
| 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 |
Friends | |
| class | Renderer |
| class | TexturesManager |
| class | SceneSerializer |
Definition at line 9 of file texture.hpp.
|
inline |
Definition at line 11 of file texture.hpp.
| Texture::Texture | ( | const std::string & | path, |
| int | mag_filter, | ||
| int | min_filter, | ||
| uint32_t | texID ) |
Definition at line 6 of file texture.cpp.
| Texture::Texture | ( | Texture & | other | ) |
Definition at line 37 of file texture.cpp.
| Texture::~Texture | ( | ) |
Definition at line 52 of file texture.cpp.
| void Texture::Bind | ( | unsigned int | slot = 0 | ) | const |
Definition at line 62 of file texture.cpp.
|
inline |
Definition at line 60 of file texture.hpp.
|
inline |
Definition at line 21 of file texture.hpp.
|
inline |
Definition at line 22 of file texture.hpp.
|
inline |
Definition at line 20 of file texture.hpp.
Definition at line 41 of file texture.hpp.
Definition at line 24 of file texture.hpp.
| void Texture::Unbind | ( | ) | const |
Definition at line 67 of file texture.cpp.
|
friend |
Definition at line 68 of file texture.hpp.
|
friend |
Definition at line 70 of file texture.hpp.
|
friend |
Definition at line 69 of file texture.hpp.
|
protected |
Definition at line 81 of file texture.hpp.
|
protected |
Definition at line 78 of file texture.hpp.
|
protected |
Definition at line 81 of file texture.hpp.
|
protected |
Definition at line 76 of file texture.hpp.
|
protected |
Definition at line 78 of file texture.hpp.
|
protected |
Definition at line 79 of file texture.hpp.
|
protected |
Definition at line 79 of file texture.hpp.
|
protected |
Definition at line 80 of file texture.hpp.
|
protected |
Definition at line 79 of file texture.hpp.
|
protected |
Definition at line 79 of file texture.hpp.
|
protected |
Definition at line 77 of file texture.hpp.
|
protected |
Definition at line 81 of file texture.hpp.