directdrawfullscreen16bpp.h
来自「VIGASOCO (VIdeo GAmes SOurce COde) Windo」· C头文件 代码 · 共 46 行
H
46 行
// DirectDrawFullScreen16bpp.h
//
// Class that implements a DirectDraw FullScreen 16bpp mode Plugin
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _DIRECT_DRAW_FULLSCREEN_16BPP_H_
#define _DIRECT_DRAW_FULLSCREEN_16BPP_H_
#include "DirectDrawFullScreen.h"
#include "util/INotificationSuscriber.h"
class DirectDrawFullScreen16bpp : public DirectDrawFullScreen, public INotificationSuscriber<IPalette>
{
// fields
protected:
IPalette *_originalPalette;
UINT16 *_palette;
// inherited methods
public:
// initialization and cleanup
DirectDrawFullScreen16bpp(Win32Settings *settings);
virtual ~DirectDrawFullScreen16bpp();
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_FULLSCREEN_16BPP_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?