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.
25 lines
419 B
25 lines
419 B
16 years ago
|
#ifndef __GLCOLOR_H
|
||
|
#define __GLCOLOR_H
|
||
|
|
||
|
#include <SDL.h>
|
||
|
#include <SDL_opengl.h>
|
||
|
|
||
|
class GLColor {
|
||
|
public:
|
||
|
float r, g, b, a;
|
||
|
bool setalpha;
|
||
|
|
||
|
|
||
|
GLColor();
|
||
|
GLColor(const SDL_Color&);
|
||
|
|
||
|
void set(float _r, float _g, float _b, float _a=1.0f);
|
||
|
SDL_Color getSDLColor();
|
||
|
};
|
||
|
|
||
|
void glColorGLC(GLColor c);
|
||
|
// a) setalpha entscheiden lassen
|
||
|
// b) zwei funktionen, eine setzt alpha mit in richtung 3f, 4f..
|
||
|
|
||
|
#endif
|