Add exit game function
This commit is contained in:
@@ -310,6 +310,9 @@ void imguiRender(float dt, void *userData) {
|
||||
if (igCollapsingHeader_TreeNodeFlags("Entities", 0)) {
|
||||
igSliderFloat("Frame duration", &game->frameDuration, 0.0f, 1.0f, NULL, 0);
|
||||
}
|
||||
if (igSmallButton("Quite game")) {
|
||||
bzGameExit();
|
||||
}
|
||||
igEnd();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user