aboutsummaryrefslogtreecommitdiff
path: root/src/parsec/include/r_gl.h
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-08-24 11:16:07 +0200
committerFelix Morgner <felix.morgner@gmail.com>2026-08-24 11:16:07 +0200
commitc068f22329d5cc722622a2183bbb22eef2093df7 (patch)
tree12d56c1aede67988a55e241364606bfbb4dba933 /src/parsec/include/r_gl.h
downloadopenparsec-c068f22329d5cc722622a2183bbb22eef2093df7.tar.xz
openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.zip
initial importHEADmain
Diffstat (limited to 'src/parsec/include/r_gl.h')
-rw-r--r--src/parsec/include/r_gl.h93
1 files changed, 93 insertions, 0 deletions
diff --git a/src/parsec/include/r_gl.h b/src/parsec/include/r_gl.h
new file mode 100644
index 0000000..9fd36b5
--- /dev/null
+++ b/src/parsec/include/r_gl.h
@@ -0,0 +1,93 @@
+/*
+ * PARSEC HEADER: r_gl.h
+ */
+
+#ifndef _R_GL_H_
+#define _R_GL_H_
+
+
+// include OpenGL headers -----------------------------------------------------
+
+#include <glew/glew.h>
+
+
+
+// define basic vertex types --------------------------------------------------
+
+struct GLVertex2 {
+
+ GLfloat x; // viewspace x
+ GLfloat y; // viewspace y
+
+ GLfloat s; // texture s
+ GLfloat t; // texture t
+
+ GLubyte r; // red component
+ GLubyte g; // green component
+ GLubyte b; // blue component
+ GLubyte a; // alpha component
+};
+
+struct GLVertex3 {
+
+ GLfloat x; // viewspace x
+ GLfloat y; // viewspace y
+ GLfloat z; // viewspace z
+
+ GLubyte r; // red component
+ GLubyte g; // green component
+ GLubyte b; // blue component
+ GLubyte a; // alpha component
+
+ GLfloat s; // texture s
+ GLfloat t; // texture t
+ GLfloat p; // volume coordinate (r)
+ GLfloat q; // homogeneous component (w)
+};
+
+struct GLVertex3m {
+
+ GLfloat x; // viewspace x
+ GLfloat y; // viewspace y
+ GLfloat z; // viewspace z
+
+ GLubyte r; // red component
+ GLubyte g; // green component
+ GLubyte b; // blue component
+ GLubyte a; // alpha component
+
+ GLfloat s0; // texture s0
+ GLfloat t0; // texture t0
+ GLfloat s1; // texture s1
+ GLfloat t1; // texture t1
+};
+
+struct GLVertex4 {
+
+ GLfloat x; // viewspace x
+ GLfloat y; // viewspace y
+ GLfloat z; // viewspace z
+ GLfloat w; // viewspace w
+
+ GLfloat s; // texture s
+ GLfloat t; // texture t
+ GLfloat p; // volume coordinate (r)
+ GLfloat q; // homogeneous component (w)
+};
+
+struct GLVertex4m {
+
+ GLfloat x; // viewspace x
+ GLfloat y; // viewspace y
+ GLfloat z; // viewspace z
+ GLfloat w; // viewspace w
+
+ GLfloat s0; // texture s0
+ GLfloat t0; // texture t0
+ GLfloat s1; // texture s1
+ GLfloat t1; // texture t1
+};
+
+
+#endif // _R_GL_H_
+