imguiManager

remove fullscreen + add speed slider
This commit is contained in:
2024-03-22 17:42:01 +01:00
parent a6ea730dc3
commit fffaa8b048
9 changed files with 21 additions and 100 deletions

View File

@@ -33,7 +33,7 @@ bool ApplicationClass::Initialize(int screenWidth, int screenHeight, HWND hwnd)
return false;
}
result = m_Direct3D->Initialize(screenWidth, screenHeight, VSYNC_ENABLED, hwnd, m_fullscreen, SCREEN_DEPTH, SCREEN_NEAR);
result = m_Direct3D->Initialize(screenWidth, screenHeight, VSYNC_ENABLED, hwnd, FULL_SCREEN, SCREEN_DEPTH, SCREEN_NEAR);
if (!result)
{
MessageBox(hwnd, L"Could not initialize Direct3D.", L"Error", MB_OK);
@@ -131,9 +131,8 @@ bool ApplicationClass::Frame()
static float rotation = 0.0f;
bool result;
// Update the rotation variable each frame.
rotation -= 0.0174532925f * 0.1f;
rotation -= 0.0174532925f * speed;
if (rotation < 0.0f)
{
rotation += 360.0f;
@@ -190,16 +189,6 @@ D3DClass* ApplicationClass::GetDirect3D()
return m_Direct3D;
}
void ApplicationClass::SetFullscreen(bool fullscreen)
{
m_fullscreen = fullscreen;
}
bool ApplicationClass::GetFullscreen() const
{
return m_fullscreen;
}
int ApplicationClass::GetScreenWidth() const
{
return GetSystemMetrics(SM_CXSCREEN);