/*
-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
glViewport(x, y, w, h);
}
+void gaw_get_viewport(int *vp)
+{
+ glGetIntegerv(GL_VIEWPORT, vp);
+}
+
void gaw_matrix_mode(int mode)
{
mode += GL_MODELVIEW;
case GAW_TEXTURE_2D:
glEnable(GL_TEXTURE_2D);
break;
+ case GAW_POLYGON_OFFSET:
+ glEnable(GL_POLYGON_OFFSET_FILL);
+ break;
default:
break;
}
case GAW_TEXTURE_2D:
glDisable(GL_TEXTURE_2D);
break;
+ case GAW_POLYGON_OFFSET:
+ glDisable(GL_POLYGON_OFFSET_FILL);
+ break;
default:
break;
}
glAlphaFunc(func + GL_NEVER, ref);
}
+void gaw_zoffset(float offs)
+{
+ glPolygonOffset(1, offs);
+}
+
void gaw_clear_color(float r, float g, float b, float a)
{
glClearColor(r, g, b, a);
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);