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

Used to batch draw commands by shared properties. More...

#include <ember_core.h>

Public Member Functions

bool operator== (const BatchKey &other) const
 Equality operator. More...
 

Public Attributes

Uint32 texture_id
 Texture used. More...
 
int z_index
 Z-index. More...
 
DrawCommandType type
 Type of draw command. More...
 
UberShader uber_shader = UberShader::none()
 Shader used for this batch. More...
 

Detailed Description

Used to batch draw commands by shared properties.

Member Function Documentation

◆ operator==()

bool BatchKey::operator== ( const BatchKey other) const
inline

Equality operator.

Member Data Documentation

◆ texture_id

Uint32 BatchKey::texture_id

Texture used.

◆ type

DrawCommandType BatchKey::type

Type of draw command.

◆ uber_shader

UberShader BatchKey::uber_shader = UberShader::none()

Shader used for this batch.

◆ z_index

int BatchKey::z_index

Z-index.


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