Untitled Game engine no.5  1.0
Static Public Member Functions | Static Public Attributes | List of all members
Engine::Debug Struct Reference

#include <Debug.hpp>

Static Public Member Functions

static void setDebug (const std::string &key, float var)
 
static float & getDebug (const std::string &key)
 
static glm::mat4 offset ()
 

Static Public Attributes

static std::map< std::string, float > varLookup = std::map<std::string, float>()
 

Detailed Description

Debugging wrapper. Contains a global variable lookup.

Member Function Documentation

◆ getDebug()

float & Engine::Debug::getDebug ( const std::string &  key)
static

Get a debug value by reference

Parameters
keystring id
Returns
value reference

◆ offset()

static glm::mat4 Engine::Debug::offset ( )
inlinestatic

Generate an offset form the main camera using debug values.

Returns
a transformation matrix

◆ setDebug()

void Engine::Debug::setDebug ( const std::string &  key,
float  var 
)
static

Set a debug value by a given reference.

Parameters
keyreference
varvalue

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