Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
Muto::Renderer2D::Statistics Struct Reference

2D Renderer Statistics More...

#include <Renderer2D.h>

Public Member Functions

uint32_t GetTotalIndexCount ()
 Calculates the total number of indices drawn.
 
uint32_t GetTotalVertexCount ()
 Calculates the total number of vertices 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 Muto::Renderer2D::Statistics::GetTotalIndexCount ( )
inline

Calculates the total number of indices drawn.

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

References QuadCount.

◆ GetTotalVertexCount()

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

Calculates the total number of vertices drawn.

216{ return QuadCount * 4; }

References QuadCount.

Member Data Documentation

◆ DrawCalls

uint32_t Muto::Renderer2D::Statistics::DrawCalls = 0

The number of draw calls being made.

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

◆ QuadCount


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