integrating software renderer
[retroray] / src / gaw / gaw_gl.c
index fbec9a8..40f870c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-Deep Runner - 6dof shooter game for the SGI O2.
+RetroRay - integrated standalone vintage modeller/renderer
 Copyright (C) 2023  John Tsiombikas <nuclear@mutantstargoat.com>
 
 This program is free software: you can redistribute it and/or modify
@@ -18,7 +18,17 @@ along with this program.  If not, see <https://www.gnu.org/licenses/>.
 #include <string.h>
 #include "util.h"
 #include "gaw.h"
-#include "opengl.h"
+
+#if defined(WIN32) || defined(__WIN32)
+#include <windows.h>
+#endif
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#include <OpenGL/glu.h>
+#else
+#include <GL/gl.h>
+#include <GL/glu.h>
+#endif
 
 
 static const float *vertex_ptr, *normal_ptr, *texcoord_ptr, *color_ptr;
@@ -379,6 +389,11 @@ void gaw_vertex3f(float x, float y, float z)
        glVertex3f(x, y, z);
 }
 
+void gaw_vertex4f(float x, float y, float z, float w)
+{
+       glVertex4f(x, y, z, w);
+}
+
 void gaw_rect(float x1, float y1, float x2, float y2)
 {
        glRectf(x1, y1, x2, y2);