Newer
Older
cg / sources / color.cpp
@ajaggi ajaggi on 28 Dec 2005 243 bytes Moved classes to their own files.
#include "color.h"

#include <GL/gl.h>
#include <GL/glu.h>

Color::Color(float _r, float _g, float _b) {
	r = _r;
	g = _g;
	b = _b;
}

void Color::drawColor() {
	glColor4f(r, g, b, 1.0f);
}

Color* Color::clone() {
	return new Color(r,g,b);
}