LightsprintSDK 2021.08.08
rr_gl::NamedCounter Class Reference

#include <Renderer.h>

Public Member Functions

NamedCounterinit (const char *_name, NamedCounter *_next)
 

Public Attributes

unsigned count
 
const char * name
 
NamedCounternext
 

Detailed Description

Counter with ASCII name, helps plugin developers gather rendering statistics.

Plugins own counters and increment them as they wish. Application reads them via Renderer::getCounters().

Member Function Documentation

◆ init()

NamedCounter * rr_gl::NamedCounter::init ( const char *  _name,
NamedCounter _next 
)
inline

Member Data Documentation

◆ count

unsigned rr_gl::NamedCounter::count

Count, zeroed at creation time, incremented by plugin, read and possibly modified by application.

◆ name

const char* rr_gl::NamedCounter::name

Name, set at creation time, never modified or freed.

◆ next

NamedCounter* rr_gl::NamedCounter::next

Pointer to next counter, nullptr for end of list.