2021-02-06 16:55:08 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "frontends/sdl/sdlframe.h"
|
|
|
|
#include "frontends/sdl/imgui/gles.h"
|
|
|
|
|
|
|
|
class SDLImGuiFrame : public SDLFrame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SDLImGuiFrame();
|
|
|
|
|
|
|
|
~SDLImGuiFrame() override;
|
|
|
|
|
|
|
|
void UpdateTexture() override;
|
|
|
|
void RenderPresent() override;
|
|
|
|
|
|
|
|
private:
|
2021-02-07 16:10:54 +00:00
|
|
|
|
|
|
|
void DrawAppleVideo();
|
|
|
|
void ShowSettings();
|
|
|
|
|
|
|
|
struct ImGuiSettings
|
|
|
|
{
|
|
|
|
std::string iniFileLocation;
|
|
|
|
bool windowed = false;
|
|
|
|
bool showDemo = false;
|
2021-02-07 19:23:28 +00:00
|
|
|
int speakerVolume = 50;
|
|
|
|
int mockingboardVolume = 50;
|
2021-02-07 16:10:54 +00:00
|
|
|
};
|
|
|
|
|
2021-02-06 16:55:08 +00:00
|
|
|
size_t myPitch;
|
|
|
|
size_t myOffset;
|
|
|
|
size_t myBorderlessWidth;
|
|
|
|
size_t myBorderlessHeight;
|
|
|
|
|
|
|
|
SDL_GLContext myGLContext;
|
2021-02-06 16:55:41 +00:00
|
|
|
ImTextureID myTexture;
|
2021-02-07 16:10:54 +00:00
|
|
|
|
|
|
|
ImGuiSettings mySettings;
|
2021-02-06 16:55:08 +00:00
|
|
|
};
|