Initialize the GUI
| 56 | |
| 57 | /// Initialize the GUI |
| 58 | void 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 | |
| 80 | void Gui::drawAll() { |
| 81 | mScreen->clear(); |