/*
-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
#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;
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);