Ylva And Malin
Macros | Functions | Variables
imgui_draw.cpp File Reference
#include "imgui.h"
#include "imgui_internal.h"
#include <stdio.h>
#include <stdlib.h>
#include "stb_rect_pack.h"
#include "stb_truetype.h"
Include dependency graph for imgui_draw.cpp:

Macros

#define IMGUI_DEFINE_MATH_OPERATORS
 
#define STBRP_STATIC
 
#define STBRP_ASSERT(x)   IM_ASSERT(x)
 
#define STB_RECT_PACK_IMPLEMENTATION
 
#define STBTT_malloc(x, u)   ((void)(u), ImGui::MemAlloc(x))
 
#define STBTT_free(x, u)   ((void)(u), ImGui::MemFree(x))
 
#define STBTT_assert(x)   IM_ASSERT(x)
 
#define STBTT_fmod(x, y)   ImFmod(x,y)
 
#define STBTT_sqrt(x)   ImSqrt(x)
 
#define STBTT_pow(x, y)   ImPow(x,y)
 
#define STBTT_fabs(x)   ImFabs(x)
 
#define STBTT_ifloor(x)   ((int)ImFloorStd(x))
 
#define STBTT_iceil(x)   ((int)ImCeil(x))
 
#define STBTT_STATIC
 
#define STB_TRUETYPE_IMPLEMENTATION
 
#define GetCurrentClipRect()   (_ClipRectStack.Size ? _ClipRectStack.Data[_ClipRectStack.Size-1] : _Data->ClipRectFullscreen)
 
#define GetCurrentTextureId()   (_TextureIdStack.Size ? _TextureIdStack.Data[_TextureIdStack.Size-1] : NULL)
 
#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))
 

Functions

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)
 
bool ImFontAtlasBuildWithStbTruetype (ImFontAtlas *atlas)
 
void ImFontAtlasBuildRegisterDefaultCustomRects (ImFontAtlas *atlas)
 
void ImFontAtlasBuildSetupFont (ImFontAtlas *atlas, ImFont *font, ImFontConfig *font_config, float ascent, float descent)
 
void ImFontAtlasBuildPackCustomRects (ImFontAtlas *atlas, void *pack_context_opaque)
 
void ImFontAtlasBuildFinish (ImFontAtlas *atlas)
 

Variables

const int FONT_ATLAS_DEFAULT_TEX_DATA_W_HALF = 90
 
const int FONT_ATLAS_DEFAULT_TEX_DATA_H = 27
 
const unsigned int FONT_ATLAS_DEFAULT_TEX_DATA_ID = 0x80000000
 

Macro Definition Documentation

#define GetCurrentClipRect ( )    (_ClipRectStack.Size ? _ClipRectStack.Data[_ClipRectStack.Size-1] : _Data->ClipRectFullscreen)
#define GetCurrentTextureId ( )    (_TextureIdStack.Size ? _TextureIdStack.Data[_TextureIdStack.Size-1] : NULL)
#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_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,
 
)    ((void)(u), ImGui::MemFree(x))
#define STBTT_iceil (   x)    ((int)ImCeil(x))
#define STBTT_ifloor (   x)    ((int)ImFloorStd(x))
#define STBTT_malloc (   x,
 
)    ((void)(u), ImGui::MemAlloc(x))
#define STBTT_pow (   x,
  y 
)    ImPow(x,y)
#define STBTT_sqrt (   x)    ImSqrt(x)
#define STBTT_STATIC

Function Documentation

void ImFontAtlasBuildFinish ( ImFontAtlas atlas)

Here is the call graph for this function:

Here is the caller graph for this function:

void ImFontAtlasBuildMultiplyCalcLookupTable ( unsigned char  out_table[256],
float  in_brighten_factor 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void ImFontAtlasBuildMultiplyRectAlpha8 ( const unsigned char  table[256],
unsigned char *  pixels,
int  x,
int  y,
int  w,
int  h,
int  stride 
)

Here is the caller graph for this function:

void ImFontAtlasBuildPackCustomRects ( ImFontAtlas atlas,
void pack_context_opaque 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void ImFontAtlasBuildRegisterDefaultCustomRects ( ImFontAtlas atlas)

Here is the call graph for this function:

Here is the caller graph for this function:

void ImFontAtlasBuildSetupFont ( ImFontAtlas atlas,
ImFont font,
ImFontConfig font_config,
float  ascent,
float  descent 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool ImFontAtlasBuildWithStbTruetype ( ImFontAtlas atlas)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const int FONT_ATLAS_DEFAULT_TEX_DATA_H = 27
const unsigned int FONT_ATLAS_DEFAULT_TEX_DATA_ID = 0x80000000
const int FONT_ATLAS_DEFAULT_TEX_DATA_W_HALF = 90