AppleWin/source/frontends/sdl/sdlframe.h

26 lines
591 B
C
Raw Normal View History

2021-01-10 11:47:44 +00:00
#pragma once
#include "frontends/common2/commonframe.h"
2021-01-10 11:47:44 +00:00
#include <SDL.h>
class SDLFrame : public CommonFrame
2021-01-10 11:47:44 +00:00
{
public:
SDLFrame();
2021-01-10 11:47:44 +00:00
void VideoPresentScreen() override;
void FrameRefreshStatus(int drawflags) override;
int FrameMessageBox(LPCSTR lpText, LPCSTR lpCaption, UINT uType) override;
void GetBitmap(LPCSTR lpBitmapName, LONG cb, LPVOID lpvBits) override;
2021-01-10 11:47:44 +00:00
virtual void UpdateTexture() = 0;
virtual void RenderPresent() = 0;
2021-01-10 11:47:44 +00:00
const std::shared_ptr<SDL_Window> & GetWindow() const;
protected:
2021-01-10 11:47:44 +00:00
void SetApplicationIcon();
std::shared_ptr<SDL_Window> myWindow;
};