Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine.
GitHub | Vesper Updates | Creator
Loading...
Searching...
No Matches
Vesper::Renderer2D::Statistics Struct Reference

2D Renderer Statistics More...

#include <Renderer2D.h>

Public Member Functions

uint32_t GetTotalVertexCount ()
 Calculates the total number of vertices drawn.
uint32_t GetTotalIndexCount ()
 Calculates the total number of indices drawn.

Public Attributes

uint32_t DrawCalls = 0
 The number of draw calls being made.
uint32_t QuadCount = 0
 The number of quads being drawn.

Detailed Description

Member Function Documentation

◆ GetTotalIndexCount()

uint32_t Vesper::Renderer2D::Statistics::GetTotalIndexCount ( )
inline

Calculates the total number of indices drawn.

213{ return QuadCount * 6; }
uint32_t QuadCount
The number of quads being drawn.
Definition Renderer2D.h:209

References QuadCount.

◆ GetTotalVertexCount()

uint32_t Vesper::Renderer2D::Statistics::GetTotalVertexCount ( )
inline

Calculates the total number of vertices drawn.

211{ return QuadCount * 4; }

References QuadCount.

Member Data Documentation

◆ DrawCalls

uint32_t Vesper::Renderer2D::Statistics::DrawCalls = 0

The number of draw calls being made.

Referenced by Vesper::Renderer2D::Flush().

◆ QuadCount


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