Elaztek Developer Hub
Blamite Game Engine - blam!  00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
imgui.cpp File Reference
#include "imgui.h"
#include "imgui_internal.h"
#include <ctype.h>
#include <stdio.h>
#include <stdint.h>

Classes

struct  ImGuiResizeGripDef
 
struct  ImGuiStyleVarInfo
 

Namespaces

 ImGui
 

Macros

#define IMGUI_DEFINE_MATH_OPERATORS
 
#define IMGUI_DEBUG_NAV_SCORING   0
 
#define IMGUI_DEBUG_NAV_RECTS   0
 
#define IMGUI_DEBUG_INI_SETTINGS   0
 
#define va_copy(dest, src)   (dest = src)
 
#define NAV_MAP_KEY(_KEY, _NAV_INPUT)   do { if (IsKeyDown(g.IO.KeyMap[_KEY])) { g.IO.NavInputs[_NAV_INPUT] = 1.0f; g.NavInputSource = ImGuiInputSource_NavKeyboard; } } while (0)
 

Functions

ImVec2 ImLineClosestPoint (const ImVec2 &a, const ImVec2 &b, const ImVec2 &p)
 
bool ImTriangleContainsPoint (const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, const ImVec2 &p)
 
void ImTriangleBarycentricCoords (const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, const ImVec2 &p, float &out_u, float &out_v, float &out_w)
 
ImVec2 ImTriangleClosestPoint (const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, const ImVec2 &p)
 
int ImStricmp (const char *str1, const char *str2)
 
int ImStrnicmp (const char *str1, const char *str2, size_t count)
 
void ImStrncpy (char *dst, const char *src, size_t count)
 
char * ImStrdup (const char *str)
 
char * ImStrdupcpy (char *dst, size_t *p_dst_size, const char *src)
 
const char * ImStrchrRange (const char *str, const char *str_end, char c)
 
int ImStrlenW (const ImWchar *str)
 
const char * ImStreolRange (const char *str, const char *str_end)
 
const ImWcharImStrbolW (const ImWchar *buf_mid_line, const ImWchar *buf_begin)
 
const char * ImStristr (const char *haystack, const char *haystack_end, const char *needle, const char *needle_end)
 
void ImStrTrimBlanks (char *buf)
 
int ImFormatString (char *buf, size_t buf_size, const char *fmt,...)
 
int ImFormatStringV (char *buf, size_t buf_size, const char *fmt, va_list args)
 
ImU32 ImHashData (const void *data_p, size_t data_size, ImU32 seed)
 
ImU32 ImHashStr (const char *data_p, size_t data_size, ImU32 seed)
 
FILE * ImFileOpen (const char *filename, const char *mode)
 
void * ImFileLoadToMemory (const char *filename, const char *file_open_mode, size_t *out_file_size, int padding_bytes)
 
int ImTextCharFromUtf8 (unsigned int *out_char, const char *in_text, const char *in_text_end)
 
int ImTextStrFromUtf8 (ImWchar *buf, int buf_size, const char *in_text, const char *in_text_end, const char **in_text_remaining)
 
int ImTextCountCharsFromUtf8 (const char *in_text, const char *in_text_end)
 
int ImTextCountUtf8BytesFromChar (const char *in_text, const char *in_text_end)
 
int ImTextStrToUtf8 (char *buf, int buf_size, const ImWchar *in_text, const ImWchar *in_text_end)
 
int ImTextCountUtf8BytesFromStr (const ImWchar *in_text, const ImWchar *in_text_end)
 
ImGuiDir ImGetDirQuadrantFromDelta (float dx, float dy)
 

Variables

ImGuiContextGImGui = NULL
 

Macro Definition Documentation

◆ IMGUI_DEBUG_INI_SETTINGS

#define IMGUI_DEBUG_INI_SETTINGS   0

◆ IMGUI_DEBUG_NAV_RECTS

#define IMGUI_DEBUG_NAV_RECTS   0

◆ IMGUI_DEBUG_NAV_SCORING

#define IMGUI_DEBUG_NAV_SCORING   0

◆ IMGUI_DEFINE_MATH_OPERATORS

#define IMGUI_DEFINE_MATH_OPERATORS

◆ NAV_MAP_KEY

#define NAV_MAP_KEY (   _KEY,
  _NAV_INPUT 
)    do { if (IsKeyDown(g.IO.KeyMap[_KEY])) { g.IO.NavInputs[_NAV_INPUT] = 1.0f; g.NavInputSource = ImGuiInputSource_NavKeyboard; } } while (0)

