AppleWin/source/frontends/sdl/renderer/sdlrendererframe.h
Andrea Odetti 989410c17d Integrate Dear ImGui with SDL to reduce code duplication.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 16:55:08 +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;
};