📄 directdrawwindow16bpp.h
字号:
// DirectDrawWindow16bpp.h
//
// Class that implements a DirectDraw Windowed 16bpp mode Plugin
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _DIRECT_DRAW_WINDOW_16BPP_H_
#define _DIRECT_DRAW_WINDOW_16BPP_H_
#include "DirectDrawWindow.h"
#include "util/INotificationSuscriber.h"
class DirectDrawWindow16bpp : public DirectDrawWindow, public INotificationSuscriber<IPalette>
{
// fields
protected:
IPalette *_originalPalette;
UINT16 *_palette;
// inherited methods
public:
// initialization and cleanup
DirectDrawWindow16bpp(Win32Settings *settings);
virtual ~DirectDrawWindow16bpp();
virtual bool init(const VideoInfo *vi, IPalette *pal);
virtual void end();
// drawing functions
virtual void render(bool throttle);
virtual void setPixel(int x, int y, int color);
virtual void drawGfx(GfxElement *gfx, int code, int color, int x, int y, int attr);
virtual void drawGfxClip(GfxElement *gfx, int code, int color, int x, int y, int attr, Rect *clip);
virtual void drawGfxTrans(GfxElement *gfx, int code, int color, int x, int y, int attr, int transData);
virtual void drawGfxClipTrans(GfxElement *gfx, int code, int color, int x, int y, int attr, Rect *clip, int transData);
protected:
// palette changed notification
virtual void update(IPalette *palette, int data);
void updateFullPalette(IPalette *palette);
};
#endif // _DIRECT_DRAW_WINDOW_16BPP_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -