summaryrefslogtreecommitdiff
path: root/src/graphics_opengl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics_opengl.c')
-rw-r--r--src/graphics_opengl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/graphics_opengl.c b/src/graphics_opengl.c
index fd079cf..5d2e600 100644
--- a/src/graphics_opengl.c
+++ b/src/graphics_opengl.c
@@ -66,6 +66,14 @@ void set_color() {
glColor3f(0.0, 1.0, 0.0);
}
+void set_color_red() {
+ glColor3f(1.0, 0.0, 0.0);
+}
+
+void set_color_blue() {
+ glColor3f(0.0, 0.0, 1.0);
+}
+
void clear_backbuffer() {
glClearColor(0.0, 0.0, 0.0, 1.0);
glClear(GL_COLOR_BUFFER_BIT);