forked from AppleWin/AppleWin
-
Notifications
You must be signed in to change notification settings - Fork 11
/
retroframe.h
35 lines (27 loc) · 808 Bytes
/
retroframe.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include "frontends/common2/commonframe.h"
#include "frontends/common2/gnuframe.h"
#include <memory>
#include <vector>
namespace ra2
{
class RetroFrame : public virtual common2::CommonFrame, public common2::GNUFrame
{
public:
RetroFrame();
void VideoPresentScreen() override;
void FrameRefreshStatus(int drawflags) override;
void Initialize(bool resetVideoState) override;
void Destroy() override;
int FrameMessageBox(LPCSTR lpText, LPCSTR lpCaption, UINT uType) override;
void GetBitmap(LPCSTR lpBitmapName, LONG cb, LPVOID lpvBits) override;
private:
std::vector<uint8_t> myVideoBuffer;
size_t myPitch;
size_t myOffset;
size_t myHeight;
size_t myBorderlessWidth;
size_t myBorderlessHeight;
uint8_t* myFrameBuffer;
};
}