picking and brute force ray intersections
[retroray] / src / gaw / gaw.h
index 37d5ca0..e80c623 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
@@ -58,7 +58,8 @@ enum {
        GAW_LIGHT2,
        GAW_LIGHT3,
        GAW_TEXTURE_1D,
-       GAW_TEXTURE_2D
+       GAW_TEXTURE_2D,
+       GAW_POLYGON_OFFSET
 };
 
 enum {
@@ -97,6 +98,7 @@ enum {
 };
 
 void gaw_viewport(int x, int y, int w, int h);
+void gaw_get_viewport(int *vp);
 
 void gaw_matrix_mode(int mode);
 void gaw_load_identity(void);
@@ -123,6 +125,8 @@ void gaw_depth_func(int func);
 void gaw_blend_func(int src, int dest);
 void gaw_alpha_func(int func, float ref);
 
+void gaw_zoffset(float offs);
+
 void gaw_clear_color(float r, float g, float b, float a);
 void gaw_clear(unsigned int flags);
 void gaw_depth_mask(int mask);
@@ -144,6 +148,7 @@ void gaw_texcoord1f(float u);
 void gaw_texcoord2f(float u, float v);
 void gaw_vertex2f(float x, float y);
 void gaw_vertex3f(float x, float y, float z);
+void gaw_vertex4f(float x, float y, float z, float w);
 
 void gaw_rect(float x1, float y1, float x2, float y2);