blob: 1202572d8fa3aa82cc315680ea66f1909de5b2a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef __MCOLOR_H__
#define __MCOLOR_H__
#include <Exceptions.h>
#include <Color.h>
namespace mogltk {
class ColorP : public Base {
public:
ColorP(const Color & = WHITE);
ColorP(Uint8, Uint8, Uint8, Uint8);
bool operator==(const ColorP &);
void Bind();
void Norm();
Uint32 toSDL(SDL_PixelFormat * = 0);
void fromSDL(Uint32, SDL_PixelFormat * = 0);
static Color Min;
static Color Max;
Color c;
};
};
#endif
|