Euphoria
eu::render::SpriteBatch Struct Reference

Public Member Functions

 SpriteBatch (State *states, ShaderProgram *shader, Render2 *r)
 ~SpriteBatch ()
 SpriteBatch (const SpriteBatch &)=delete
void operator= (const SpriteBatch &)=delete
 SpriteBatch (SpriteBatch &&)=delete
void operator= (SpriteBatch &&)=delete
void quad (std::optional< const Texture2d * > texture, const Vertex2 &v0, const Vertex2 &v1, const Vertex2 &v2, const Vertex2 &v3)
void submit ()

Public Attributes

Statestates
std::vector< float > data
int quads = 0
const Texture2dcurrent_texture = nullptr
u32 va = 0
u32 vb = 0
u32 ib = 0
Render2render
Texture2d white_texture

Static Public Attributes

static constexpr int max_quads = 100

Detailed Description

Definition at line 53 of file canvas.h.

Constructor & Destructor Documentation

◆ SpriteBatch() [1/3]

eu::render::SpriteBatch::SpriteBatch ( State * states,
ShaderProgram * shader,
Render2 * r )

◆ ~SpriteBatch()

eu::render::SpriteBatch::~SpriteBatch ( )

◆ SpriteBatch() [2/3]

eu::render::SpriteBatch::SpriteBatch ( const SpriteBatch & )
delete

◆ SpriteBatch() [3/3]

eu::render::SpriteBatch::SpriteBatch ( SpriteBatch && )
delete

Member Function Documentation

◆ operator=() [1/2]

void eu::render::SpriteBatch::operator= ( const SpriteBatch & )
delete

◆ operator=() [2/2]

void eu::render::SpriteBatch::operator= ( SpriteBatch && )
delete

◆ quad()

void eu::render::SpriteBatch::quad ( std::optional< const Texture2d * > texture,
const Vertex2 & v0,
const Vertex2 & v1,
const Vertex2 & v2,
const Vertex2 & v3 )

◆ submit()

void eu::render::SpriteBatch::submit ( )

Member Data Documentation

◆ current_texture

const Texture2d* eu::render::SpriteBatch::current_texture = nullptr

Definition at line 60 of file canvas.h.

◆ data

std::vector<float> eu::render::SpriteBatch::data

Definition at line 58 of file canvas.h.

◆ ib

u32 eu::render::SpriteBatch::ib = 0

Definition at line 63 of file canvas.h.

◆ max_quads

int eu::render::SpriteBatch::max_quads = 100
staticconstexpr

Definition at line 55 of file canvas.h.

◆ quads

int eu::render::SpriteBatch::quads = 0

Definition at line 59 of file canvas.h.

◆ render

Render2* eu::render::SpriteBatch::render

Definition at line 64 of file canvas.h.

◆ states

State* eu::render::SpriteBatch::states

Definition at line 57 of file canvas.h.

◆ va

u32 eu::render::SpriteBatch::va = 0

Definition at line 61 of file canvas.h.

◆ vb

u32 eu::render::SpriteBatch::vb = 0

Definition at line 62 of file canvas.h.

◆ white_texture

Texture2d eu::render::SpriteBatch::white_texture

Definition at line 65 of file canvas.h.


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