Symphony Of Empires
Eng3D::TextureArray Class Reference

#include <texture.hpp>

Inheritance diagram for Eng3D::TextureArray:
Collaboration diagram for Eng3D::TextureArray:

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)
 
BinaryImageoperator= (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
 

Detailed Description

Definition at line 152 of file texture.hpp.

Constructor & Destructor Documentation

◆ TextureArray()

Eng3D::TextureArray::TextureArray ( const std::string &  path,
size_t  _tiles_x,
size_t  _tiles_y 
)
inline

Definition at line 154 of file texture.hpp.

Member Function Documentation

◆ upload()

void Eng3D::TextureArray::upload ( )

Uploads the TextureArray to the driver.

Definition at line 370 of file texture.cpp.

Member Data Documentation

◆ id

unsigned int Eng3D::TextureArray::id = 0

Definition at line 165 of file texture.hpp.

◆ layers

size_t Eng3D::TextureArray::layers

Definition at line 163 of file texture.hpp.

◆ tiles_x

size_t Eng3D::TextureArray::tiles_x

Definition at line 164 of file texture.hpp.

◆ tiles_y

size_t Eng3D::TextureArray::tiles_y

Definition at line 164 of file texture.hpp.


The documentation for this class was generated from the following files: