aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_shapes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/graphics/je_shapes.cpp')
-rw-r--r--src/libjin/graphics/je_shapes.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libjin/graphics/je_shapes.cpp b/src/libjin/graphics/je_shapes.cpp
index 7781b3f..8bfb1ef 100644
--- a/src/libjin/graphics/je_shapes.cpp
+++ b/src/libjin/graphics/je_shapes.cpp
@@ -30,7 +30,7 @@ namespace JinEngine
.sendMatrix4(SHADER_MODELVIEW_MATRIX, &modelMatrix)
.sendMatrix4(SHADER_PROJECTION_MATRIX, &gl.getProjectionMatrix());
- glDrawArrays(GL_POINTS, 0, 1);
+ gl.drawArrays(GL_POINTS, 0, 1);
}
void points(int n, GLshort* p)
@@ -43,7 +43,7 @@ namespace JinEngine
.sendMatrix4(SHADER_MODELVIEW_MATRIX, &modelMatrix)
.sendMatrix4(SHADER_PROJECTION_MATRIX, &gl.getProjectionMatrix());
- glDrawArrays(GL_POINTS, 0, n);
+ gl.drawArrays(GL_POINTS, 0, n);
}
void line(int x1, int y1, int x2, int y2)
@@ -61,7 +61,7 @@ namespace JinEngine
.sendMatrix4(SHADER_MODELVIEW_MATRIX, &modelMatrix)
.sendMatrix4(SHADER_PROJECTION_MATRIX, &gl.getProjectionMatrix());
- glDrawArrays(GL_LINES, 0, 2);
+ gl.drawArrays(GL_LINES, 0, 2);
}
void circle(RenderMode mode, int x, int y, int r)
@@ -110,7 +110,7 @@ namespace JinEngine
.sendMatrix4(SHADER_PROJECTION_MATRIX, &gl.getProjectionMatrix())
.uploadVertices(2, GL_FLOAT, 0, p);
- glDrawArrays(GL_LINE_LOOP, 0, count);
+ gl.drawArrays(GL_LINE_LOOP, 0, count);
}
void polygon(RenderMode mode, float* p, int count)
@@ -128,7 +128,7 @@ namespace JinEngine
.sendMatrix4(SHADER_PROJECTION_MATRIX, &gl.getProjectionMatrix())
.uploadVertices(2, GL_FLOAT, 0, p);
- glDrawArrays(GL_POLYGON, 0, count);
+ gl.drawArrays(GL_POLYGON, 0, count);
}
}