Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-24 20:40:57 +0000
committerStijn Buys <ingar@osirion.org>2008-03-24 20:40:57 +0000
commit78572764acf68b94b9992f488a725bc4be96a5b3 (patch)
tree03d4c6b55b413b8f147b2b8d62028bca9bf7c6cb /src/render/gl.cc
parentbd647ce0f411c1a78407762e0a01511694e76e6f (diff)
libmath optimizations and cleanups
Diffstat (limited to 'src/render/gl.cc')
-rw-r--r--src/render/gl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/gl.cc b/src/render/gl.cc
index 682bfc8..a5f2d99 100644
--- a/src/render/gl.cc
+++ b/src/render/gl.cc
@@ -121,7 +121,7 @@ void scale(const float x, const float y, const float z) {
}
void vertex(const Vector3f& vector) {
- glVertex3f(vector[0], vector[1], vector[2]);
+ glVertex3fv(vector.coord);
}
void vertex(const float x, const float y, const float z) {
@@ -148,7 +148,7 @@ void color(const float r, const float g, const float b, const float a) {
glColor4f(r,g,b,a);
}
void color(Color const & color) {
- glColor4f(color.red(), color.green(), color.blue(), color.alpha());
+ glColor4fv(color.rgba_data);
}
void matrixmode(GLenum mode) {