AppleWin/source/frontends/sdl/imgui/sdlimguiframe.h
Andrea Odetti ddd1c4f301 Move ImGui Settings window(s) to a separate class.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-06 17:41:32 +00:00

46 lines
812 B
C++

#pragma once
#include "frontends/sdl/sdlframe.h"
#include "frontends/sdl/imgui/sdlsettings.h"
#include "frontends/sdl/imgui/gles.h"
namespace common2
{
class EmulatorOptions;
}
namespace sa2
{
class SDLImGuiFrame : public SDLFrame
{
public:
SDLImGuiFrame(const common2::EmulatorOptions & options);
~SDLImGuiFrame() override;
void UpdateTexture() override;
void RenderPresent() override;
protected:
void ProcessSingleEvent(const SDL_Event & event, bool & quit) override;
private:
void ClearBackground();
void DrawAppleVideo();
size_t myPitch;
size_t myOffset;
size_t myBorderlessWidth;
size_t myBorderlessHeight;
SDL_GLContext myGLContext;
ImTextureID myTexture;
std::string myIniFileLocation;
ImGuiSettings mySettings;
};
}