turanszkij / WickedEngine

3D engine with modern graphics
https://wickedengine.net
Other
5.85k stars 619 forks source link

copy imgui docking example fonts to build dir #979

Closed k4ss4n closed 2 weeks ago

k4ss4n commented 2 weeks ago

Roboto-Medium.ttf expected in current/search directory: https://github.com/turanszkij/WickedEngine/blob/ 0a21fb5c612b161358d94c88edfe083f42006d6b/Samples/Example_ImGui_Docking/Example_ImGui_Docking.cpp#L171

FONT_ICON_FILE_NAME_MD defined as "MaterialIcons-Regular.ttf" expected in current/search directory: https://github.com/turanszkij/WickedEngine/blob/ 0a21fb5c612b161358d94c88edfe083f42006d6b/Samples/Example_ImGui_Docking/Example_ImGui_Docking.cpp#L1605

without these fonts present, debug build of Example_ImGui_Docking fails asserts: https://github.com/turanszkij/WickedEngine/blob/ 0a21fb5c612b161358d94c88edfe083f42006d6b/Samples/Example_ImGui_Docking/ ImGui/imgui_draw.cpp#L2151

Not sure if this is the desired solution, but this allows debug build of Example_ImGui_Docking to run without failing asserts on start.