Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. #include <iostream>
  2. #include <typeinfo>
  3.  
  4. #ifndef COLORRGB_H_INCLUDED
  5. #define COLORRGB_H_INCLUDED
  6.  
  7. #define RGBByteR RGBByte[0]
  8. #define RGBByteG RGBByte[1]
  9. #define RGBByteB RGBByte[2]
  10.  
  11. #define RGBFloatR RGBFloat[0]
  12. #define RGBFloatG RGBFloat[1]
  13. #define RGBFloatB RGBFloat[2]
  14.  
  15. class ColorRGB
  16. {
  17. public:
  18. //template <class T>
  19. //void setColor(const T Red, const T Green, const T Blue);
  20. void tst(int a);
  21.  
  22. friend void debugRGBByte(ColorRGB &object);
  23. friend void debugRGBFloat(ColorRGB &object);
  24. friend void debugRGBInt(ColorRGB &object);
  25.  
  26. ColorRGB(int Red, int Green, int Blue);
  27. ColorRGB(const unsigned long RGBInt_);
  28.  
  29. private:
  30. int RGBByte [3];
  31. float RGBFloat [3];
  32.  
  33. unsigned long int RGBInt;
  34.  
  35. void convertRGBtoRGBF();
  36. void convertRGBFtoRGB();
  37. void convertRGBtoINT();
  38. void convertRGBIntToRGB();
  39.  
  40. template <class T>
  41. int typeDef(T *RGBBuffer);
  42. };
  43.  
  44. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement