Frontend: Add a powered-off window/welcome screen

This commit is contained in:
Connor McLaughlin
2019-10-20 20:37:21 +10:00
parent 884378045d
commit 0e6d1d5629
9 changed files with 8103 additions and 479 deletions

View File

@@ -54,6 +54,9 @@ private:
bool IsWindowFullscreen() const;
void DrawImGui();
void DoReset();
void DoResume();
void DoStartDisc();
void DoStartBIOS();
void DoLoadState(u32 index);
void DoSaveState(u32 index);
@@ -62,6 +65,7 @@ private:
void Render();
void RenderDisplay();
void DrawMainMenuBar();
void DrawPoweredOffWindow();
void DrawOSDMessages();
SDL_Window* m_window = nullptr;
@@ -69,6 +73,8 @@ private:
int m_window_width = 0;
int m_window_height = 0;
std::unique_ptr<GL::Texture> m_app_icon_texture = nullptr;
GL::Program m_display_program;
GLuint m_display_vao = 0;
GL::Texture* m_display_texture = nullptr;
@@ -87,7 +93,7 @@ private:
float m_vps = 0.0f;
float m_fps = 0.0f;
float m_speed = 1.0f;
float m_speed = 0.0f;
u32 m_last_frame_number = 0;
u32 m_last_internal_frame_number = 0;
u32 m_last_global_tick_counter = 0;