|
Vivid
|
A class for the Texture. More...
#include <Texture.h>
Public Member Functions | |
| Texture (const std::string &path) | |
| void | Bind (unsigned int slot=0) const |
| void | Unbind () const |
| unsigned int | GetRendererID () const |
| int | GetWidth () const |
| int | GetHeight () const |
| String | GetFilePath () const |
| String | GetName () const |
| void | SetName (const String &name) |
A class for the Texture.
Texture is a class that contains the texture. It can load all formats supported by stb_image library. The raw data of the texture is stored in the m_LocalBuffer variable.
| Vivid::Texture::Texture | ( | ) |
Definition at line 37 of file Texture.cpp.
| Vivid::Texture::Texture | ( | const std::string & | path | ) |
Definition at line 5 of file Texture.cpp.
| Vivid::Texture::~Texture | ( | ) |
Definition at line 57 of file Texture.cpp.
| void Vivid::Texture::Bind | ( | unsigned int | slot = 0 | ) | const |
Definition at line 62 of file Texture.cpp.
|
inline |
| void Vivid::Texture::Unbind | ( | ) | const |
Definition at line 68 of file Texture.cpp.