#ifndef __COLOR_H__ #define __COLOR_H__ struct Color { Color(unsigned char aR, unsigned char aG, unsigned char aB, unsigned char aA = 255) : R(aR), G(aG), B(aB), A(aA) { } unsigned char R, G, B, A; #ifdef GL_COLOR void Bind() { glColor4d((double) R / 255, (double) G / 255, (double) B / 255, (double) A / 255); } #endif }; #endif