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

📄 ipalette.h

📁 VIGASOCO (VIdeo GAmes SOurce COde) Windows port (v0.01)
💻 H
字号:
// IPalette.h
//
//	Abstract class that defines the interface of a palette
//
/////////////////////////////////////////////////////////////////////////////

#ifndef _IPALETTE_H_
#define _IPALETTE_H_


#include "Types.h"
#include "util/NotificationProvider.h"

class IPalette : public NotificationProvider<IPalette>
{
// abstract methods:
public:
	virtual ~IPalette(){}

	virtual void init(int colors) = 0;
	virtual void end() = 0;

	// getters & setters
	virtual int getTotalColors() const = 0;
	virtual void setColor(int index, UINT8 r, UINT8 g, UINT8 b) = 0;
	virtual void getColor(int index, UINT8 &r, UINT8 &g, UINT8 &b) = 0;
	virtual UINT8* getRawPalette() = 0;

	// notification
	virtual void notifyChange();
};


#endif	// _IPALETTE_H_

⌨️ 快捷键说明

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