summaryrefslogtreecommitdiff
path: root/lib/glcolor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/glcolor.cc')
-rw-r--r--lib/glcolor.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/glcolor.cc b/lib/glcolor.cc
index c274620..c38b4e5 100644
--- a/lib/glcolor.cc
+++ b/lib/glcolor.cc
@@ -1,15 +1,13 @@
#include <SDL_opengl.h>
#include "glcolor.h"
-Color mogltk::ColorP::Min(0, 0, 0, 0), mogltk::ColorP::Max = WHITE;
-
-mogltk::ColorP::ColorP(const Color & ac) : c(ac) {
+mogltk::glColorP::glColorP(const Color & ac) : ColorP(ac) {
}
-mogltk::ColorP::ColorP(Uint8 ar, Uint8 ag, Uint8 ab, Uint8 aa) : c(ar, ag, ab, aa) {
+mogltk::glColorP::glColorP(Uint8 ar, Uint8 ag, Uint8 ab, Uint8 aa) : ColorP(ar, ag, ab, aa) {
}
-void mogltk::ColorP::Bind() {
+void mogltk::glColorP::Bind() {
glColor4d((double) MIN(MAX(c.R, Min.R), Max.R) / 255, (double) MIN(MAX(c.G, Min.G), Max.G) / 255, (double) MIN(MAX(c.B, Min.B), Max.B) / 255, (double) MIN(MAX(c.A, Min.A), Max.A) / 255);
}