Cogs.Core
Classes | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
Cogs::Core::InspectorGuiRenderer Class Reference

Classes

struct  RegisteredInspector
 

Public Member Functions

void initialize (class Context *context, class IRenderer *renderer)
 
COGSCORE_DLL_API void beginRender (class Context *context, class IRenderer *renderer)
 
void renderTimes (Context *context)
 
void render (class Context *context, class IRenderer *renderer)
 
COGSCORE_DLL_API void endRender (class Context *context, class IRenderer *renderer)
 
void cleanup (class Context *context, class IRenderer *renderer)
 
COGSCORE_DLL_API void registerInspector (const std::string &name, Inspector inspector)
 
ImguiRenderergetImguiRenderer ()
 

Private Attributes

ImguiRendererimguiRenderer = nullptr
 
ImGuiContext * imguiContext = nullptr
 
std::vector< RegisteredInspectorinspectors
 
float frameTime = 0.0f
 
float frameFPS = 0.0f
 
float cogsTime = 0.0f
 
float cogsFPS = 0.0f
 
float preRenderTime = 0.0f
 
float presentTime = 0.0f
 
float cpuTime = 0.0f
 
float cpuFps = 0.0f
 
float idleTime = 0.0f
 
float frameMin = 10000
 
float frameMax = 0
 
float cogsMin = 10000
 
float cogsMax = 0
 
Timer delta_timer
 
float delta_akk = delta_update
 
uint8_t visualizationMode = 0
 
bool showAboutCogs = false
 
bool showRenderingStatsInspector = false
 
bool showTextureInspector = false
 
bool showShadowMapInspector = false
 
bool showEntityInspector = false
 
bool showFontInspector = false
 
bool showVariableInspector = false
 
bool showInputInspector = false
 
bool showModelInspector = false
 
bool showMeshInspector = false
 
bool showMaterialInspector = false
 
bool showMaterialInstanceInspector = false
 
bool showResourceInspector = false
 
bool showScriptInspector = false
 
bool showScriptConsole = false
 
bool showProfiler = false
 
bool showPipelineInspector = false
 
bool showPermutationInspector = false
 
bool showAssetInspector = false
 
bool showAssetQueueInspector = false
 
bool showBoundsInspector = false
 
bool showBufferInspector = false
 
bool showEngineInspector = false
 
bool showExampleGui = false
 
bool showGammaDebugger = false
 
bool showTaskManagerInspector = false
 

Static Private Attributes

static constexpr float delta_update = 0.125f
 

Detailed Description

Definition at line 13 of file InspectorGuiRenderer.h.

Member Function Documentation

◆ beginRender()

void Cogs::Core::InspectorGuiRenderer::beginRender ( class Context context,
class IRenderer renderer 
)

Definition at line 42 of file InspectorGuiRenderer.cpp.

◆ cleanup()

void Cogs::Core::InspectorGuiRenderer::cleanup ( class Context context,
class IRenderer renderer 
)

Definition at line 567 of file InspectorGuiRenderer.cpp.

◆ endRender()

void Cogs::Core::InspectorGuiRenderer::endRender ( class Context context,
class IRenderer renderer 
)

Definition at line 560 of file InspectorGuiRenderer.cpp.

◆ getImguiRenderer()

ImguiRenderer * Cogs::Core::InspectorGuiRenderer::getImguiRenderer ( )
inline

Definition at line 27 of file InspectorGuiRenderer.h.

◆ initialize()

void Cogs::Core::InspectorGuiRenderer::initialize ( class Context context,
class IRenderer renderer 
)

Definition at line 23 of file InspectorGuiRenderer.cpp.

◆ registerInspector()

void Cogs::Core::InspectorGuiRenderer::registerInspector ( const std::string &  name,
Inspector  inspector 
)

Definition at line 37 of file InspectorGuiRenderer.cpp.

◆ render()

void Cogs::Core::InspectorGuiRenderer::render ( class Context context,
class IRenderer renderer 
)

Definition at line 278 of file InspectorGuiRenderer.cpp.

◆ renderTimes()

void Cogs::Core::InspectorGuiRenderer::renderTimes ( Context context)

