|
Symphony Of Empires
|
#include <texture.hpp>


Public Member Functions | |
| TextureArray (const std::string &path, size_t _tiles_x, size_t _tiles_y) | |
| void | upload () |
| Uploads the TextureArray to the driver. More... | |
Public Member Functions inherited from Eng3D::BinaryImage | |
| BinaryImage ()=default | |
| BinaryImage (const Eng3D::IO::Path &path) | |
| BinaryImage (size_t _width, size_t _height, size_t bpp=32) | |
| BinaryImage (const BinaryImage &tex) | |
| BinaryImage & | operator= (const BinaryImage &)=delete |
| virtual | ~BinaryImage ()=default |
| virtual void | from_file (const Eng3D::IO::Path &path) |
| virtual void | to_file (const std::string &filename) |
| Eng3D::Color | get_pixel (size_t x, size_t y) const |
| Obtains a pixel from the binary image. More... | |
Public Attributes | |
| size_t | layers |
| size_t | tiles_x |
| size_t | tiles_y |
| unsigned int | id = 0 |
Public Attributes inherited from Eng3D::BinaryImage | |
| std::unique_ptr< uint32_t[]> | buffer |
| size_t | width |
| size_t | height |
| size_t | bpp |
Definition at line 152 of file texture.hpp.
|
inline |
Definition at line 154 of file texture.hpp.
| void Eng3D::TextureArray::upload | ( | ) |
Uploads the TextureArray to the driver.
Definition at line 370 of file texture.cpp.
| unsigned int Eng3D::TextureArray::id = 0 |
Definition at line 165 of file texture.hpp.
| size_t Eng3D::TextureArray::layers |
Definition at line 163 of file texture.hpp.
| size_t Eng3D::TextureArray::tiles_x |
Definition at line 164 of file texture.hpp.
| size_t Eng3D::TextureArray::tiles_y |
Definition at line 164 of file texture.hpp.