galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::resource::TextureAtlas::Info Struct Referencefinal

Information about textures stored in atlas. More...

#include <TextureAtlas.hpp>

+ Collaboration diagram for galaxy::resource::TextureAtlas::Info:

Public Attributes

math::iRect m_region
 Region of the texture in the atlas.
 
graphics::TexelRegion m_texel_region
 Texture region in OpenGL texels.
 
int m_index = 0
 Index of which atlas this sprite belongs to.
 
int m_handle = 0
 Texture handle this texture belongs to.
 
int m_sheet_width = 0
 Texture sheet width.
 
int m_sheet_height = 0
 Texture sheet height.
 

Detailed Description

Information about textures stored in atlas.

Definition at line 51 of file TextureAtlas.hpp.

Member Data Documentation

◆ m_region

math::iRect galaxy::resource::TextureAtlas::Info::m_region

Region of the texture in the atlas.

Definition at line 56 of file TextureAtlas.hpp.

◆ m_texel_region

graphics::TexelRegion galaxy::resource::TextureAtlas::Info::m_texel_region

Texture region in OpenGL texels.

Definition at line 61 of file TextureAtlas.hpp.

◆ m_index

int galaxy::resource::TextureAtlas::Info::m_index = 0

Index of which atlas this sprite belongs to.

Definition at line 66 of file TextureAtlas.hpp.

◆ m_handle

int galaxy::resource::TextureAtlas::Info::m_handle = 0

Texture handle this texture belongs to.

Definition at line 71 of file TextureAtlas.hpp.

◆ m_sheet_width

int galaxy::resource::TextureAtlas::Info::m_sheet_width = 0

Texture sheet width.

Definition at line 76 of file TextureAtlas.hpp.

◆ m_sheet_height

int galaxy::resource::TextureAtlas::Info::m_sheet_height = 0

Texture sheet height.

Definition at line 81 of file TextureAtlas.hpp.


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