Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Attributes | List of all members
Batch Struct Reference

A group of vertices and indices that can be rendered together. More...

#include <ember_core.h>

Public Attributes

std::vector< Vertexvertices
 Batched vertex data. More...
 
std::vector< uint32_t > indices
 Batched index data. More...
 
Uint32 texture_id = 0
 Texture used in this batch. More...
 
DrawCommandType type = DrawCommandType::NONE
 Type of draw command. More...
 
int z_index = 0
 Render order. More...
 
UberShader uber_shader = UberShader::none()
 Shader effects applied. More...
 
DrawCommandMode mode = DrawCommandMode::TRIANGLES
 
float thickness = 1.0f
 Line thickness for lines. More...
 

Detailed Description

A group of vertices and indices that can be rendered together.

Member Data Documentation

◆ indices

std::vector<uint32_t> Batch::indices

Batched index data.

◆ mode

◆ texture_id

Uint32 Batch::texture_id = 0

Texture used in this batch.

◆ thickness

float Batch::thickness = 1.0f

Line thickness for lines.

◆ type

Type of draw command.

◆ uber_shader

UberShader Batch::uber_shader = UberShader::none()

Shader effects applied.

◆ vertices

std::vector<Vertex> Batch::vertices

Batched vertex data.

◆ z_index

int Batch::z_index = 0

Render order.


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