Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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());
}