resonance 1.0.1
Loading...
Searching...
No Matches
acanvas8.h
Go to the documentation of this file.
1#pragma once
2
3#include "rndartt/acanvas.h"
4
40class ACanvas8 : public ACanvas {
41public:
49 explicit ACanvas8(const ABitmap &bitmap);
50
57 virtual ~ACanvas8();
58
65 virtual void SetColor8(int nIndex);
66
73 virtual void SetColor15(unsigned short nColor);
74
81 virtual void SetColor24(const unsigned char *pRGB);
82
89 virtual void SetColor32(unsigned int nColor);
90
97 virtual void SetColorNative(unsigned int nColor);
98
105 virtual int GetColor8();
106
113 virtual unsigned short GetColor15();
114
121 virtual void GetColor24(unsigned char *pRGB);
122
129 virtual unsigned int GetColor32();
130
137 virtual unsigned int GetColorNative();
138
148 virtual void SetAlphaValues(unsigned int nColorKey);
149
156 virtual void DrawPixel15U(int nX, int nY, unsigned short nColor);
157
164 virtual void DrawPixel24U(int nX, int nY, const unsigned char *pRGB);
165
172 virtual void DrawPixel32U(int nX, int nY, unsigned int nColor);
173
183 virtual void DrawPixelNativeU(int nX, int nY, unsigned int nColor);
184
191 virtual unsigned short GetPixel15U(int nX, int nY);
192
199 virtual void GetPixel24U(int nX, int nY, unsigned char *pRGB);
200
210 virtual unsigned int GetPixel32U(int nX, int nY);
211
221 virtual unsigned int GetPixelNativeU(int nX, int nY);
222
223protected:
224 // The colour the store slots write, one byte where the wider formats keep a halfword or a word.
225 unsigned char mColor; // +0x24
226};
Description of a pixel rectangle, its layout, and its palette.
Definition abitmap.h:95
virtual unsigned short GetPixel15U(int nX, int nY)
Slot 27.
virtual void SetColor32(unsigned int nColor)
Slot 5.
virtual void GetColor24(unsigned char *pRGB)
Slot 9.
virtual void SetColorNative(unsigned int nColor)
Slot 6.
virtual void SetColor15(unsigned short nColor)
Slot 3.
virtual ~ACanvas8()
Slot 1.
virtual unsigned short GetColor15()
Slot 8.
virtual void DrawPixel15U(int nX, int nY, unsigned short nColor)
Slot 17.
virtual void SetColor8(int nIndex)
Slot 2.
unsigned char mColor
Definition acanvas8.h:225
virtual void DrawPixel24U(int nX, int nY, const unsigned char *pRGB)
Slot 19.
virtual unsigned int GetPixelNativeU(int nX, int nY)
Slot 33.
ACanvas8(const ABitmap &bitmap)
Construct over a bitmap.
virtual void GetPixel24U(int nX, int nY, unsigned char *pRGB)
Slot 29.
virtual unsigned int GetColorNative()
Slot 11.
virtual void SetAlphaValues(unsigned int nColorKey)
Slot 12.
virtual unsigned int GetColor32()
Slot 10.
virtual void DrawPixel32U(int nX, int nY, unsigned int nColor)
Slot 21.
virtual void SetColor24(const unsigned char *pRGB)
Slot 4.
virtual void DrawPixelNativeU(int nX, int nY, unsigned int nColor)
Slot 23.
virtual int GetColor8()
Slot 7.
virtual unsigned int GetPixel32U(int nX, int nY)
Slot 31.
ACanvas(const ABitmap &bitmap)
Adopt a pixel description.