[FIX] in game scene

This commit is contained in:
Sem van der Hoeven
2021-06-11 10:58:21 +02:00
parent 645c4df494
commit ae9386a811
5 changed files with 11 additions and 10 deletions

View File

@@ -314,4 +314,10 @@ namespace scene
cv::imshow("camera", camera_frame);
}
//renders the models for the pause menu
void In_Game_Scene::render_pause_menu()
{
render_engine::renderer::Render(pause_guis, *gui_shader);
}
}

View File

@@ -121,10 +121,11 @@ namespace scene
update(window);
if (hand_mode) {
cameraFrame = objDetect.readCamera();
cameraFrame = objDetect.ReadCamera();
//Get hand state from camera
bool hand_detection = objDetect.detectHand(cameraFrame);
bool detect = false;
bool hand_detection = objDetect.DetectHand(cameraFrame,detect);
if (hand_detection)
{