AppleWin/source/frontends/sdl/imgui/sdlimguiframe.h
Andrea Odetti d912026f3e Add options to specify SDL window size via cmd line arguments.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-13 12:56:06 +00:00

41 lines
730 B
C++

#pragma once
#include "frontends/sdl/sdlframe.h"
#include "frontends/sdl/imgui/gles.h"
class EmulatorOptions;
class SDLImGuiFrame : public SDLFrame
{
public:
SDLImGuiFrame(const EmulatorOptions & options);
~SDLImGuiFrame() override;
void UpdateTexture() override;
void RenderPresent() override;
private:
void DrawAppleVideo();
void ShowSettings();
struct ImGuiSettings
{
std::string iniFileLocation;
bool windowed = false;
bool showDemo = false;
int speakerVolume = 50;
int mockingboardVolume = 50;
};
size_t myPitch;
size_t myOffset;
size_t myBorderlessWidth;
size_t myBorderlessHeight;
SDL_GLContext myGLContext;
ImTextureID myTexture;
ImGuiSettings mySettings;
};