⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 directdrawwindow32bpp.h

📁 VIGASOCO (VIdeo GAmes SOurce COde) Windows port (v0.01)
💻 H
字号:
// DirectDrawWindow32bpp.h
//
//	Class that implements a DirectDraw Windowed 32bpp mode Plugin
//
/////////////////////////////////////////////////////////////////////////////

#ifndef _DIRECT_DRAW_WINDOW_32BPP_H_
#define _DIRECT_DRAW_WINDOW_32BPP_H_


#include "DirectDrawWindow.h"

class DirectDrawWindow32bpp : public DirectDrawWindow
{
// fields
protected:
	UINT32 *_palette;

// inherited methods
public:
	// initialization and cleanup
	DirectDrawWindow32bpp(Win32Settings *settings);
	virtual ~DirectDrawWindow32bpp();
	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);
};


#endif // _DIRECT_DRAW_WINDOW_32BPP_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -