AppleWin/source/frontends/sdl/sdlrendererframe.h
Andrea Odetti 05b2d5b2e7 Split SDLFrame to ease integration of ImGui.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 10:11:29 +00:00

21 lines
380 B
C++

#pragma once
#include "frontends/sdl/sdlframe.h"
class EmulatorOptions;
class SDLRendererFrame : public SDLFrame
{
public:
SDLRendererFrame(const EmulatorOptions & options);
void UpdateTexture() override;
void RenderPresent() override;
private:
SDL_Rect myRect;
int myPitch;
std::shared_ptr<SDL_Renderer> myRenderer;
std::shared_ptr<SDL_Texture> myTexture;
};