Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <typeinfo>
- #ifndef COLORRGB_H_INCLUDED
- #define COLORRGB_H_INCLUDED
- #define RGBByteR RGBByte[0]
- #define RGBByteG RGBByte[1]
- #define RGBByteB RGBByte[2]
- #define RGBFloatR RGBFloat[0]
- #define RGBFloatG RGBFloat[1]
- #define RGBFloatB RGBFloat[2]
- class ColorRGB
- {
- public:
- //template <class T>
- //void setColor(const T Red, const T Green, const T Blue);
- void tst(int a);
- friend void debugRGBByte(ColorRGB &object);
- friend void debugRGBFloat(ColorRGB &object);
- friend void debugRGBInt(ColorRGB &object);
- ColorRGB(int Red, int Green, int Blue);
- ColorRGB(const unsigned long RGBInt_);
- private:
- int RGBByte [3];
- float RGBFloat [3];
- unsigned long int RGBInt;
- void convertRGBtoRGBF();
- void convertRGBFtoRGB();
- void convertRGBtoINT();
- void convertRGBIntToRGB();
- template <class T>
- int typeDef(T *RGBBuffer);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement