From 781ecd6529505e4bf1fd400634ee83bcb9a07c81 Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 19 Mar 2017 04:51:01 -0500 Subject: I have no idea why I am doing this... --- src/graphics_opengl.c | 151 -------------------------------------------------- 1 file changed, 151 deletions(-) delete mode 100644 src/graphics_opengl.c (limited to 'src/graphics_opengl.c') diff --git a/src/graphics_opengl.c b/src/graphics_opengl.c deleted file mode 100644 index 5d2e600..0000000 --- a/src/graphics_opengl.c +++ /dev/null @@ -1,151 +0,0 @@ -#include -#include -#include -#include -#include - -#include "common.h" - -GLenum doubleBuffer; -GLubyte ubImage[65536]; - -void set_aspect_ratio(int w,int h) { - glViewport(0,0,w,h); - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - glOrtho(0,w,0,h,-1,1); -// glScalef(1,-1,1); -// glTranslatef(0,-h,0); -} - -void set_color_based_on_distance(real d) { - //scale this color based on distance... closer is lighter. -// float g; -// g=d/100.0 - glColor3f(0.0, 1.0, 0.0); -} - -void set_clipping_rectangle(int x,int y,int w,int h) { - -} - -void draw_cs_line(cs_t p1,cs_t p2) { - glBegin(GL_LINES); - glColor3f(0.0, 1.0, 0.0); - glVertex2i(p1.x,p1.y); - glVertex2i(p2.x,p2.y); - glEnd(); -} - -void draw_cs_text() { - -} - -void draw_cs_shape(cs_s_t s) { - int i; - for(i=0;i