#include "imgui.h"
#include "imgui_internal.h"
#include <stdio.h>
#include <stdlib.h>
#include "imstb_rectpack.h"
#include "imstb_truetype.h"
Go to the source code of this file.
Macros | |
#define | GetCurrentClipRect() (_ClipRectStack.Size ? _ClipRectStack.Data[_ClipRectStack.Size-1] : _Data->ClipRectFullscreen) |
#define | GetCurrentTextureId() (_TextureIdStack.Size ? _TextureIdStack.Data[_TextureIdStack.Size-1] : NULL) |
#define | IM_NORMALIZE2F_OVER_EPSILON_CLAMP(VX, VY, EPS, INVLENMAX) { float d2 = VX*VX + VY*VY; if (d2 > EPS) { float inv_len = 1.0f / ImSqrt(d2); if (inv_len > INVLENMAX) inv_len = INVLENMAX; VX *= inv_len; VY *= inv_len; } } |
#define | IM_NORMALIZE2F_OVER_ZERO(VX, VY) { float d2 = VX*VX + VY*VY; if (d2 > 0.0f) { float inv_len = 1.0f / ImSqrt(d2); VX *= inv_len; VY *= inv_len; } } |
#define | IMGUI_DEFINE_MATH_OPERATORS |
#define | stb__in2(x) ((i[x] << 8) + i[(x)+1]) |
#define | stb__in3(x) ((i[x] << 16) + stb__in2((x)+1)) |
#define | stb__in4(x) ((i[x] << 24) + stb__in3((x)+1)) |
#define | STB_RECT_PACK_IMPLEMENTATION |
#define | STB_TRUETYPE_IMPLEMENTATION |
#define | STBRP_ASSERT(x) IM_ASSERT(x) |
#define | STBRP_SORT ImQsort |
#define | STBRP_STATIC |
#define | STBTT_assert(x) IM_ASSERT(x) |
#define | STBTT_fabs(x) ImFabs(x) |
#define | STBTT_fmod(x, y) ImFmod(x,y) |
#define | STBTT_free(x, u) ((void)(u), ImGui::MemFree(x)) |
#define | STBTT_iceil(x) ((int)ImCeil(x)) |
#define | STBTT_ifloor(x) ((int)ImFloorStd(x)) |
#define | STBTT_malloc(x, u) ((void)(u), ImGui::MemAlloc(x)) |
#define | STBTT_pow(x, y) ImPow(x,y) |
#define | STBTT_sqrt(x) ImSqrt(x) |
#define | STBTT_STATIC |
Functions | |
static void | Decode85 (const unsigned char *src, unsigned char *dst) |
static unsigned int | Decode85Byte (char c) |
static const char * | GetDefaultCompressedFontDataTTFBase85 () |
static float | ImAcos01 (float x) |
void | ImFontAtlasBuildFinish (ImFontAtlas *atlas) |
void | ImFontAtlasBuildMultiplyCalcLookupTable (unsigned char out_table[256], float in_brighten_factor) |
void | ImFontAtlasBuildMultiplyRectAlpha8 (const unsigned char table[256], unsigned char *pixels, int x, int y, int w, int h, int stride) |
void | ImFontAtlasBuildPackCustomRects (ImFontAtlas *atlas, void *pack_context_opaque) |
void | ImFontAtlasBuildRegisterDefaultCustomRects (ImFontAtlas *atlas) |
static void | ImFontAtlasBuildRenderDefaultTexData (ImFontAtlas *atlas) |
void | ImFontAtlasBuildSetupFont (ImFontAtlas *atlas, ImFont *font, ImFontConfig *font_config, float ascent, float descent) |
bool | ImFontAtlasBuildWithStbTruetype (ImFontAtlas *atlas) |
static void | PathBezierToCasteljau (ImVector< ImVec2 > *path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) |
static void | stb__lit (const unsigned char *data, unsigned int length) |
static void | stb__match (const unsigned char *data, unsigned int length) |
static unsigned int | stb_adler32 (unsigned int adler32, unsigned char *buffer, unsigned int buflen) |
static unsigned int | stb_decompress (unsigned char *output, const unsigned char *input, unsigned int length) |
static unsigned int | stb_decompress_length (const unsigned char *input) |
static const unsigned char * | stb_decompress_token (const unsigned char *i) |
static void | UnpackAccumulativeOffsetsIntoRanges (int base_codepoint, const short *accumulative_offsets, int accumulative_offsets_count, ImWchar *out_ranges) |
Variables | |
static const ImVec2 | FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA [ImGuiMouseCursor_COUNT][3] |
const int | FONT_ATLAS_DEFAULT_TEX_DATA_H = 27 |
const unsigned int | FONT_ATLAS_DEFAULT_TEX_DATA_ID = 0x80000000 |
static const char | FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS [FONT_ATLAS_DEFAULT_TEX_DATA_W_HALF *FONT_ATLAS_DEFAULT_TEX_DATA_H+1] |
const int | FONT_ATLAS_DEFAULT_TEX_DATA_W_HALF = 108 |
static const char | proggy_clean_ttf_compressed_data_base85 [11980+1] |
static const unsigned char * | stb__barrier_in_b |
static unsigned char * | stb__barrier_out_b |
static unsigned char * | stb__barrier_out_e |
static unsigned char * | stb__dout |
#define GetCurrentClipRect | ( | ) | (_ClipRectStack.Size ? _ClipRectStack.Data[_ClipRectStack.Size-1] : _Data->ClipRectFullscreen) |
Definition at line 406 of file imgui_draw.cpp.
#define GetCurrentTextureId | ( | ) | (_TextureIdStack.Size ? _TextureIdStack.Data[_TextureIdStack.Size-1] : NULL) |
Definition at line 407 of file imgui_draw.cpp.
#define IM_NORMALIZE2F_OVER_EPSILON_CLAMP | ( | VX, | |
VY, | |||
EPS, | |||
INVLENMAX | |||
) | { float d2 = VX*VX + VY*VY; if (d2 > EPS) { float inv_len = 1.0f / ImSqrt(d2); if (inv_len > INVLENMAX) inv_len = INVLENMAX; VX *= inv_len; VY *= inv_len; } } |
Definition at line 662 of file imgui_draw.cpp.
#define IM_NORMALIZE2F_OVER_ZERO | ( | VX, | |
VY | |||
) | { float d2 = VX*VX + VY*VY; if (d2 > 0.0f) { float inv_len = 1.0f / ImSqrt(d2); VX *= inv_len; VY *= inv_len; } } |
Definition at line 661 of file imgui_draw.cpp.
#define IMGUI_DEFINE_MATH_OPERATORS |
Definition at line 30 of file imgui_draw.cpp.
#define stb__in2 | ( | x | ) | ((i[x] << 8) + i[(x)+1]) |
Definition at line 3011 of file imgui_draw.cpp.
#define stb__in3 | ( | x | ) | ((i[x] << 16) + stb__in2((x)+1)) |
Definition at line 3012 of file imgui_draw.cpp.
#define stb__in4 | ( | x | ) | ((i[x] << 24) + stb__in3((x)+1)) |
Definition at line 3013 of file imgui_draw.cpp.
#define STB_RECT_PACK_IMPLEMENTATION |
Definition at line 118 of file imgui_draw.cpp.
#define STB_TRUETYPE_IMPLEMENTATION |
Definition at line 139 of file imgui_draw.cpp.
#define STBRP_ASSERT | ( | x | ) | IM_ASSERT(x) |
Definition at line 116 of file imgui_draw.cpp.
#define STBRP_SORT ImQsort |
Definition at line 117 of file imgui_draw.cpp.
#define STBRP_STATIC |
Definition at line 115 of file imgui_draw.cpp.
#define STBTT_assert | ( | x | ) | IM_ASSERT(x) |
Definition at line 131 of file imgui_draw.cpp.
#define STBTT_fabs | ( | x | ) | ImFabs(x) |
Definition at line 135 of file imgui_draw.cpp.
#define STBTT_fmod | ( | x, | |
y | |||
) | ImFmod(x,y) |
Definition at line 132 of file imgui_draw.cpp.
#define STBTT_free | ( | x, | |
u | |||
) | ((void)(u), ImGui::MemFree(x)) |
Definition at line 130 of file imgui_draw.cpp.
#define STBTT_iceil | ( | x | ) | ((int)ImCeil(x)) |
Definition at line 137 of file imgui_draw.cpp.
#define STBTT_ifloor | ( | x | ) | ((int)ImFloorStd(x)) |
Definition at line 136 of file imgui_draw.cpp.
#define STBTT_malloc | ( | x, | |
u | |||
) | ((void)(u), ImGui::MemAlloc(x)) |
Definition at line 129 of file imgui_draw.cpp.
#define STBTT_pow | ( | x, | |
y | |||
) | ImPow(x,y) |
Definition at line 134 of file imgui_draw.cpp.
#define STBTT_sqrt | ( | x | ) | ImSqrt(x) |
Definition at line 133 of file imgui_draw.cpp.
#define STBTT_STATIC |
Definition at line 138 of file imgui_draw.cpp.
|
static |
Definition at line 1567 of file imgui_draw.cpp.
|
static |
Definition at line 1566 of file imgui_draw.cpp.
|
static |
Definition at line 3196 of file imgui_draw.cpp.
|
inlinestatic |
Definition at line 2897 of file imgui_draw.cpp.
void ImFontAtlasBuildFinish | ( | ImFontAtlas * | atlas | ) |
Definition at line 2036 of file imgui_draw.cpp.
void ImFontAtlasBuildMultiplyCalcLookupTable | ( | unsigned char | out_table[256], |
float | in_brighten_factor | ||
) |
Definition at line 1719 of file imgui_draw.cpp.
void ImFontAtlasBuildMultiplyRectAlpha8 | ( | const unsigned char | table[256], |
unsigned char * | pixels, | ||
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
int | stride | ||
) |
Definition at line 1728 of file imgui_draw.cpp.
void ImFontAtlasBuildPackCustomRects | ( | ImFontAtlas * | atlas, |
void * | pack_context_opaque | ||
) |
Definition at line 1979 of file imgui_draw.cpp.
void ImFontAtlasBuildRegisterDefaultCustomRects | ( | ImFontAtlas * | atlas | ) |
Definition at line 1955 of file imgui_draw.cpp.
|
static |
Definition at line 2005 of file imgui_draw.cpp.
void ImFontAtlasBuildSetupFont | ( | ImFontAtlas * | atlas, |
ImFont * | font, | ||
ImFontConfig * | font_config, | ||
float | ascent, | ||
float | descent | ||
) |
Definition at line 1965 of file imgui_draw.cpp.
bool ImFontAtlasBuildWithStbTruetype | ( | ImFontAtlas * | atlas | ) |
Definition at line 1736 of file imgui_draw.cpp.
|
static |
Definition at line 965 of file imgui_draw.cpp.
|
static |
Definition at line 3002 of file imgui_draw.cpp.
|
static |
Definition at line 2993 of file imgui_draw.cpp.
|
static |
Definition at line 3032 of file imgui_draw.cpp.
|
static |
Definition at line 3063 of file imgui_draw.cpp.
|
static |
Definition at line 2985 of file imgui_draw.cpp.
|
static |
Definition at line 3015 of file imgui_draw.cpp.
|
static |
Definition at line 2097 of file imgui_draw.cpp.
|
static |
Definition at line 1409 of file imgui_draw.cpp.
const int FONT_ATLAS_DEFAULT_TEX_DATA_H = 27 |
Definition at line 1376 of file imgui_draw.cpp.
const unsigned int FONT_ATLAS_DEFAULT_TEX_DATA_ID = 0x80000000 |
Definition at line 1377 of file imgui_draw.cpp.
|
static |
Definition at line 1378 of file imgui_draw.cpp.
const int FONT_ATLAS_DEFAULT_TEX_DATA_W_HALF = 108 |
Definition at line 1375 of file imgui_draw.cpp.
|
static |
Definition at line 3108 of file imgui_draw.cpp.
|
static |
Definition at line 2991 of file imgui_draw.cpp.
|
static |
Definition at line 2990 of file imgui_draw.cpp.
|
static |
Definition at line 2990 of file imgui_draw.cpp.
|
static |
Definition at line 2992 of file imgui_draw.cpp.