Working reference and bunny scene
This commit is contained in:
@@ -47,7 +47,7 @@ int main(int argc, char* args[])
|
||||
const auto pTimer = new Timer();
|
||||
const auto pRenderer = new Renderer(pWindow);
|
||||
|
||||
const auto pScene = new Scene_W2();
|
||||
const auto pScene = new Scene_W4_ReferenceScene();
|
||||
pScene->Initialize();
|
||||
|
||||
|
||||
@@ -74,10 +74,22 @@ int main(int argc, char* args[])
|
||||
case SDL_KEYUP:
|
||||
if (e.key.keysym.scancode == SDL_SCANCODE_X)
|
||||
takeScreenshot = true;
|
||||
if (e.key.keysym.scancode == SDL_SCANCODE_F2)
|
||||
{
|
||||
pRenderer->ToggleShadows();
|
||||
}
|
||||
if (e.key.keysym.scancode == SDL_SCANCODE_F3)
|
||||
{
|
||||
pRenderer->CycleLightingMode();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//--------- Update ---------
|
||||
pScene->Update(pTimer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user