Botcraft 1.21.4
Loading...
Searching...
No Matches
Botcraft::Renderer::Texture Struct Reference

Public Member Functions

const unsigned char Get (const int x, const int y, const int c) const
 

Public Attributes

int width
 
int height
 
int depth
 
std::string identifier
 
bool animated
 
std::vector< unsigned char > data
 

Detailed Description

Definition at line 21 of file Atlas.cpp.

Member Function Documentation

◆ Get()

const unsigned char Botcraft::Renderer::Texture::Get ( const int  x,
const int  y,
const int  c 
) const
inline

Definition at line 30 of file Atlas.cpp.

References data, depth, and width.

Member Data Documentation

◆ animated

bool Botcraft::Renderer::Texture::animated

Definition at line 27 of file Atlas.cpp.

Referenced by Botcraft::Renderer::Atlas::LoadData().

◆ data

std::vector<unsigned char> Botcraft::Renderer::Texture::data

Definition at line 28 of file Atlas.cpp.

Referenced by Get(), and Botcraft::Renderer::Atlas::LoadData().

◆ depth

int Botcraft::Renderer::Texture::depth

Definition at line 25 of file Atlas.cpp.

Referenced by Get(), and Botcraft::Renderer::Atlas::LoadData().

◆ height

int Botcraft::Renderer::Texture::height

Definition at line 24 of file Atlas.cpp.

Referenced by Botcraft::Renderer::Atlas::LoadData().

◆ identifier

std::string Botcraft::Renderer::Texture::identifier

Definition at line 26 of file Atlas.cpp.

Referenced by Botcraft::Renderer::Atlas::LoadData().

◆ width

int Botcraft::Renderer::Texture::width

Definition at line 23 of file Atlas.cpp.

Referenced by Get(), and Botcraft::Renderer::Atlas::LoadData().


The documentation for this struct was generated from the following file: