MCPcopy Create free account
hub / github.com/MrDrElliot/LuminaEngine / ToDisplayString

Method ToDisplayString

Engine/Editor/Source/UI/Tools/EditorTool.cpp:355–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353 const ImU32 DotColor = IM_COL32(255, 210, 120, 255);
354 const ImVec2 Pad(5.0f, 2.0f);
355
356 DrawList->PushClipRect(ViewportOrigin, ImVec2(ViewportOrigin.x + ViewportSize.x, ViewportOrigin.y + ViewportSize.y), true);
357 for (const SkeletonDebugDraw::FBoneLabel& Label : Labels)
358 {
359 const FVector4 Clip = ViewProj * FVector4(Label.WorldPosition, 1.0f);
360 if (Clip.w <= 1e-4f)
361 {
362 continue;
363 }
364
365 const float NdcX = Clip.x / Clip.w;
366 const float NdcY = Clip.y / Clip.w;
367 const float ScreenX = (NdcX * 0.5f + 0.5f) * ViewportSize.x + ViewportOrigin.x;
368 const float ScreenY = (1.0f - (NdcY * 0.5f + 0.5f)) * ViewportSize.y + ViewportOrigin.y;
369
370 const char* Text = *Label.Name;

Callers 5

BuildModelMethod · 0.80
BuildModelMethod · 0.80
FindHandleTypeMethod · 0.80
TryGetSpanElementMethod · 0.80
DrawKeybindsMenuMethod · 0.80

Calls 1

IsValidFunction · 0.50

Tested by

no test coverage detected