MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / init

Method init

testbed/src/Gui.cpp:58–78  ·  view source on GitHub ↗

Initialize the GUI

Source from the content-addressed store, hash-verified

56
57/// Initialize the GUI
58void Gui::init(GLFWwindow* window) {
59
60 mWindow = window;
61
62 mScreen = new Screen();
63 mScreen->initialize(window, true);
64
65 // Create the Simulation panel
66 createSimulationPanel();
67
68 // Create the Settings panel
69 createSettingsPanel();
70
71 // Create the Profiling panel
72 createProfilingPanel();
73
74 mScreen->set_visible(true);
75 mScreen->perform_layout();
76
77 mTimeSinceLastProfilingDisplay = glfwGetTime();
78}
79
80void Gui::drawAll() {
81 mScreen->clear();

Callers 1

startMethod · 0.45

Calls 1

initializeMethod · 0.80

Tested by 1

startMethod · 0.36