Path Tracing
Loading...
Searching...
No Matches
imgui.cpp File Reference
#include "imgui.h"
#include "imgui_internal.h"
#include <stdio.h>
#include <stdint.h>
#include <sys/wait.h>
#include <unistd.h>
Include dependency graph for imgui.cpp:

Classes

struct  ImGuiResizeGripDef
struct  ImGuiResizeBorderDef

Namespaces

namespace  ImGui

Macros

#define IMGUI_DEFINE_MATH_OPERATORS
#define IMGUI_DEBUG_NAV_SCORING   0
#define IMGUI_DEBUG_NAV_RECTS   0
#define va_copy(dest, src)

Functions

ImVec2 ImBezierCubicClosestPoint (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, const ImVec2 &p, int num_segments)
ImVec2 ImBezierCubicClosestPointCasteljau (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, const ImVec2 &p, float tess_tol)
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)
void * ImMemdup (const void *src, size_t size)
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 char * ImStrbol (const char *buf_mid_line, const char *buf_begin)
const char * ImStristr (const char *haystack, const char *haystack_end, const char *needle, const char *needle_end)
void ImStrTrimBlanks (char *buf)
const char * ImStrSkipBlank (const char *str)
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)
void ImFormatStringToTempBuffer (const char **out_buf, const char **out_buf_end, const char *fmt,...)
void ImFormatStringToTempBufferV (const char **out_buf, const char **out_buf_end, const char *fmt, va_list args)
ImGuiID ImHashData (const void *data_p, size_t data_size, ImGuiID seed)
ImGuiID ImHashStr (const char *data_p, size_t data_size, ImGuiID seed)
const char * ImHashSkipUncontributingPrefix (const char *label)
ImFileHandle ImFileOpen (const char *filename, const char *mode)
bool ImFileClose (ImFileHandle f)
ImU64 ImFileGetSize (ImFileHandle f)
ImU64 ImFileRead (void *data, ImU64 sz, ImU64 count, ImFileHandle f)
ImU64 ImFileWrite (const void *data, ImU64 sz, ImU64 count, ImFileHandle f)
void * ImFileLoadToMemory (const char *filename, const char *mode, size_t *out_file_size, int padding_bytes)
IM_MSVC_RUNTIME_CHECKS_OFF 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 ImTextCharToUtf8 (char out_buf[5], unsigned int c)
int ImTextCountUtf8BytesFromChar (const char *in_text, const char *in_text_end)
int ImTextStrToUtf8 (char *out_buf, int out_buf_size, const ImWchar *in_text, const ImWchar *in_text_end)
int ImTextCountUtf8BytesFromStr (const ImWchar *in_text, const ImWchar *in_text_end)
const char * ImTextFindPreviousUtf8Codepoint (const char *in_text_start, const char *in_p)
const char * ImTextFindValidUtf8CodepointEnd (const char *in_text_start, const char *in_text_end, const char *in_p)
int ImTextCountLines (const char *in_text, const char *in_text_end)
IM_MSVC_RUNTIME_CHECKS_RESTORE IMGUI_API ImU32 ImAlphaBlendColors (ImU32 col_a, ImU32 col_b)
ImGuiStoragePair * ImLowerBound (ImGuiStoragePair *in_begin, ImGuiStoragePair *in_end, ImGuiID key)
 IM_STATIC_ASSERT (ImGuiKey_NamedKey_COUNT==IM_COUNTOF(GKeyNames))

Variables

const ImGuiID ImGui::IMGUI_VIEWPORT_DEFAULT_ID = 0x11111111
ImGuiContext * GImGui = NULL

Macro Definition Documentation

◆ 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

◆ va_copy

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

Function Documentation

◆ IM_STATIC_ASSERT()

IM_STATIC_ASSERT ( ImGuiKey_NamedKey_COUNT = =IM_COUNTOF(GKeyNames))

◆ ImAlphaBlendColors()

IM_MSVC_RUNTIME_CHECKS_RESTORE IMGUI_API ImU32 ImAlphaBlendColors ( ImU32 col_a,
ImU32 col_b )

◆ ImBezierCubicClosestPoint()

ImVec2 ImBezierCubicClosestPoint ( const ImVec2 & p1,
const ImVec2 & p2,
const ImVec2 & p3,
const ImVec2 & p4,
const ImVec2 & p,
int num_segments )

◆ ImBezierCubicClosestPointCasteljau()

ImVec2 ImBezierCubicClosestPointCasteljau ( const ImVec2 & p1,
const ImVec2 & p2,
const ImVec2 & p3,
const ImVec2 & p4,
const ImVec2 & p,
float tess_tol )

◆ ImFileClose()

bool ImFileClose ( ImFileHandle f)

◆ ImFileGetSize()

ImU64 ImFileGetSize ( ImFileHandle f)

◆ ImFileLoadToMemory()

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

◆ ImFileOpen()

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

◆ ImFileRead()

ImU64 ImFileRead ( void * data,
ImU64 sz,
ImU64 count,
ImFileHandle f )

◆ ImFileWrite()

ImU64 ImFileWrite ( const void * data,
ImU64 sz,
ImU64 count,
ImFileHandle f )

◆ ImFormatString()

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

◆ ImFormatStringToTempBuffer()

void ImFormatStringToTempBuffer ( const char ** out_buf,
const char ** out_buf_end,
const char * fmt,
... )

◆ ImFormatStringToTempBufferV()

void ImFormatStringToTempBufferV ( const char ** out_buf,
const char ** out_buf_end,
const char * fmt,
va_list args )

◆ ImFormatStringV()

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

◆ ImHashData()

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

◆ ImHashSkipUncontributingPrefix()

const char * ImHashSkipUncontributingPrefix ( const char * label)

◆ ImHashStr()

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

◆ ImLineClosestPoint()

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

◆ ImLowerBound()

ImGuiStoragePair * ImLowerBound ( ImGuiStoragePair * in_begin,
ImGuiStoragePair * in_end,
ImGuiID key )

◆ ImMemdup()

void * ImMemdup ( const void * src,
size_t size )

◆ ImStrbol()

const char * ImStrbol ( const char * buf_mid_line,
const char * 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 )

◆ ImStrSkipBlank()

const char * ImStrSkipBlank ( const char * str)

◆ ImStrTrimBlanks()

void ImStrTrimBlanks ( char * buf)

◆ ImTextCharFromUtf8()

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

◆ ImTextCharToUtf8()

int ImTextCharToUtf8 ( char out_buf[5],
unsigned int c )

◆ ImTextCountCharsFromUtf8()

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

◆ ImTextCountLines()

int ImTextCountLines ( 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 )

◆ ImTextFindPreviousUtf8Codepoint()

const char * ImTextFindPreviousUtf8Codepoint ( const char * in_text_start,
const char * in_p )

◆ ImTextFindValidUtf8CodepointEnd()

const char * ImTextFindValidUtf8CodepointEnd ( const char * in_text_start,
const char * in_text_end,
const char * in_p )

◆ 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 * out_buf,
int out_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