Small OpenGL based c++ rendering library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

glcolor.h 489B

123456789101112131415161718192021222324252627
  1. #ifndef __GLCOLOR_H
  2. #define __GLCOLOR_H
  3. #include <SDL.h>
  4. #include <SDL_opengl.h>
  5. #include <iostream>
  6. #include <string>
  7. class GLColor {
  8. public:
  9. float r, g, b, a;
  10. bool setalpha;
  11. GLColor();
  12. GLColor(const SDL_Color&);
  13. void set(float _r, float _g, float _b, float _a=1.0f);
  14. SDL_Color getSDLColor();
  15. void print(std::string m="");
  16. };
  17. void glColorGLC(GLColor c);
  18. // a) setalpha entscheiden lassen
  19. // b) zwei funktionen, eine setzt alpha mit in richtung 3f, 4f..
  20. #endif