◆ va_copy

#define va_copy (   dest,
  src 
)    (dest = src)

Function Documentation

◆ ImFileLoadToMemory()

void* ImFileLoadToMemory ( const char *  filename,
const char *  file_open_mode,
size_t *  out_file_size,
int  padding_bytes 
)

◆ ImFileOpen()

FILE* ImFileOpen ( const char *  filename,
const char *  mode 
)

◆ ImFormatString()

int ImFormatString ( char *  buf,
size_t  buf_size,
const char *  fmt,
  ... 
)

◆ ImFormatStringV()

int ImFormatStringV ( char *  buf,
size_t  buf_size,
const char *  fmt,
va_list  args 
)

◆ ImGetDirQuadrantFromDelta()

ImGuiDir ImGetDirQuadrantFromDelta ( float  dx,
float  dy 
)

◆ ImHashData()

ImU32 ImHashData ( const void *  data_p,
size_t  data_size,
ImU32  seed 
)

◆ ImHashStr()

ImU32 ImHashStr ( const char *  data_p,
size_t  data_size,
ImU32  seed 
)

◆ ImLineClosestPoint()

ImVec2 ImLineClosestPoint ( const ImVec2 a,
const ImVec2 b,
const ImVec2 p 
)

◆ ImStrbolW()

const ImWchar* ImStrbolW ( const ImWchar buf_mid_line,
const ImWchar buf_begin 
)

◆ ImStrchrRange()

const char* ImStrchrRange ( const char *  str,
const char *  str_end,
char  c 
)

◆ ImStrdup()

char* ImStrdup ( const char *  str)

◆ ImStrdupcpy()

char* ImStrdupcpy ( char *  dst,
size_t *  p_dst_size,
const char *  src 
)

◆ ImStreolRange()

const char* ImStreolRange ( const char *  str,
const char *  str_end 
)

◆ ImStricmp()

int ImStricmp ( const char *  str1,
const char *  str2 
)

◆ ImStristr()

const char* ImStristr ( const char *  haystack,
const char *  haystack_end,
const char *  needle,
const char *  needle_end 
)

◆ ImStrlenW()

int ImStrlenW ( const ImWchar str)

◆ ImStrncpy()

void ImStrncpy ( char *  dst,
const char *  src,
size_t  count 
)

◆ ImStrnicmp()

int ImStrnicmp ( const char *  str1,
const char *  str2,
size_t  count 
)

◆ ImStrTrimBlanks()

void ImStrTrimBlanks ( char *  buf)

◆ ImTextCharFromUtf8()

int ImTextCharFromUtf8 ( unsigned int *  out_char,
const char *  in_text,
const char *  in_text_end 
)

◆ ImTextCountCharsFromUtf8()

int ImTextCountCharsFromUtf8 ( const char *  in_text,
const char *  in_text_end 
)

◆ ImTextCountUtf8BytesFromChar()

int ImTextCountUtf8BytesFromChar ( const char *  in_text,
const char *  in_text_end 
)

◆ ImTextCountUtf8BytesFromStr()

int ImTextCountUtf8BytesFromStr ( const ImWchar in_text,
const ImWchar in_text_end 
)

◆ ImTextStrFromUtf8()

int ImTextStrFromUtf8 ( ImWchar buf,
int  buf_size,
const char *  in_text,
const char *  in_text_end,
const char **  in_text_remaining 
)

◆ ImTextStrToUtf8()

int ImTextStrToUtf8 ( char *  buf,
int  buf_size,
const ImWchar in_text,
const ImWchar in_text_end 
)

◆ ImTriangleBarycentricCoords()

void ImTriangleBarycentricCoords ( const ImVec2 a,
const ImVec2 b,
const ImVec2 c,
const ImVec2 p,
float &  out_u,
float &  out_v,
float &  out_w 
)

◆ ImTriangleClosestPoint()

ImVec2 ImTriangleClosestPoint ( const ImVec2 a,
const ImVec2 b,
const ImVec2 c,
const ImVec2 p 
)

◆ ImTriangleContainsPoint()

bool ImTriangleContainsPoint ( const ImVec2 a,
const ImVec2 b,
const ImVec2 c,
const ImVec2 p 
)

Variable Documentation

◆ GImGui

ImGuiContext* GImGui = NULL