Definition at line 50 of file InspectorGuiRenderer.cpp.

Member Data Documentation

◆ cogsFPS

float Cogs::Core::InspectorGuiRenderer::cogsFPS = 0.0f
private

Definition at line 45 of file InspectorGuiRenderer.h.

◆ cogsMax

float Cogs::Core::InspectorGuiRenderer::cogsMax = 0
private

Definition at line 56 of file InspectorGuiRenderer.h.

◆ cogsMin

float Cogs::Core::InspectorGuiRenderer::cogsMin = 10000
private

Definition at line 55 of file InspectorGuiRenderer.h.

◆ cogsTime

float Cogs::Core::InspectorGuiRenderer::cogsTime = 0.0f
private

Definition at line 44 of file InspectorGuiRenderer.h.

◆ cpuFps

float Cogs::Core::InspectorGuiRenderer::cpuFps = 0.0f
private

Definition at line 49 of file InspectorGuiRenderer.h.

◆ cpuTime

float Cogs::Core::InspectorGuiRenderer::cpuTime = 0.0f
private

Definition at line 48 of file InspectorGuiRenderer.h.

◆ delta_akk

float Cogs::Core::InspectorGuiRenderer::delta_akk = delta_update
private

Definition at line 61 of file InspectorGuiRenderer.h.

◆ delta_timer

Timer Cogs::Core::InspectorGuiRenderer::delta_timer
private

Definition at line 59 of file InspectorGuiRenderer.h.

◆ delta_update

constexpr float Cogs::Core::InspectorGuiRenderer::delta_update = 0.125f
staticconstexprprivate

Definition at line 60 of file InspectorGuiRenderer.h.

◆ frameFPS

float Cogs::Core::InspectorGuiRenderer::frameFPS = 0.0f
private

Definition at line 43 of file InspectorGuiRenderer.h.

◆ frameMax

float Cogs::Core::InspectorGuiRenderer::frameMax = 0
private

Definition at line 53 of file InspectorGuiRenderer.h.

◆ frameMin

float Cogs::Core::InspectorGuiRenderer::frameMin = 10000
private

Definition at line 52 of file InspectorGuiRenderer.h.

◆ frameTime

float Cogs::Core::InspectorGuiRenderer::frameTime = 0.0f
private

Definition at line 42 of file InspectorGuiRenderer.h.

◆ idleTime

float Cogs::Core::InspectorGuiRenderer::idleTime = 0.0f
private

Definition at line 50 of file InspectorGuiRenderer.h.

◆ imguiContext

ImGuiContext* Cogs::Core::InspectorGuiRenderer::imguiContext = nullptr
private

Definition at line 31 of file InspectorGuiRenderer.h.

◆ imguiRenderer

ImguiRenderer* Cogs::Core::InspectorGuiRenderer::imguiRenderer = nullptr
private

Definition at line 30 of file InspectorGuiRenderer.h.

◆ inspectors

std::vector<RegisteredInspector> Cogs::Core::InspectorGuiRenderer::inspectors
private

Definition at line 39 of file InspectorGuiRenderer.h.

◆ preRenderTime

float Cogs::Core::InspectorGuiRenderer::preRenderTime = 0.0f
private

Definition at line 46 of file InspectorGuiRenderer.h.

◆ presentTime

float Cogs::Core::InspectorGuiRenderer::presentTime = 0.0f
private

Definition at line 47 of file InspectorGuiRenderer.h.

◆ showAboutCogs

bool Cogs::Core::InspectorGuiRenderer::showAboutCogs = false
private

Definition at line 65 of file InspectorGuiRenderer.h.

◆ showAssetInspector

bool Cogs::Core::InspectorGuiRenderer::showAssetInspector = false
private

Definition at line 83 of file InspectorGuiRenderer.h.

◆ showAssetQueueInspector

bool Cogs::Core::InspectorGuiRenderer::showAssetQueueInspector = false
private

Definition at line 84 of file InspectorGuiRenderer.h.

◆ showBoundsInspector

bool Cogs::Core::InspectorGuiRenderer::showBoundsInspector = false
private

Definition at line 85 of file InspectorGuiRenderer.h.

