Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::render::SpriteBatch Struct Reference

Run of consecutive sprites drawn with one texture on one layer: one draw call. More...

#include <aegis2d/render/sprite_batch.hpp>

Public Attributes

TextureId texture = no_texture
 Texture of every sprite of the run.
 
std::int32_t layer = 0
 Layer of every sprite of the run.
 
std::size_t first = 0
 Index of the first sprite of the run, in the sorted sprites.
 
std::size_t count = 0
 Number of sprites in the run, at least 1.
 

Detailed Description

Run of consecutive sprites drawn with one texture on one layer: one draw call.

Member Data Documentation

◆ count

std::size_t aegis2d::render::SpriteBatch::count = 0

Number of sprites in the run, at least 1.

◆ first

std::size_t aegis2d::render::SpriteBatch::first = 0

Index of the first sprite of the run, in the sorted sprites.

◆ layer

std::int32_t aegis2d::render::SpriteBatch::layer = 0

Layer of every sprite of the run.

◆ texture

TextureId aegis2d::render::SpriteBatch::texture = no_texture

Texture of every sprite of the run.


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