#ifndef __MX_TYPES_H__ #define __MX_TYPES_H__ #include #include #include #include "SDL.h" extern "C" { #include "SDL_mxf.h" } #include "mx_exception.h" namespace mx { typedef union __Color { unsigned int value; unsigned char colors[4]; } _Color; class Color { public: Color(); Color(unsigned char r, unsigned char g, unsigned char b); Color(const unsigned int value); Color(const Color &c); Color(const SDL_Color &c); Color& operator=(const Color &c); Color& operator=(const unsigned int long_x); Color& operator=(const SDL_Color &c); const unsigned int toInteger() const; const SDL_Color toSDL_Color() const; __Color color; }; class mxObject { public: mxObject() {} ~mxObject(); static void *operator new(size_t size); static void *operator new [] (size_t size); static void operator delete (void *ptr); static void operator delete [] (void *ptr); static std::list addys; }; } #endif