◆ showBufferInspector

bool Cogs::Core::InspectorGuiRenderer::showBufferInspector = false
private

Definition at line 86 of file InspectorGuiRenderer.h.

◆ showEngineInspector

bool Cogs::Core::InspectorGuiRenderer::showEngineInspector = false
private

Definition at line 87 of file InspectorGuiRenderer.h.

◆ showEntityInspector

bool Cogs::Core::InspectorGuiRenderer::showEntityInspector = false
private

Definition at line 69 of file InspectorGuiRenderer.h.

◆ showExampleGui

bool Cogs::Core::InspectorGuiRenderer::showExampleGui = false
private

Definition at line 88 of file InspectorGuiRenderer.h.

◆ showFontInspector

bool Cogs::Core::InspectorGuiRenderer::showFontInspector = false
private

Definition at line 70 of file InspectorGuiRenderer.h.

◆ showGammaDebugger

bool Cogs::Core::InspectorGuiRenderer::showGammaDebugger = false
private

Definition at line 89 of file InspectorGuiRenderer.h.

◆ showInputInspector

bool Cogs::Core::InspectorGuiRenderer::showInputInspector = false
private

Definition at line 72 of file InspectorGuiRenderer.h.

◆ showMaterialInspector

bool Cogs::Core::InspectorGuiRenderer::showMaterialInspector = false
private

Definition at line 75 of file InspectorGuiRenderer.h.

◆ showMaterialInstanceInspector

bool Cogs::Core::InspectorGuiRenderer::showMaterialInstanceInspector = false
private

Definition at line 76 of file InspectorGuiRenderer.h.

◆ showMeshInspector

bool Cogs::Core::InspectorGuiRenderer::showMeshInspector = false
private

Definition at line 74 of file InspectorGuiRenderer.h.

◆ showModelInspector

bool Cogs::Core::InspectorGuiRenderer::showModelInspector = false
private

Definition at line 73 of file InspectorGuiRenderer.h.

◆ showPermutationInspector

bool Cogs::Core::InspectorGuiRenderer::showPermutationInspector = false
private

Definition at line 82 of file InspectorGuiRenderer.h.

◆ showPipelineInspector

bool Cogs::Core::InspectorGuiRenderer::showPipelineInspector = false
private

Definition at line 81 of file InspectorGuiRenderer.h.

◆ showProfiler

bool Cogs::Core::InspectorGuiRenderer::showProfiler = false
private

Definition at line 80 of file InspectorGuiRenderer.h.

◆ showRenderingStatsInspector

bool Cogs::Core::InspectorGuiRenderer::showRenderingStatsInspector = false
private

Definition at line 66 of file InspectorGuiRenderer.h.

◆ showResourceInspector

bool Cogs::Core::InspectorGuiRenderer::showResourceInspector = false
private

Definition at line 77 of file InspectorGuiRenderer.h.

◆ showScriptConsole

bool Cogs::Core::InspectorGuiRenderer::showScriptConsole = false
private

Definition at line 79 of file InspectorGuiRenderer.h.

◆ showScriptInspector

bool Cogs::Core::InspectorGuiRenderer::showScriptInspector = false
private

Definition at line 78 of file InspectorGuiRenderer.h.

◆ showShadowMapInspector

bool Cogs::Core::InspectorGuiRenderer::showShadowMapInspector = false
private

Definition at line 68 of file InspectorGuiRenderer.h.

◆ showTaskManagerInspector

bool Cogs::Core::InspectorGuiRenderer::showTaskManagerInspector = false
private

Definition at line 90 of file InspectorGuiRenderer.h.

◆ showTextureInspector

bool Cogs::Core::InspectorGuiRenderer::showTextureInspector = false
private

Definition at line 67 of file InspectorGuiRenderer.h.

◆ showVariableInspector

bool Cogs::Core::InspectorGuiRenderer::showVariableInspector = false
private

Definition at line 71 of file InspectorGuiRenderer.h.

◆ visualizationMode

uint8_t Cogs::Core::InspectorGuiRenderer::visualizationMode = 0
private

Definition at line 63 of file InspectorGuiRenderer.h.


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