Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
sprite_batch.hpp File Reference

Grouping the sprites of a frame into as few draw calls as possible. More...

#include <aegis2d/render/export.hpp>
#include <aegis2d/render/renderer.hpp>
#include <cstddef>
#include <cstdint>
#include <vector>

Go to the source code of this file.

Classes

struct  aegis2d::render::SpriteBatch
 Run of consecutive sprites drawn with one texture on one layer: one draw call. More...
 

Namespaces

namespace  aegis2d
 Root namespace of the engine.
 
namespace  aegis2d::render
 OpenGL renderer: sprites, text and camera (client only).
 

Functions

std::vector< SpriteBatch > aegis2d::render::batch_sprites (std::vector< Sprite > &sprites)
 Orders sprites for drawing and groups those that share a layer and a texture.
 

Detailed Description

Grouping the sprites of a frame into as few draw calls as possible.