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-10-05 19:05:50 +0000
committerStijn Buys <ingar@osirion.org>2008-10-05 19:05:50 +0000
commit9c3baab33a0fa48e7379f0485116452779a1cd37 (patch)
tree12f76da066d4fe7e062ff9cf33dd75fd80e0154e /src/render/gl.cc
parenta8c367416c28edb47c8f8c447b515cca4080adc2 (diff)
interface with ui library
Diffstat (limited to 'src/render/gl.cc')
-rw-r--r--src/render/gl.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/render/gl.cc b/src/render/gl.cc
index 5540af0..47a0420 100644
--- a/src/render/gl.cc
+++ b/src/render/gl.cc
@@ -7,7 +7,7 @@
#include "render/gl.h"
#include "math/matrix4f.h"
-
+using math::Vector2f;
using math::Vector3f;
using math::Color;
@@ -120,6 +120,14 @@ void scale(const float x, const float y, const float z) {
glScalef(x, y, z);
}
+void vertex(const Vector2f& vector) {
+ glVertex2fv(vector.ptr());
+}
+
+void vertex(const float x, const float y) {
+ glVertex2f(x, y);
+}
+
void vertex(const Vector3f& vector) {
glVertex3fv(vector.ptr());
}