Recast Navigation
Navigation-mesh Toolset for Games
Loading...
Searching...
No Matches
imguiHelpers.h File Reference
#include "AppState.h"
#include <imgui.h>
#include <stdio.h>

Go to the source code of this file.

Functions

void DrawScreenspaceText (float x, float y, ImU32 color, const char *text, bool centered=false)
 
void DrawWorldspaceText (float x, float y, float z, ImU32 color, const char *text, bool centered=false, float offsetY=0.0f)
 
void DrawFloatSlider (float *value, float min, float max, const char *id, const char *label, const char *valueFormat="%.2f")
 
void DrawIntSlider (int *value, int min, int max, const char *id, const char *label, const char *valueFormat="%d")
 
void DrawRightAlignedText (const char *format,...)
 

Variables

AppState app
 

Function Documentation

◆ DrawFloatSlider()

void DrawFloatSlider ( float *  value,
float  min,
float  max,
const char *  id,
const char *  label,
const char *  valueFormat = "%.2f" 
)
inline

◆ DrawIntSlider()

void DrawIntSlider ( int *  value,
int  min,
int  max,
const char *  id,
const char *  label,
const char *  valueFormat = "%d" 
)
inline

◆ DrawRightAlignedText()

void DrawRightAlignedText ( const char *  format,
  ... 
)
inline

◆ DrawScreenspaceText()

void DrawScreenspaceText ( float  x,
float  y,
ImU32  color,
const char *  text,
bool  centered = false 
)
inline

◆ DrawWorldspaceText()

void DrawWorldspaceText ( float  x,
float  y,
float  z,
ImU32  color,
const char *  text,
bool  centered = false,
float  offsetY = 0.0f 
)
inline

Variable Documentation

◆ app

AppState app
extern