[Example] Refactor example
This commit is contained in:
1 parent
4e564240ca
commit
3d438a0029
4 files changed
+93
-44
No files matched your search
@@ -55,8 +55,6 @@ public final class ImGuiGlfwExample {
|
||||
// ImGui context should be created as well.
|
||||
imGuiGl3.init(glslVersion);
|
||||
|
||||
exampleUi.init();
|
||||
|
||||
loop();
|
||||
|
||||
// You should clean up after yourself in reverse order.
|
||||
@@ -199,7 +197,7 @@ public final class ImGuiGlfwExample {
|
||||
}
|
||||
|
||||
// Main application loop
|
||||
private void loop() {
|
||||
private void loop() throws Exception {
|
||||
// Run the rendering loop until the user has attempted to close the window
|
||||
while (!glfwWindowShouldClose(windowPtr)) {
|
||||
startFrame();
|
||||
|
||||
Reference in new issue
Block a user