blob: 4cf311361600a9fa491b97ac0cad5925c1b1d54c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef __MCOLOR_H__
#define __MCOLOR_H__
#include <SDL.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 &);
Color * operator->();
void Bind();
void Norm();
Uint32 toSDL(SDL_PixelFormat * = 0);
void fromSDL(Uint32, SDL_PixelFormat * = 0);
static Color Min;
static Color Max;
Color c;
};
};
#endif
|