mirror of
https://github.com/mkwong98/HDNes.git
synced 2025-04-02 10:32:07 -04:00
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
#ifndef VIDEO_H
|
|
#define VIDEO_H
|
|
|
|
#include "../classList.h"
|
|
#include "emuPart.h"
|
|
|
|
#define TICKS_PER_FRAME_NTSC 16
|
|
#define TICKS_PER_FRAME_PAL 20
|
|
#define TICKS_REMAIN_NTSC 3
|
|
#define TICKS_REMAIN_PAL 1
|
|
#define TICKS_FRACTION_NTSC 2
|
|
#define TICKS_FRACTION_PAL 0
|
|
|
|
|
|
class video : public emuPart
|
|
{
|
|
public:
|
|
Uint8 screenSize;
|
|
Uint16 conCapRate;
|
|
bool useHDPack;
|
|
bool autoCaptureForHD;
|
|
bool ignoreEdge;
|
|
|
|
video();
|
|
virtual ~video();
|
|
string partName();
|
|
|
|
void saveConfigLines(fstream* fs);
|
|
void saveGameConfigLines(fstream* fs);
|
|
void loadConfigVal(const string& hdr, const string& value);
|
|
void initGameConfig();
|
|
|
|
void startGame();
|
|
void endGame();
|
|
|
|
void setScreenSize(Uint8 sizeIdx);
|
|
void setconCapRate(Uint16 rate);
|
|
void setUseHDPack(bool use);
|
|
void setGenHDData(bool use);
|
|
void setIgnoreEdge(bool use);
|
|
protected:
|
|
|
|
private:
|
|
SDL_Window* displayWindow;
|
|
SDL_GLContext glcontext;
|
|
};
|
|
|
|
#endif // VIDEO_H
|