name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
ImDrawList::_OnChangedTextureID()
void ImDrawList::_OnChangedTextureID() { // If current command is used with different settings we need to add a new command ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; if (curr_cmd->ElemCount != 0 && curr_cmd->TextureId != _CmdHeader.TextureId) { AddDrawCmd(); return; ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rcx movq %rcx, -0x20(%rbp) movq 0x8(%rcx), %rax movl (%rcx), %ecx subl $0x1, %ecx movslq %ecx, %rcx imulq $0x38, %rcx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x20(%rax) je 0x83a98 movq -0x20(%rbp),...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::_OnChangedVtxOffset()
void ImDrawList::_OnChangedVtxOffset() { // We don't need to compare curr_cmd->VtxOffset != _CmdHeader.VtxOffset because we know it'll be different at the time we call this. _VtxCurrentIdx = 0; ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; //IM_ASSERT(curr_cmd->VtxOffset != _CmdHeader.VtxOf...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rcx movq %rcx, -0x18(%rbp) movl $0x0, 0x34(%rcx) movq 0x8(%rcx), %rax movl (%rcx), %ecx subl $0x1, %ecx movslq %ecx, %rcx imulq $0x38, %rcx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x20(%rax) je 0x8...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::PushClipRect(ImVec2, ImVec2, bool)
void ImDrawList::PushClipRect(ImVec2 cr_min, ImVec2 cr_max, bool intersect_with_current_clip_rect) { ImVec4 cr(cr_min.x, cr_min.y, cr_max.x, cr_max.y); if (intersect_with_current_clip_rect) { ImVec4 current = _CmdHeader.ClipRect; if (cr.x < current.x) cr.x = current.x; if (cr.y < cur...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movb %sil, %al movlpd %xmm0, -0x8(%rbp) movlpd %xmm1, -0x10(%rbp) movq %rdi, -0x18(%rbp) andb $0x1, %al movb %al, -0x19(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) movss -0x8(%rbp), %xmm0 movss -0x4(%rbp), %xmm1 movss -0x10(%rbp), %xmm2 movss -0xc(%rbp), %xmm3 leaq -0...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::PopClipRect()
void ImDrawList::PopClipRect() { _ClipRectStack.pop_back(); _CmdHeader.ClipRect = (_ClipRectStack.Size == 0) ? _Data->ClipRectFullscreen : _ClipRectStack.Data[_ClipRectStack.Size - 1]; _OnChangedClipRect(); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) addq $0x58, %rdi callq 0x9c4d0 movq -0x10(%rbp), %rax cmpl $0x0, 0x58(%rax) jne 0x83e49 movq -0x10(%rbp), %rax movq 0x38(%rax), %rax addq $0x1c, %rax movq %rax, -0x18(%rbp) jmp 0x83e65 movq -0x10(%rbp), %rcx m...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::PrimReserve(int, int)
void ImDrawList::PrimReserve(int idx_count, int vtx_count) { // Large mesh support (when enabled) IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); if (sizeof(ImDrawIdx) == 2 && (_VtxCurrentIdx + vtx_count >= (1 << 16)) && (Flags & ImDrawListFlags_AllowVtxOffset)) { // FIXME: In theory we sh...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movl 0x34(%rax), %eax addl -0x10(%rbp), %eax cmpl $0x10000, %eax # imm = 0x10000 jb 0x83f88 movq -0x28(%rbp), %rax movl 0x30(%rax), %eax andl $0x8, %eax cm...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddPolyline(ImVec2 const*, int, unsigned int, int, float)
void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 col, ImDrawFlags flags, float thickness) { if (points_count < 2) return; const bool closed = (flags & ImDrawFlags_Closed) != 0; const ImVec2 opaque_uv = _Data->TexUvWhitePixel; const int count = closed ? points_cou...
pushq %rbp movq %rsp, %rbp subq $0x2b0, %rsp # imm = 0x2B0 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl %ecx, -0x18(%rbp) movl %r8d, -0x1c(%rbp) movss %xmm0, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x210(%rbp) cmpl $0x2, -0x14(%rbp) jge 0x84558 jmp 0x85ddb movq -0x210(%rbp),...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddConvexPolyFilled(ImVec2 const*, int, unsigned int)
void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_count, ImU32 col) { if (points_count < 3) return; const ImVec2 uv = _Data->TexUvWhitePixel; if (Flags & ImDrawListFlags_AntiAliasedFill) { // Anti-aliased Fill const float AA_SIZE = _FringeScale; ...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl %ecx, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xb0(%rbp) cmpl $0x3, -0x14(%rbp) jge 0x85f2f jmp 0x8654c movq -0xb0(%rbp), %rax movq 0x38(%rax), %rcx movq (%rcx), %rcx movq %rcx, -0x20(%rbp) movl 0x...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::_PathArcToN(ImVec2 const&, float, float, float, int)
void ImDrawList::_PathArcToN(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) { if (radius <= 0.0f) { _Path.push_back(center); return; } // Note that we are adding a point at both a_min and a_max. // If you are trying to draw a full closed circle you d...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movss %xmm1, -0x18(%rbp) movss %xmm2, -0x1c(%rbp) movl %edx, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x38(%rbp) xorps %xmm0, %xmm0 ucomiss -0x14(%rbp), %xmm0 jb 0x86929 movq -0x38(%rbp), %rdi addq $0x...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::PathArcTo(ImVec2 const&, float, float, float, int)
void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) { if (radius <= 0.0f) { _Path.push_back(center); return; } if (num_segments > 0) { _PathArcToN(center, radius, a_min, a_max, num_segments); return; } /...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movss %xmm1, -0x18(%rbp) movss %xmm2, -0x1c(%rbp) movl %edx, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x68(%rbp) xorps %xmm0, %xmm0 ucomiss -0x14(%rbp), %xmm0 jb 0x86aec movq -0x68(%rbp), %rdi addq $0x...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImBezierCubicCalc(ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, float)
ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t) { float u = 1.0f - t; float w1 = u * u * u; float w2 = 3 * u * u * t; float w3 = 3 * u * t * t; float w4 = t * t * t; return ImVec2(w1 * p1.x + w2 * p2.x + w3 * p3.x + w4 * p4.x, w1 * p1.y +...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movss %xmm0, -0x2c(%rbp) movss -0x2c(%rbp), %xmm1 movss 0x1d321a(%rip), %xmm0 # 0x25a1c4 subss %xmm1, %xmm0 movss %xmm0, -0x30(%rbp) movss -0x30(%rbp), %xmm1 movaps %xmm1, %xmm0 muls...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::PathBezierQuadraticCurveTo(ImVec2 const&, ImVec2 const&, int)
void ImDrawList::PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments) { ImVec2 p1 = _Path.back(); if (num_segments == 0) { PathBezierQuadraticCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, _Data->CurveTessellationTol, 0);// Auto-tessellated } else ...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x40(%rbp) addq $0x78, %rdi callq 0x9c670 movq (%rax), %rax movq %rax, -0x24(%rbp) cmpl $0x0, -0x1c(%rbp) jne 0x876ee movq -0x40(%rbp), %rax movq %rax,...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
PathBezierQuadraticCurveToCasteljau(ImVector<ImVec2>*, float, float, float, float, float, float, float, int)
static void PathBezierQuadraticCurveToCasteljau(ImVector<ImVec2>* path, float x1, float y1, float x2, float y2, float x3, float y3, float tess_tol, int level) { float dx = x3 - x1, dy = y3 - y1; float det = (x2 - x3) * dy - (y2 - y3) * dx; if (det * det * 4.0f < tess_tol * (dx * dx + dy * dy)) { ...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movss %xmm1, -0x10(%rbp) movss %xmm2, -0x14(%rbp) movss %xmm3, -0x18(%rbp) movss %xmm4, -0x1c(%rbp) movss %xmm5, -0x20(%rbp) movss %xmm6, -0x24(%rbp) movl %esi, -0x28(%rbp) movss -0x1c(%rbp), %xmm0 subss -0xc(%rbp), %xmm0 movss %x...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::PathRect(ImVec2 const&, ImVec2 const&, float, int)
void ImDrawList::PathRect(const ImVec2& a, const ImVec2& b, float rounding, ImDrawFlags flags) { flags = FixRectCornerFlags(flags); rounding = ImMin(rounding, ImFabs(b.x - a.x) * ( ((flags & ImDrawFlags_RoundCornersTop) == ImDrawFlags_RoundCornersTop) || ((flags & ImDrawFlags_RoundCornersBottom) == ImDrawFlag...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movss %xmm0, -0x1c(%rbp) movl %ecx, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x78(%rbp) movl -0x20(%rbp), %edi callq 0x87d80 movl %eax, -0x20(%rbp) movss -0x1c(%rbp), %xmm0 movss %xmm0, -0x6c(%rbp) movq ...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
FixRectCornerFlags(int)
static inline ImDrawFlags FixRectCornerFlags(ImDrawFlags flags) { #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS // Legacy Support for hard coded ~0 (used to be a suggested equivalent to ImDrawCornerFlags_All) // ~0 --> ImDrawFlags_RoundCornersAll or 0 if (flags == ~0) return ImDrawFlags_RoundCornersA...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl %edi, -0x8(%rbp) cmpl $-0x1, -0x8(%rbp) jne 0x87d9a movl $0xf0, -0x4(%rbp) jmp 0x87e10 cmpl $0x1, -0x8(%rbp) jl 0x87db1 cmpl $0xf, -0x8(%rbp) jg 0x87db1 movl -0x8(%rbp), %eax shll $0x4, %eax movl %eax, -0x4(%rbp) jmp 0x87e10 movl -0x8(%rbp), %ecx andl $0xf, %ecx xorl %ea...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddRect(ImVec2 const&, ImVec2 const&, unsigned int, float, int, float)
void ImDrawList::AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags, float thickness) { if ((col & IM_COL32_A_MASK) == 0) return; if (Flags & ImDrawListFlags_AntiAliasedLines) PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.50f, 0.50f), roundin...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movss %xmm0, -0x20(%rbp) movl %r8d, -0x24(%rbp) movss %xmm1, -0x28(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x70(%rbp) movl -0x1c(%rbp), %eax andl $0xff000000, %eax # imm = 0xFF000...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddRectFilled(ImVec2 const&, ImVec2 const&, unsigned int, float, int)
void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags) { if ((col & IM_COL32_A_MASK) == 0) return; if (rounding <= 0.0f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) { PrimReserve(6, 4); Pri...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movss %xmm0, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) movl -0x1c(%rbp), %eax andl $0xff000000, %eax # imm = 0xFF000000 cmpl $0x0, %eax jne 0...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddRectFilledMultiColor(ImVec2 const&, ImVec2 const&, unsigned int, unsigned int, unsigned int, unsigned int)
void ImDrawList::AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left) { if (((col_upr_left | col_upr_right | col_bot_right | col_bot_left) & IM_COL32_A_MASK) == 0) return; const ImVec2 uv = _Data->TexUvWhiteP...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movl 0x10(%rbp), %eax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movl %r8d, -0x20(%rbp) movl %r9d, -0x24(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x48(%rbp) movl -0x1c(%rbp), %eax orl -0x20(%rbp), %eax orl -0x24(%rbp), %eax orl 0...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddQuad(ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, unsigned int, float)
void ImDrawList::AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness) { if ((col & IM_COL32_A_MASK) == 0) return; PathLineTo(p1); PathLineTo(p2); PathLineTo(p3); PathLineTo(p4); PathStroke(col, ImDrawFlags_Closed, thickness); }
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movl %r9d, -0x2c(%rbp) movss %xmm0, -0x30(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x38(%rbp) movl -0x2c(%rbp), %eax andl $0xff000000, %eax # imm = 0xFF000000...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddQuadFilled(ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, unsigned int)
void ImDrawList::AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col) { if ((col & IM_COL32_A_MASK) == 0) return; PathLineTo(p1); PathLineTo(p2); PathLineTo(p3); PathLineTo(p4); PathFillConvex(col); }
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movl %r9d, -0x2c(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x38(%rbp) movl -0x2c(%rbp), %eax andl $0xff000000, %eax # imm = 0xFF000000 cmpl $0x0, %eax jne 0x88...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddTriangleFilled(ImVec2 const&, ImVec2 const&, ImVec2 const&, unsigned int)
void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col) { if ((col & IM_COL32_A_MASK) == 0) return; PathLineTo(p1); PathLineTo(p2); PathLineTo(p3); PathFillConvex(col); }
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) movl -0x24(%rbp), %eax andl $0xff000000, %eax # imm = 0xFF000000 cmpl $0x0, %eax jne 0x88463 jmp 0x88496 movq -...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddCircle(ImVec2 const&, float, unsigned int, int, float)
void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) { if ((col & IM_COL32_A_MASK) == 0 || radius <= 0.0f) return; // Obtain segment count if (num_segments <= 0) { // Automatic segment count num_segments = _CalcCircleAutoSe...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movss %xmm1, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) movl -0x18(%rbp), %eax andl $0xff000000, %eax # imm = 0xFF000000 cmpl $0x0, %eax je ...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddCircleFilled(ImVec2 const&, float, unsigned int, int)
void ImDrawList::AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) { if ((col & IM_COL32_A_MASK) == 0 || radius <= 0.0f) return; // Obtain segment count if (num_segments <= 0) { // Automatic segment count num_segments = _CalcCircleAutoSegmentCount(...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movl -0x18(%rbp), %eax andl $0xff000000, %eax # imm = 0xFF000000 cmpl $0x0, %eax je 0x885f9 xorps %xmm0, %xmm...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddNgon(ImVec2 const&, float, unsigned int, int, float)
void ImDrawList::AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) { if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) return; // Because we are filling a closed shape we remove 1 from the count of segments/points const float a_max = (IM_PI * 2.0f) * ((f...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movss %xmm1, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) movl -0x18(%rbp), %eax andl $0xff000000, %eax # imm = 0xFF000000 cmpl $0x0, %eax je ...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddNgonFilled(ImVec2 const&, float, unsigned int, int)
void ImDrawList::AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) { if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) return; // Because we are filling a closed shape we remove 1 from the count of segments/points const float a_max = (IM_PI * 2.0f) * ((float)num_se...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movl -0x18(%rbp), %eax andl $0xff000000, %eax # imm = 0xFF000000 cmpl $0x0, %eax je 0x88796 cmpl $0x2, -0x1c(...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddText(ImFont const*, float, ImVec2 const&, unsigned int, char const*, char const*, float, ImVec4 const*)
void ImDrawList::AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect) { if ((col & IM_COL32_A_MASK) == 0) return; if (text_end == NULL) text_end = text_begin + strlen(text_beg...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movss %xmm1, -0x3c(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x60(%rbp) movl -0x24(%rbp), %eax a...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFont::RenderText(ImDrawList*, float, ImVec2, unsigned int, ImVec4 const&, char const*, char const*, float, bool) const
void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const { if (!text_end) text_end = text_begin + strlen(text_begin); // ImGui:: functions generally already provides a ...
pushq %rbp movq %rsp, %rbp subq $0x110, %rsp # imm = 0x110 movb 0x10(%rbp), %al movlpd %xmm1, -0x8(%rbp) movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movss %xmm0, -0x1c(%rbp) movl %edx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movss %xmm2, -0x3c(%rbp) andb $0x1, %al mov...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddImage(void*, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, unsigned int)
void ImDrawList::AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col) { if ((col & IM_COL32_A_MASK) == 0) return; const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; if (push_texture_id) Push...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl 0x10(%rbp), %eax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x40(%rbp) movl 0x10(%rbp), %eax andl $0xff000000, %eax # imm = 0xFF000000 cmpl...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddImageQuad(void*, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, unsigned int)
void ImDrawList::AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1, const ImVec2& uv2, const ImVec2& uv3, const ImVec2& uv4, ImU32 col) { if ((col & IM_COL32_A_MASK) == 0) return; const bool push_texture_id = user_texture...
pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x68, %rsp movl 0x30(%rbp), %eax movq 0x28(%rbp), %rax movq 0x20(%rbp), %rax movq 0x18(%rbp), %rax movq 0x10(%rbp), %rax movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x10(%rbp), %...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawList::AddImageRounded(void*, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, unsigned int, float, int)
void ImDrawList::AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags) { if ((col & IM_COL32_A_MASK) == 0) return; flags = FixRectCornerFlags(flags); if (rounding <= 0.0f || (f...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movl 0x18(%rbp), %eax movl 0x10(%rbp), %eax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movss %xmm0, -0x34(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x48(%rbp) movl 0x10(%rbp), %eax andl ...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImGui::ShadeVertsLinearUV(ImDrawList*, int, int, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, bool)
void ImGui::ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp) { const ImVec2 size = b - a; const ImVec2 uv_size = uv_b - uv_a; const ImVec2 scale = ImVec2( size.x != 0.0f ? (uv_size.x ...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movb 0x18(%rbp), %al movq 0x10(%rbp), %r10 movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq %rcx, -0x18(%rbp) movq %r8, -0x20(%rbp) movq %r9, -0x28(%rbp) andb $0x1, %al movb %al, -0x29(%rbp) movq -0x20(%rbp), %rdi movq -0x18(%r...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawListSplitter::SetCurrentChannel(ImDrawList*, int)
void ImDrawListSplitter::SetCurrentChannel(ImDrawList* draw_list, int idx) { IM_ASSERT(idx >= 0 && idx < _Count); if (_Current == idx) return; // Overwrite ImVector (12/16 bytes), four times. This is merely a silly optimization instead of doing .swap() memcpy(&_Channels.Data[_Current]._CmdBuffe...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) xorl %eax, %eax cmpl $0x0, -0x14(%rbp) movb %al, -0x21(%rbp) jl 0x8a1e6 movq -0x30(%rbp), %rcx movl -0x14(%rbp), %eax cmpl 0x4(%rcx), %eax setl %al movb %al, -0x21...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawData::DeIndexAllBuffers()
void ImDrawData::DeIndexAllBuffers() { ImVector<ImDrawVert> new_vtx_buffer; TotalVtxCount = TotalIdxCount = 0; for (int i = 0; i < CmdListsCount; i++) { ImDrawList* cmd_list = CmdLists[i]; if (cmd_list->IdxBuffer.empty()) continue; new_vtx_buffer.resize(cmd_list->IdxB...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x40(%rbp) leaq -0x18(%rbp), %rdi callq 0x7d660 movq -0x40(%rbp), %rax movl $0x0, 0x8(%rax) movl $0x0, 0xc(%rax) movl $0x0, -0x1c(%rbp) movq -0x40(%rbp), %rcx movl -0x1c(%rbp), %eax cmpl 0x4(%rcx), %eax jge 0x8a4fc movq ...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImDrawData::ScaleClipRects(ImVec2 const&)
void ImDrawData::ScaleClipRects(const ImVec2& fb_scale) { for (int i = 0; i < CmdListsCount; i++) { ImDrawList* cmd_list = CmdLists[i]; for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) { ImDrawCmd* cmd = &cmd_list->CmdBuffer[cmd_i]; cmd->ClipRect = I...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x48(%rbp) movl $0x0, -0x14(%rbp) movq -0x48(%rbp), %rcx movl -0x14(%rbp), %eax cmpl 0x4(%rcx), %eax jge 0x8a604 movq -0x48(%rbp), %rax movq 0x10(%rax), %rax movslq -0x14(%rbp), %rcx movq (%rax,%rc...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontConfig::ImFontConfig()
ImFontConfig::ImFontConfig() { memset(this, 0, sizeof(*this)); FontDataOwnedByAtlas = true; OversampleH = 3; // FIXME: 2 may be a better default? OversampleV = 1; GlyphMaxAdvanceX = FLT_MAX; RasterizerMultiply = 1.0f; EllipsisChar = (ImWchar)-1; }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) addq $0x24, %rdi callq 0x78060 movq -0x10(%rbp), %rdi addq $0x2c, %rdi callq 0x78060 movq -0x10(%rbp), %rdi xorl %esi, %esi movl $0x88, %edx callq 0x11370 movq -0x10(%rbp), %rax movb $0x1, 0xc(%rax) movl $0x3,...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::ImFontAtlas()
ImFontAtlas::ImFontAtlas() { memset(this, 0, sizeof(*this)); TexGlyphPadding = 1; PackIdMouseCursors = PackIdLines = -1; }
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x28(%rbp) addq $0x38, %rdi callq 0x78060 movq -0x28(%rbp), %rdi addq $0x40, %rdi callq 0x78060 movq -0x28(%rbp), %rdi addq $0x48, %rdi movq %rdi, -0x30(%rbp) callq 0x7db10 movq -0x28(%rbp), %rdi addq $0x58, %rdi movq %r...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::ClearInputData()
void ImFontAtlas::ClearInputData() { IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); for (int i = 0; i < ConfigData.Size; i++) if (ConfigData[i].FontData && ConfigData[i].FontDataOwnedByAtlas) { IM_FREE(ConfigData[i].FontData);...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rcx movq %rcx, -0x20(%rbp) xorl %eax, %eax testb $0x1, 0x18(%rcx) movb %al, -0x11(%rbp) jne 0x8ade6 movb $0x1, %al movb %al, -0x11(%rbp) jmp 0x8ade6 movb -0x11(%rbp), %al testb $0x1, %al jne 0x8adef jmp 0x8adf1 jmp 0x8ae10 leaq 0x2025f2...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::ClearFonts()
void ImFontAtlas::ClearFonts() { IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); for (int i = 0; i < Fonts.Size; i++) IM_DELETE(Fonts[i]); Fonts.clear(); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rcx movq %rcx, -0x18(%rbp) xorl %eax, %eax testb $0x1, 0x18(%rcx) movb %al, -0xd(%rbp) jne 0x8b046 movb $0x1, %al movb %al, -0xd(%rbp) jmp 0x8b046 movb -0xd(%rbp), %al testb $0x1, %al jne 0x8b04f jmp 0x8b051 jmp 0x8b070 leaq 0x202392(%r...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::GetTexDataAsAlpha8(unsigned char**, int*, int*, int*)
void ImFontAtlas::GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) { // Build atlas on demand if (TexPixelsAlpha8 == NULL) { if (ConfigData.empty()) AddFontDefault(); Build(); } *out_pixels = TexPixelsAlpha8; ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) cmpq $0x0, 0x20(%rax) jne 0x8b114 movq -0x30(%rbp), %rdi addq $0x68, %rdi callq 0x9cdb0 testb $0x1, %al jne 0x8b0fe jm...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::AddFontDefault(ImFontConfig const*)
ImFont* ImFontAtlas::AddFontDefault(const ImFontConfig* font_cfg_template) { ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); if (!font_cfg_template) { font_cfg.OversampleH = font_cfg.OversampleV = 1; font_cfg.PixelSnapH = true; } if (font_cfg.SizePixe...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xb8(%rbp) cmpq $0x0, -0x10(%rbp) je 0x8b1ac movq -0x10(%rbp), %rsi leaq -0x98(%rbp), %rdi movl $0x88, %edx callq 0x11500 jmp 0x8b1b8 leaq -0x98(%rbp), %rdi callq 0x8ab50 cmpq $0x0, -0x10(%rbp) jne...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::Build()
bool ImFontAtlas::Build() { IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); // Select builder // - Note that we do not reassign to atlas->FontBuilderIO, since it is likely to point to static data which // may mess with some hot-reloading scheme...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rcx movq %rcx, -0x20(%rbp) xorl %eax, %eax testb $0x1, 0x18(%rcx) movb %al, -0x11(%rbp) jne 0x8b2f6 movb $0x1, %al movb %al, -0x11(%rbp) jmp 0x8b2f6 movb -0x11(%rbp), %al testb $0x1, %al jne 0x8b2ff jmp 0x8b301 jmp 0x8b320 leaq 0x2020e2...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::GetTexDataAsRGBA32(unsigned char**, int*, int*, int*)
void ImFontAtlas::GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) { // Convert to RGBA32 format on demand // Although it is likely to be the most commonly used format, our font rendering is 1 channel / 8 bpp if (!TexPixelsRGBA32) { uns...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x50(%rbp) cmpq $0x0, 0x28(%rax) jne 0x8b442 movq -0x50(%rbp), %rdi movq $0x0, -0x30(%rbp) leaq -0x30(%rbp), %rsi xorl %eax, %eax...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::AddFont(ImFontConfig const*)
ImFont* ImFontAtlas::AddFont(const ImFontConfig* font_cfg) { IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); IM_ASSERT(font_cfg->FontData != NULL && font_cfg->FontDataSize > 0); IM_ASSERT(font_cfg->SizePixels > 0.0f); // Create new font if (!fon...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rcx movq %rcx, -0x48(%rbp) xorl %eax, %eax testb $0x1, 0x18(%rcx) movb %al, -0x39(%rbp) jne 0x8b4bd movb $0x1, %al movb %al, -0x39(%rbp) jmp 0x8b4bd movb -0x39(%rbp), %al testb $0x1, %al jne 0x8b4c6 jmp 0x8b4c8 jm...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::AddFontFromMemoryCompressedBase85TTF(char const*, float, ImFontConfig const*, unsigned short const*)
ImFont* ImFontAtlas::AddFontFromMemoryCompressedBase85TTF(const char* compressed_ttf_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges) { int compressed_ttf_size = (((int)strlen(compressed_ttf_data_base85) + 4) / 5) * 4; void* compressed_ttf = IM_ALLOC((size_t)compressed_...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x10(%rbp), %rdi callq 0x112c0 addl $0x4, %eax movl $0x5, %ecx cltd idivl %ecx shll $0x2, %eax movl %eax, -0x...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::AddFontFromFileTTF(char const*, float, ImFontConfig const*, unsigned short const*)
ImFont* ImFontAtlas::AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) { IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); size_t data_size = 0; void* data = ImFileLoadToMemory(f...
pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x8(%rbp), %rcx movq %rcx, -0xd8(%rbp) xorl %eax, %eax testb $0x1, 0x18(%rcx) movb %al, -0xc9(%rbp) jne 0x8b813 movb $0x1, %al movb %al, -0xc9(%rbp) jmp 0...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::AddFontFromMemoryCompressedTTF(void const*, int, float, ImFontConfig const*, unsigned short const*)
ImFont* ImFontAtlas::AddFontFromMemoryCompressedTTF(const void* compressed_ttf_data, int compressed_ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) { const unsigned int buf_decompressed_size = stb_decompress_length((const unsigned char*)compressed_ttf_data); unsi...
pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movss %xmm0, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xc8(%rbp) movq -0x10(%rbp), %rdi callq 0x8bbb0 movl %eax, -0x2c(%rbp) movl -0x2c(%rbp), %eax movl %eax,...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
Decode85(unsigned char const*, unsigned char*)
static void Decode85(const unsigned char* src, unsigned char* dst) { while (*src) { unsigned int tmp = Decode85Byte(src[0]) + 85 * (Decode85Byte(src[1]) + 85 * (Decode85Byte(src[2]) + 85 * (Decode85Byte(src[3]) + 85 * Decode85Byte(src[4])))); dst[0] = ((tmp >> 0) & 0xFF); dst[1] = ((tmp ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax cmpb $0x0, (%rax) je 0x8bf4a movq -0x8(%rbp), %rax movsbl (%rax), %edi callq 0x924c0 movl %eax, -0x18(%rbp) movq -0x8(%rbp), %rax movsbl 0x1(%rax), %edi callq 0x924c0 movl %eax, -0x1c(%rbp) movq -0x8(%rbp), %r...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::AddCustomRectRegular(int, int)
int ImFontAtlas::AddCustomRectRegular(int width, int height) { IM_ASSERT(width > 0 && width <= 0xFFFF); IM_ASSERT(height > 0 && height <= 0xFFFF); ImFontAtlasCustomRect r; r.Width = (unsigned short)width; r.Height = (unsigned short)height; CustomRects.push_back(r); return CustomRects.Size - ...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x40(%rbp) xorl %eax, %eax cmpl $0x0, -0xc(%rbp) movb %al, -0x31(%rbp) jle 0x8bf82 cmpl $0xffff, -0xc(%rbp) # imm = 0xFFFF setle %al movb %al, -0x31(%rbp) movb -0x31(%rbp)...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlasBuildWithStbTruetype(ImFontAtlas*)
static bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) { IM_ASSERT(atlas->ConfigData.Size > 0); ImFontAtlasBuildInit(atlas); // Clear atlas atlas->TexID = (ImTextureID)NULL; atlas->TexWidth = atlas->TexHeight = 0; atlas->TexUvScale = ImVec2(0.0f, 0.0f); atlas->TexUvWhitePixel = Im...
pushq %rbp movq %rsp, %rbp subq $0x4a0, %rsp # imm = 0x4A0 movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x68(%rax) jle 0x8c65b jmp 0x8c67a leaq 0x20180b(%rip), %rdi # 0x28de6d leaq 0x200935(%rip), %rsi # 0x28cf9e movl $0x918, %edx # imm = 0x918 leaq 0x201813(%rip), %rcx # 0x28...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlasBuildSetupFont(ImFontAtlas*, ImFont*, ImFontConfig*, float, float)
void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent) { if (!font_config->MergeMode) { font->ClearOutputData(); font->FontSize = font_config->SizePixels; font->ConfigData = font_config; font->ConfigDataCount = 0; ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movss %xmm0, -0x1c(%rbp) movss %xmm1, -0x20(%rbp) movq -0x18(%rbp), %rax testb $0x1, 0x48(%rax) jne 0x8de41 movq -0x10(%rbp), %rdi callq 0x8de60 movq -0x18(%rbp), %rax movss 0x14(%rax), %xmm0 movq -0x10(%rbp)...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlasBuildPackCustomRects(ImFontAtlas*, void*)
void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque) { stbrp_context* pack_context = (stbrp_context*)stbrp_context_opaque; IM_ASSERT(pack_context != NULL); ImVector<ImFontAtlasCustomRect>& user_rects = atlas->CustomRects; IM_ASSERT(user_rects.Size >= 1); // We expect at ...
pushq %rbp movq %rsp, %rbp subq $0x130, %rsp # imm = 0x130 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x8df04 jmp 0x8df23 leaq 0x1ffa3b(%rip), %rdi # 0x28d946 leaq 0x1ff08c(%rip), %rsi # 0x28cf9e movl $0xa2e, %edx # im...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
stbrp_pack_rects(stbrp_context*, stbrp_rect*, int)
STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects) { int i, all_rects_packed = 1; // we use the 'was_packed' field internally to allow sorting/unsorting for (i=0; i < num_rects; ++i) { rects[i].was_packed = i; } // sort according to heuristic STBRP_SORT(re...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl $0x1, -0x1c(%rbp) movl $0x0, -0x18(%rbp) movl -0x18(%rbp), %eax cmpl -0x14(%rbp), %eax jge 0x8e339 movl -0x18(%rbp), %ecx movq -0x10(%rbp), %rax movslq -0x18(%rbp), %rdx shlq $0x4, %rdx addq %rdx, %rax m...
/tuket[P]gltf_viewer/libs/imgui/imstb_rectpack.h
ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas*, int, int, int, int, char const*, char, unsigned char)
void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value) { IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); unsigned char* out_pixel = atlas->TexPi...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movb 0x18(%rbp), %al movb 0x10(%rbp), %al movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movl %r8d, -0x18(%rbp) movq %r9, -0x20(%rbp) xorl %eax, %eax cmpl $0x0, -0xc(%rbp) movb %al, -0x31(%rbp) jl 0x8e571 movl -0xc(%rbp), %eax addl -...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas*, int, int, int, int, char const*, char, unsigned int)
void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value) { IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); unsigned int* out_pixel = atlas->TexPix...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl 0x18(%rbp), %eax movb 0x10(%rbp), %al movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movl %r8d, -0x18(%rbp) movq %r9, -0x20(%rbp) xorl %eax, %eax cmpl $0x0, -0xc(%rbp) movb %al, -0x31(%rbp) jl 0x8e6f1 movl -0xc(%rbp), %eax addl ...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlasBuildFinish(ImFontAtlas*)
void ImFontAtlasBuildFinish(ImFontAtlas* atlas) { // Render into our custom data blocks IM_ASSERT(atlas->TexPixelsAlpha8 != NULL || atlas->TexPixelsRGBA32 != NULL); ImFontAtlasBuildRenderDefaultTexData(atlas); ImFontAtlasBuildRenderLinesTexData(atlas); // Register custom rectangle glyphs for (i...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rcx movb $0x1, %al cmpq $0x0, 0x20(%rcx) movb %al, -0x41(%rbp) jne 0x8e90b movq -0x8(%rbp), %rax cmpq $0x0, 0x28(%rax) setne %al movb %al, -0x41(%rbp) movb -0x41(%rbp), %al testb $0x1, %al jne 0x8e914 jmp 0x8e916 jmp 0x8e935 leaq 0x1ff2...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlasBuildRenderDefaultTexData(ImFontAtlas*)
static void ImFontAtlasBuildRenderDefaultTexData(ImFontAtlas* atlas) { ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdMouseCursors); IM_ASSERT(r->IsPacked()); const int w = atlas->TexWidth; if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) { // Render/copy pixels ...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x484(%rax), %esi callq 0x9cfb0 movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0x9cf90 testb $0x1, %al jne 0x8ebb2 jmp 0x8ebb4 jmp 0x8ebd3 leaq 0x1ffe47(%rip), %rdi # 0x28ea02 leaq 0x1fe3dc(%rip), ...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlasBuildRenderLinesTexData(ImFontAtlas*)
static void ImFontAtlasBuildRenderLinesTexData(ImFontAtlas* atlas) { if (atlas->Flags & ImFontAtlasFlags_NoBakedLines) return; // This generates a triangular shape in the texture, with the various line widths stacked on top of each other to allow interpolation between them ImFontAtlasCustomRect* r ...
pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movl (%rax), %eax andl $0x4, %eax cmpl $0x0, %eax je 0x8eef2 jmp 0x8f279 movq -0x8(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x488(%rax), %esi callq 0x9cfb0 movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0x9cf90 testb $0x1, %al jn...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFont::AddGlyph(ImFontConfig const*, unsigned short, float, float, float, float, float, float, float, float, float)
void ImFont::AddGlyph(const ImFontConfig* cfg, ImWchar codepoint, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x) { if (cfg != NULL) { // Clamp & recenter if needed const float advance_x_original = advance_x; advance_x = ImClamp(advance_x,...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movw %dx, %ax movss 0x10(%rbp), %xmm8 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movw %ax, -0x12(%rbp) movss %xmm0, -0x18(%rbp) movss %xmm1, -0x1c(%rbp) movss %xmm2, -0x20(%rbp) movss %xmm3, -0x24(%rbp) movss %xmm4, -0x28(%rbp) movss %xmm5, -0x2c(%rbp) movss %xmm6, -0x30(%r...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon()
const ImWchar* ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon() { // Store 2500 regularly used characters for Simplified Chinese. // Sourced from https://zh.wiktionary.org/wiki/%E9%99%84%E5%BD%95:%E7%8E%B0%E4%BB%A3%E6%B1%89%E8%AF%AD%E5%B8%B8%E7%94%A8%E5%AD%97%E8%A1%A8 // This table covers 97.97% of all...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) cmpw $0x0, 0x296a1c(%rip) # 0x3263a0 jne 0x8f9cf movq 0x263673(%rip), %rax # 0x2f3000 movq %rax, 0x296a0c(%rip) # 0x3263a0 movq 0x26366d(%rip), %rax # 0x2f3008 movq %rax, 0x296a06(%rip) # 0x3263a8 movl 0x263668(%rip), %eax # 0x2f3010 mo...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontAtlas::GetGlyphRangesCyrillic()
const ImWchar* ImFontAtlas::GetGlyphRangesCyrillic() { static const ImWchar ranges[] = { 0x0020, 0x00FF, // Basic Latin + Latin Supplement 0x0400, 0x052F, // Cyrillic + Cyrillic Supplement 0x2DE0, 0x2DFF, // Cyrillic Extended-A 0xA640, 0xA69F, // Cyrillic Extended-B 0, ...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) leaq 0x1f9a11(%rip), %rax # 0x2894e0 popq %rbp retq nopw %cs:(%rax,%rax)
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontGlyphRangesBuilder::AddText(char const*, char const*)
void ImFontGlyphRangesBuilder::AddText(const char* text, const char* text_end) { while (text_end ? (text < text_end) : *text) { unsigned int c = 0; int c_len = ImTextCharFromUtf8(&c, text, text_end); text += c_len; if (c_len == 0) break; AddChar((ImWchar)c); ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) cmpq $0x0, -0x18(%rbp) je 0x8fb58 movq -0x10(%rbp), %rax cmpq -0x18(%rbp), %rax setb %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x2c(%rbp) jmp 0x8fb62 movq -0...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFontGlyphRangesBuilder::AddRanges(unsigned short const*)
void ImFontGlyphRangesBuilder::AddRanges(const ImWchar* ranges) { for (; ranges[0]; ranges += 2) for (ImWchar c = ranges[0]; c <= ranges[1]; c++) AddChar(c); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax cmpw $0x0, (%rax) je 0x8fc28 movq -0x10(%rbp), %rax movw (%rax), %ax movw %ax, -0x12(%rbp) movzwl -0x12(%rbp), %eax movq -0x10(%rbp), %rcx movzwl 0x2(%rcx), %ecx c...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFont::ImFont()
ImFont::ImFont() { FontSize = 0.0f; FallbackAdvanceX = 0.0f; FallbackChar = (ImWchar)'?'; EllipsisChar = (ImWchar)-1; FallbackGlyph = NULL; ContainerAtlas = NULL; ConfigData = NULL; ConfigDataCount = 0; DirtyLookupTables = false; Scale = 1.0f; Ascent = Descent = 0.0f; Met...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x28(%rbp) movq %rdi, %rax movq %rax, -0x30(%rbp) callq 0x7d520 movq -0x28(%rbp), %rdi addq $0x18, %rdi movq %rdi, -0x20(%rbp) callq 0x78080 jmp 0x8fd33 movq -0x30(%rbp), %rdi addq $0x28, %rdi callq 0x9d280 jmp 0x8fd42 m...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFont::FindGlyph(unsigned short) const
const ImFontGlyph* ImFont::FindGlyph(ImWchar c) const { if (c >= (size_t)IndexLookup.Size) return FallbackGlyph; const ImWchar i = IndexLookup.Data[c]; if (i == (ImWchar)-1) return FallbackGlyph; return &Glyphs.Data[i]; }
pushq %rbp movq %rsp, %rbp movw %si, %ax movq %rdi, -0x10(%rbp) movw %ax, -0x12(%rbp) movq -0x10(%rbp), %rcx movq %rcx, -0x20(%rbp) movzwl -0x12(%rbp), %eax movslq 0x18(%rcx), %rcx cmpq %rcx, %rax jb 0x8ff12 movq -0x20(%rbp), %rax movq 0x38(%rax), %rax movq %rax, -0x8(%rbp) jmp 0x8ff56 movq -0x20(%rbp), %rax movq 0x20(...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFont::IsGlyphRangeUnused(unsigned int, unsigned int)
bool ImFont::IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last) { unsigned int page_begin = (c_begin / 4096); unsigned int page_last = (c_last / 4096); for (unsigned int page_n = page_begin; page_n <= page_last; page_n++) if ((page_n >> 3) < sizeof(Used4kPagesMap)) if (Used4kP...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movl -0x14(%rbp), %eax shrl $0xc, %eax movl %eax, -0x1c(%rbp) movl -0x18(%rbp), %eax shrl $0xc, %eax movl %eax, -0x20(%rbp) movl -0x1c(%rbp), %eax movl %eax, -0x24(%rbp) movl -0x...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFont::AddRemapChar(unsigned short, unsigned short, bool)
void ImFont::AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst) { IM_ASSERT(IndexLookup.Size > 0); // Currently this can only be called AFTER the font has been built, aka after calling ImFontAtlas::GetTexDataAs*() function. unsigned int index_size = (unsigned int)IndexLookup.Size; if (dst < inde...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movb %cl, %al movw %dx, %cx movw %si, %dx movq %rdi, -0x8(%rbp) movw %dx, -0xa(%rbp) movw %cx, -0xc(%rbp) andb $0x1, %al movb %al, -0xd(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) cmpl $0x0, 0x18(%rax) jle 0x900d1 jmp 0x900f0 leaq 0x1fdb60(%rip), %rdi # 0x28dc38 lea...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFont::CalcWordWrapPositionA(float, char const*, char const*, float) const
const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const { // Simple word-wrapping for English, not full-featured. Please submit failing cases! // FIXME: Much possible improvements (don't cut things like "word !", "word!!!" but cut within "word,,,,",...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movss %xmm1, -0x24(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x70(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -0x28(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -0x2c(%rbp) xorps %xmm0, %xmm0 movss %...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFont::CalcTextSizeA(float, float, float, char const*, char const*, char const**) const
ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) const { if (!text_end) text_end = text_begin + strlen(text_begin); // FIXME-OPT: Need to avoid this. const float line_height = size; const float scale = ...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movss %xmm1, -0x18(%rbp) movss %xmm2, -0x1c(%rbp) movq %rsi, -0x28(%rbp) movq %rdx, -0x30(%rbp) movq %rcx, -0x38(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x78(%rbp) cmpq $0x0, -0x30(%rbp) jne 0x90528 movq -0x28(%rbp), %rax movq ...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImFont::RenderChar(ImDrawList*, float, ImVec2, unsigned int, unsigned short) const
void ImFont::RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c) const { const ImFontGlyph* glyph = FindGlyph(c); if (!glyph || !glyph->Visible) return; if (glyph->Colored) col |= ~IM_COL32_A_MASK; float scale = (size >= 0.0f) ? (size / FontSize) : 1.0f; p...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movw %cx, %ax movlpd %xmm1, -0x8(%rbp) movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movss %xmm0, -0x1c(%rbp) movl %edx, -0x20(%rbp) movw %ax, -0x22(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x60(%rbp) movzwl -0x22(%rbp), %esi callq 0x8fee0 movq %rax, -0x30(%rbp) cmpq $0x0, -0...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImGui::RenderArrow(ImDrawList*, ImVec2, unsigned int, int, float)
void ImGui::RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale) { const float h = draw_list->_Data->FontSize * 1.00f; float r = h * 0.40f * scale; ImVec2 center = pos + ImVec2(h * 0.50f, h * 0.50f * scale); ImVec2 a, b, c; switch (dir) { case ImGuiDir_Up: ...
pushq %rbp movq %rsp, %rbp subq $0x130, %rsp # imm = 0x130 movlpd %xmm0, -0x8(%rbp) movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movss %xmm1, -0x1c(%rbp) movq -0x10(%rbp), %rax movq 0x38(%rax), %rax movss 0x10(%rax), %xmm0 movss %xmm0, -0x20(%rbp) movss -0x20(%rbp), %xmm0 movss 0x1c97...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImGui::RenderCheckMark(ImDrawList*, ImVec2, unsigned int, float)
void ImGui::RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz) { float thickness = ImMax(sz / 5.0f, 1.0f); sz -= thickness * 0.5f; pos += ImVec2(thickness * 0.25f, thickness * 0.25f); float third = sz / 3.0f; float bx = pos.x + third; float by = pos.y + sz - third * 0.5f; ...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movlpd %xmm0, -0x8(%rbp) movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movss %xmm1, -0x18(%rbp) movss -0x18(%rbp), %xmm0 movss 0x1c940e(%rip), %xmm1 # 0x25a1e4 divss %xmm1, %xmm0 movss 0x1c93e2(%rip), %xmm1 # 0x25a1c4 callq 0x83210 movss %xmm0, -0x1c(%rbp) movss -0x1c(%rb...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImGui::RenderMouseCursor(ImDrawList*, ImVec2, float, int, unsigned int, unsigned int, unsigned int)
void ImGui::RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) { if (mouse_cursor == ImGuiMouseCursor_None) return; IM_ASSERT(mouse_cursor > ImGuiMouseCursor_None && mouse_cursor < ImGuiMouseCursor_COUNT); ...
pushq %rbp movq %rsp, %rbp subq $0x1b0, %rsp # imm = 0x1B0 movlpd %xmm0, -0x8(%rbp) movq %rdi, -0x10(%rbp) movss %xmm1, -0x14(%rbp) movl %esi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movl %ecx, -0x20(%rbp) movl %r8d, -0x24(%rbp) cmpl $-0x1, -0x18(%rbp) jne 0x90fd1 jmp 0x91425 xorl %eax, %eax cmpl $-0x1, -0x18(%rb...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImGui::RenderArrowPointingAt(ImDrawList*, ImVec2, ImVec2, int, unsigned int)
void ImGui::RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col) { switch (direction) { case ImGuiDir_Left: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), pos, col); return; case...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movlpd %xmm0, -0x8(%rbp) movlpd %xmm1, -0x10(%rbp) movq %rdi, -0x18(%rbp) movl %esi, -0x1c(%rbp) movl %edx, -0x20(%rbp) movl -0x1c(%rbp), %eax incl %eax movl %eax, %ecx movq %rcx, -0x68(%rbp) subl $0x5, %eax ja 0x91649 movq -0x68(%rbp), %rax leaq 0x1f5412(%rip), %rcx # 0x2...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImGui::RenderRectFilledRangeH(ImDrawList*, ImRect const&, unsigned int, float, float, float)
void ImGui::RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding) { if (x_end_norm == x_start_norm) return; if (x_start_norm > x_end_norm) ImSwap(x_start_norm, x_end_norm); ImVec2 p0 = ImVec2(ImLerp(rect.Min.x, rec...
pushq %rbp movq %rsp, %rbp subq $0x110, %rsp # imm = 0x110 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movss %xmm0, -0x18(%rbp) movss %xmm1, -0x1c(%rbp) movss %xmm2, -0x20(%rbp) movss -0x1c(%rbp), %xmm0 ucomiss -0x18(%rbp), %xmm0 jne 0x91697 jp 0x91697 jmp 0x91ccb movss -0x18(%rbp), %...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
ImGui::RenderColorRectWithAlphaCheckerboard(ImDrawList*, ImVec2, ImVec2, unsigned int, float, ImVec2, float, int)
void ImGui::RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 col, float grid_step, ImVec2 grid_off, float rounding, ImDrawFlags flags) { if ((flags & ImDrawFlags_RoundCornersMask_) == 0) flags = ImDrawFlags_RoundCornersDefault_; if (((col & IM_COL32_A_MASK) >...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movlpd %xmm0, -0x8(%rbp) movlpd %xmm1, -0x10(%rbp) movlpd %xmm3, -0x18(%rbp) movq %rdi, -0x20(%rbp) movl %esi, -0x24(%rbp) movss %xmm2, -0x28(%rbp) movss %xmm4, -0x2c(%rbp) movl %edx, -0x30(%rbp) movl -0x30(%rbp), %eax andl $0x1f0, %eax # imm = 0x1F0 cmpl $0x0, %ea...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
stbtt_FindGlyphIndex(stbtt_fontinfo const*, int)
STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint) { stbtt_uint8 *data = info->data; stbtt_uint32 index_map = info->index_map; stbtt_uint16 format = ttUSHORT(data + index_map + 0); if (format == 0) { // apple byte encoding stbtt_int32 bytes = ttUSHORT(data + index_m...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movl 0x34(%rax), %eax movl %eax, -0x24(%rbp) movq -0x20(%rbp), %rdi movl -0x24(%rbp), %eax addq %rax, %rdi callq 0x94860 movw %ax, -0x26(%rb...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
UnpackBitVectorToFlatIndexList(ImBitVector const*, ImVector<int>*)
static void UnpackBitVectorToFlatIndexList(const ImBitVector* in, ImVector<int>* out) { IM_ASSERT(sizeof(in->Storage.Data[0]) == sizeof(int)); const ImU32* it_begin = in->Storage.begin(); const ImU32* it_end = in->Storage.end(); for (const ImU32* it = it_begin; it < it_end; it++) if (ImU32 entri...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi callq 0x9ded0 movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rdi callq 0x9def0 movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x92b49 movq -0x2...
/tuket[P]gltf_viewer/libs/imgui/imgui_draw.cpp
stbtt_GetGlyphBitmapBoxSubpixel(stbtt_fontinfo const*, int, float, float, float, float, int*, int*, int*, int*)
STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) { int x0=0,y0=0,x1,y1; // =0 suppresses compiler warning if (!stbtt_GetGlyphBox(font, glyph, &x0,&y0,&x1,&y1)) { // e.g. sp...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movss %xmm0, -0x10(%rbp) movss %xmm1, -0x14(%rbp) movss %xmm2, -0x18(%rbp) movss %xmm3, -0x1c(%rbp) movq %rdx, -0x28(%rbp) movq %rcx, -0x30(%rbp) movq %r8, -0x38(%rbp) movq %r9, -0x40(%rbp) movl $0x0, -0x44(%rbp) movl $0x0, -0x48(%r...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt_PackBegin(stbtt_pack_context*, unsigned char*, int, int, int, int, void*)
STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int pw, int ph, int stride_in_bytes, int padding, void *alloc_context) { stbrp_context *context = (stbrp_context *) STBTT_malloc(sizeof(*context) ,alloc_context); int num_nodes = pw - padding; stbrp_node *nod...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq 0x10(%rbp), %rax movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movl %ecx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movl %r9d, -0x28(%rbp) movl $0x48, %edi callq 0x528e0 movq %rax, -0x30(%rbp) movl -0x1c(%rbp), %eax subl -0x28(%rbp), %eax movl %eax, -0x34...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context*, stbtt_fontinfo const*, stbtt_pack_range*, int, stbrp_rect*)
STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) { int i,j,k, return_value = 1; // save current values int old_h_over = spc->h_oversample; int old_v_over = spc->v_oversample; k = 0; for...
pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movl $0x1, -0x38(%rbp) movq -0x8(%rbp), %rax movl 0x24(%rax), %eax movl %eax, -0x3c(%rbp) movq -0x8(%rbp), %rax movl 0x28(%rax), %eax movl %eax, -0x40(%rbp) movl $...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt_GetPackedQuad(stbtt_packedchar const*, int, int, int, float*, float*, stbtt_aligned_quad*, int)
STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer) { float ipw = 1.0f / pw, iph = 1.0f / ph; const stbtt_packedchar *b = chardata + char_index; if (align_to_integer) { float x = (floa...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl 0x18(%rbp), %eax movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movq %r8, -0x20(%rbp) movq %r9, -0x28(%rbp) cvtsi2ssl -0xc(%rbp), %xmm1 movss 0x1c6bf3(%rip), %xmm0 # 0x25a1c4 divss %xmm1, %xmm0 movss %xmm...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__isfont(unsigned char*)
static int stbtt__isfont(stbtt_uint8 *font) { // check the version number if (stbtt_tag4(font, '1',0,0,0)) return 1; // TrueType 1 if (stbtt_tag(font, "typ1")) return 1; // TrueType with type 1 font -- we don't support this! if (stbtt_tag(font, "OTTO")) return 1; // OpenType with CFF if (stbtt_tag4(...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movzbl (%rax), %eax cmpl $0x31, %eax jne 0x93907 movq -0x10(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0x0, %eax jne 0x93907 movq -0x10(%rbp), %rax movzbl 0x2(%rax), %eax cmpl $0x0, %eax jne 0x93907 movq -0x10(%rbp), %rax movzbl 0x3(%rax), %eax cmpl...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt_InitFont_internal(stbtt_fontinfo*, unsigned char*, int)
static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart) { stbtt_uint32 cmap, t; stbtt_int32 i,numTables; info->data = data; info->fontstart = fontstart; info->cff = stbtt__new_buf(NULL, 0); cmap = stbtt__find_table(data, fontstart, "cmap"); // required i...
pushq %rbp movq %rsp, %rbp subq $0x190, %rsp # imm = 0x190 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) movl -0x1c(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x10(%rax) xorl %eax, %eax movl %eax, %esi movq %rsi, %rd...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__new_buf(void const*, unsigned long)
static stbtt__buf stbtt__new_buf(const void *p, size_t size) { stbtt__buf r; STBTT_assert(size < 0x40000000); r.data = (stbtt_uint8*) p; r.size = (int) size; r.cursor = 0; return r; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) cmpq $0x40000000, -0x20(%rbp) # imm = 0x40000000 jae 0x9420c jmp 0x9422b leaq 0x1f9e5f(%rip), %rdi # 0x28e072 leaq 0x1f9e6a(%rip), %rsi # 0x28e084 movl $0x482, %edx # imm = 0x482 leaq 0x1f9ec5(%rip), %rcx # 0x2...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__find_table(unsigned char*, unsigned int, char const*)
static stbtt_uint32 stbtt__find_table(stbtt_uint8 *data, stbtt_uint32 fontstart, const char *tag) { stbtt_int32 num_tables = ttUSHORT(data+fontstart+4); stbtt_uint32 tabledir = fontstart + 12; stbtt_int32 i; for (i=0; i < num_tables; ++i) { stbtt_uint32 loc = tabledir + 16*i; if (stbtt_tag(data+...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rdi movl -0x14(%rbp), %eax addq %rax, %rdi addq $0x4, %rdi callq 0x94860 movzwl %ax, %eax movl %eax, -0x24(%rbp) movl -0x14(%rbp), %eax addl $0xc, %eax movl %eax, -0x28(%rbp) movl $0x0, -0...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__cff_index_get(stbtt__buf, int)
static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i) { int count, offsize, start, end; stbtt__buf_seek(&b, 0); count = stbtt__buf_get16(&b); offsize = stbtt__buf_get8(&b); STBTT_assert(i >= 0 && i < count); STBTT_assert(offsize >= 1 && offsize <= 4); stbtt__buf_skip(&b, i*offsize); start ...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x20(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x24(%rbp) leaq -0x20(%rbp), %rdi xorl %esi, %esi callq 0x94370 leaq -0x20(%rbp), %rdi movl $0x2, %esi callq 0x94880 movl %eax, -0x28(%rbp) leaq -0x20(%rbp), %rdi callq 0x94400 movzbl %al, %eax movl %eax, -0x2c(%rbp) x...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__get_subrs(stbtt__buf, stbtt__buf)
static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict) { stbtt_uint32 subrsoff = 0, private_loc[2] = { 0, 0 }; stbtt__buf pdict; stbtt__dict_get_ints(&fontdict, 18, 2, private_loc); if (!private_loc[1] || !private_loc[0]) return stbtt__new_buf(NULL, 0); pdict = stbtt__buf_range(&cff, pri...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x20(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x30(%rbp) movq %rcx, -0x28(%rbp) movl $0x0, -0x34(%rbp) leaq -0x3c(%rbp), %rdi xorl %esi, %esi movl $0x8, %edx callq 0x11370 leaq -0x3c(%rbp), %rcx leaq -0x30(%rbp), %rdi movl $0x12, %esi movl $0x2, %edx callq 0x94670...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__buf_get(stbtt__buf*, int)
static stbtt_uint32 stbtt__buf_get(stbtt__buf *b, int n) { stbtt_uint32 v = 0; int i; STBTT_assert(n >= 1 && n <= 4); for (i = 0; i < n; i++) v = (v << 8) | stbtt__buf_get8(b); return v; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl $0x0, -0x10(%rbp) xorl %eax, %eax cmpl $0x1, -0xc(%rbp) movb %al, -0x15(%rbp) jl 0x948ab cmpl $0x4, -0xc(%rbp) setle %al movb %al, -0x15(%rbp) movb -0x15(%rbp), %al testb $0x1, %al jne 0x948b4 jmp 0x948b6 jmp 0x948d5 leaq 0x1f9...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__dict_get(stbtt__buf*, int)
static stbtt__buf stbtt__dict_get(stbtt__buf *b, int key) { stbtt__buf_seek(b, 0); while (b->cursor < b->size) { int start = b->cursor, end, op; while (stbtt__buf_peek8(b) >= 28) stbtt__cff_skip_operand(b); end = b->cursor; op = stbtt__buf_get8(b); if (op == 12) op = stbtt_...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x18(%rbp) movl %esi, -0x1c(%rbp) movq -0x18(%rbp), %rdi xorl %esi, %esi callq 0x94370 movq -0x18(%rbp), %rax movl 0x8(%rax), %eax movq -0x18(%rbp), %rcx cmpl 0xc(%rcx), %eax jge 0x949d0 movq -0x18(%rbp), %rax movl 0x8(%rax), %eax movl %eax, -0x20(%rbp) movq -0x18...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__cff_int(stbtt__buf*)
static stbtt_uint32 stbtt__cff_int(stbtt__buf *b) { int b0 = stbtt__buf_get8(b); if (b0 >= 32 && b0 <= 246) return b0 - 139; else if (b0 >= 247 && b0 <= 250) return (b0 - 247)*256 + stbtt__buf_get8(b) + 108; else if (b0 >= 251 && b0 <= 254) return -(b0 - 251)*256 - stbtt__buf_get8(b) - 108; else if...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0x94400 movzbl %al, %eax movl %eax, -0x14(%rbp) cmpl $0x20, -0x14(%rbp) jl 0x94a3a cmpl $0xf6, -0x14(%rbp) jg 0x94a3a movl -0x14(%rbp), %eax subl $0x8b, %eax movl %eax, -0x4(%rbp) jmp 0x94b13 cmpl $0xf7, -0x14(%rbp) jl 0x94a...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt_GetGlyphBox(stbtt_fontinfo const*, int, int*, int*, int*, int*)
STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) { if (info->cff.size) { stbtt__GetGlyphInfoT2(info, glyph_index, x0, y0, x1, y1); } else { int g = stbtt__GetGlyfOffset(info, glyph_index); if (g < 0) return 0; if (x0) *x0 = t...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x4c(%rax) je 0x94c7a movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi movq -0x20(%rbp), %rdx movq -0x28(%rbp...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__GetGlyphInfoT2(stbtt_fontinfo const*, int, int*, int*, int*, int*)
static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) { stbtt__csctx c = STBTT__CSCTX_INIT(1); int r = stbtt__run_charstring(info, glyph_index, &c); if (x0) *x0 = r ? c.min_x : 0; if (y0) *y0 = r ? c.min_y : 0; if (x1) *x1 = r ? c.max_x : 0; ...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) leaq -0x68(%rbp), %rdi xorl %esi, %esi movl $0x38, %edx callq 0x11370 movl $0x1, -0x68(%rbp) movq -0x8(%rbp), %rdi movl -0xc(%rbp), %esi leaq ...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__GetGlyfOffset(stbtt_fontinfo const*, int)
static int stbtt__GetGlyfOffset(const stbtt_fontinfo *info, int glyph_index) { int g1,g2; STBTT_assert(!info->cff.size); if (glyph_index >= info->numGlyphs) return -1; // glyph index out of range if (info->indexToLocFormat >= 2) return -1; // unknown index->glyph map format if (info->indexToLocForm...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x4c(%rax) setne %al xorb $-0x1, %al testb $0x1, %al jne 0x94e82 jmp 0x94e84 jmp 0x94ea3 leaq 0x1f9583(%rip), %rdi # 0x28e40e leaq 0x1f91f2(%rip), %rsi # 0x28e084 movl $0x624, %edx ...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__run_charstring(stbtt_fontinfo const*, int, stbtt__csctx*)
static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, stbtt__csctx *c) { int in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0; int has_subrs = 0, clear_stack; float s[48]; stbtt__buf subr_stack[10], subrs = info->subrs, b; float f; #define STBTT__CSERR(s) (0) ...
pushq %rbp movq %rsp, %rbp subq $0x2c0, %rsp # imm = 0x2C0 movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movl $0x1, -0x24(%rbp) movl $0x0, -0x28(%rbp) movl $0x0, -0x2c(%rbp) movl $0x0, -0x30(%rbp) movl $0x0, -0x40(%rbp) movq -0x10(%rbp), %rax movq 0x70(%rax), %rcx movq %rcx, -0x1c0(%rb...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__csctx_rccurve_to(stbtt__csctx*, float, float, float, float, float, float)
static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3) { float cx1 = ctx->x + dx1; float cy1 = ctx->y + dy1; float cx2 = cx1 + dx2; float cy2 = cy1 + dy2; ctx->x = cx2 + dx3; ctx->y = cy2 + dy3; stbtt__csctx_v(ctx, STBTT_vcubic, (int...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movss %xmm1, -0x10(%rbp) movss %xmm2, -0x14(%rbp) movss %xmm3, -0x18(%rbp) movss %xmm4, -0x1c(%rbp) movss %xmm5, -0x20(%rbp) movq -0x8(%rbp), %rax movss 0x10(%rax), %xmm0 addss -0xc(%rbp), %xmm0 movss %xmm0, -0x24(%rbp) movq -0x8(...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__cid_get_glyph_subrs(stbtt_fontinfo const*, int)
static stbtt__buf stbtt__cid_get_glyph_subrs(const stbtt_fontinfo *info, int glyph_index) { stbtt__buf fdselect = info->fdselect; int nranges, start, end, v, fmt, fdselector = -1, i; stbtt__buf_seek(&fdselect, 0); fmt = stbtt__buf_get8(&fdselect); if (fmt == 0) { // untested stbtt__buf_skip(...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x18(%rbp) movl %esi, -0x1c(%rbp) movq -0x18(%rbp), %rax movq 0x90(%rax), %rcx movq %rcx, -0x30(%rbp) movq 0x98(%rax), %rax movq %rax, -0x28(%rbp) movl $0xffffffff, -0x48(%rbp) # imm = 0xFFFFFFFF leaq -0x30(%rbp), %rdi xorl %esi, %esi callq 0x94370 leaq -0x30(%rbp...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__get_subr(stbtt__buf, int)
static stbtt__buf stbtt__get_subr(stbtt__buf idx, int n) { int count = stbtt__cff_index_count(&idx); int bias = 107; if (count >= 33900) bias = 32768; else if (count >= 1240) bias = 1131; n += bias; if (n < 0 || n >= count) return stbtt__new_buf(NULL, 0); return stbtt__cff_index_g...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x20(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x24(%rbp) leaq -0x20(%rbp), %rdi callq 0x967a0 movl %eax, -0x28(%rbp) movl $0x6b, -0x2c(%rbp) cmpl $0x846c, -0x28(%rbp) # imm = 0x846C jl 0x964b8 movl $0x8000, -0x2c(%rbp) # imm = 0x8000 jmp 0x964ca cmpl $0x4d8,...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt__csctx_v(stbtt__csctx*, unsigned char, int, int, int, int, int, int)
static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1) { if (c->bounds) { stbtt__track_vertex(c, x, y); if (type == STBTT_vcubic) { stbtt__track_vertex(c, cx, cy); stbtt__track_vertex(...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %sil, %al movl 0x18(%rbp), %esi movl 0x10(%rbp), %esi movq %rdi, -0x8(%rbp) movb %al, -0x9(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movl %r8d, -0x18(%rbp) movl %r9d, -0x1c(%rbp) movq -0x8(%rbp), %rax cmpl $0x0, (%rax) je 0x96617 movq -0x8(%rbp), %rdi movl -0x1...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbrp_init_target(stbrp_context*, int, int, stbrp_node*, int)
STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes) { int i; #ifndef STBRP_LARGE_RECTS STBRP_ASSERT(width <= 0xffff && height <= 0xffff); #endif for (i=0; i < num_nodes-1; ++i) nodes[i].next = &nodes[i+1]; nodes[i].next = NULL; context-...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq %rcx, -0x18(%rbp) movl %r8d, -0x1c(%rbp) xorl %eax, %eax cmpl $0xffff, -0xc(%rbp) # imm = 0xFFFF movb %al, -0x21(%rbp) jg 0x96805 cmpl $0xffff, -0x10(%rbp) # imm = 0xFFFF setle %al movb %al, -0x21(...
/tuket[P]gltf_viewer/libs/imgui/imstb_rectpack.h
stbtt__oversample_shift(int)
static float stbtt__oversample_shift(int oversample) { if (!oversample) return 0.0f; // The prefilter is a box filter of width "oversample", // which shifts phase by (oversample - 1)/2 pixels in // oversampled space. We want to shift in the opposite // direction to counter this. return (float)-...
pushq %rbp movq %rsp, %rbp movl %edi, -0x8(%rbp) cmpl $0x0, -0x8(%rbp) jne 0x969a7 xorps %xmm0, %xmm0 movss %xmm0, -0x4(%rbp) jmp 0x969cf movl -0x8(%rbp), %ecx subl $0x1, %ecx xorl %eax, %eax subl %ecx, %eax cvtsi2ss %eax, %xmm0 cvtsi2ssl -0x8(%rbp), %xmm2 movss 0x1c3836(%rip), %xmm1 # 0x25a1f8 mulss %xmm2, %xmm1 div...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h
stbtt_GetGlyphHMetrics(stbtt_fontinfo const*, int, int*, int*)
STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing) { stbtt_uint16 numOfLongHorMetrics = ttUSHORT(info->data+info->hhea + 34); if (glyph_index < numOfLongHorMetrics) { if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rdi movq -0x8(%rbp), %rax movslq 0x24(%rax), %rax addq %rax, %rdi addq $0x22, %rdi callq 0x94860 movw %ax, -0x22(%rbp) movl -0xc(%rbp), %eax movzwl...
/tuket[P]gltf_viewer/libs/imgui/imstb_truetype.h