[ADD] added comments to startup_scene.h

This commit is contained in:
Jasper
2021-06-08 11:49:57 +02:00
parent e7a9cda9dd
commit 1558ee298b
2 changed files with 38 additions and 6 deletions

View File

@@ -116,11 +116,7 @@ namespace scene
{
render();
update(window);
for (gui::GuiTexture* button : guis1) {
gui::Button* new_button = ConvertGuiTextureToButton(button);
if(new_button != NULL)
new_button->Update(window);
}
if (hand_mode) {
cameraFrame = objDetect.readCamera();
@@ -178,7 +174,11 @@ namespace scene
void scene::Startup_Scene::update(GLFWwindow* window)
{
for (gui::GuiTexture* button : guis1) {
gui::Button* new_button = ConvertGuiTextureToButton(button);
if (new_button != NULL)
new_button->Update(window);
}
}
void scene::Startup_Scene::onKey(GLFWwindow* window, int key, int scancode, int action, int mods)