MCPcopy Create free account
hub / github.com/cinder/Cinder / setup

Method setup

samples/ImGui/src/ImGuiApp.cpp:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63};
64
65void ImGuiApp::setup()
66{
67 CI_LOG_I( "Initializing ImGui Test Application" );
68
69 // Initialize ImGui
70 ImGui::Initialize( ImGui::Options().window( getWindow() ).enableKeyboard( true ) );
71 ImGui::GetStyle().ScaleAllSizes( getWindowContentScale() ); // for Retina / hi-dpi
72 ImGui::GetStyle().FontScaleMain = getWindowContentScale();
73
74 // Create a simple test texture
75 createSampleTexture();
76
77 CI_LOG_I( "ImGui Version: " << IMGUI_VERSION );
78}
79
80void ImGuiApp::createSampleTexture()
81{

Callers

nothing calls this directly

Calls 4

getWindowContentScaleFunction · 0.85
ScaleAllSizesMethod · 0.80
OptionsClass · 0.50
getWindowFunction · 0.50

Tested by

no test coverage detected