summaryrefslogtreecommitdiff
path: root/include/mcolor.h
blob: 6be0a5ad1dd102d10f8dc5850292c7c95d2cc447 (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
#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 &);
	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