aboutsummaryrefslogtreecommitdiff
path: root/src/parsec/include/r_glob.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_glob.h
downloadopenparsec-main.tar.xz
openparsec-main.zip
initial importHEADmain
Diffstat (limited to 'src/parsec/include/r_glob.h')
-rw-r--r--src/parsec/include/r_glob.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/parsec/include/r_glob.h b/src/parsec/include/r_glob.h
new file mode 100644
index 0000000..052ca87
--- /dev/null
+++ b/src/parsec/include/r_glob.h
@@ -0,0 +1,71 @@
+/*
+ * PARSEC HEADER: r_glob.h
+ */
+
+#ifndef _R_GLOB_H_
+#define _R_GLOB_H_
+
+
+// ----------------------------------------------------------------------------
+// RENDERING SUBSYSTEM (R) related global declarations and definitions -
+// ----------------------------------------------------------------------------
+
+
+// rasterization performance statistics
+
+struct rastperfstats_s {
+
+ dword fieldstate;
+
+ dword fragments;
+ dword pixels;
+ dword faildepth;
+ dword failalpha;
+ dword failchroma;
+};
+
+#define RASTPERF_NONE 0x0000
+#define RASTPERF_FRAGMENTS 0x0001
+#define RASTPERF_PIXELS 0x0002
+#define RASTPERF_FAILDEPTH 0x0004
+#define RASTPERF_FAILALPHA 0x0008
+#define RASTPERF_FAILCHROMA 0x0010
+
+
+// geometry performance statistics
+
+struct geomperfstats_s {
+
+ dword fieldstate;
+
+ dword vertices_in;
+ dword vertices_out;
+ dword polygons_in;
+ dword polygons_out;
+ dword triangles_in;
+ dword triangles_out;
+ dword edges;
+ dword spans_in;
+ dword spans_out;
+};
+
+#define GEOMPERF_NONE 0x0000
+#define GEOMPERF_VERTICES_IN 0x0001
+#define GEOMPERF_VERTICES_OUT 0x0002
+#define GEOMPERF_POLYGONS_IN 0x0004
+#define GEOMPERF_POLYGONS_OUT 0x0008
+#define GEOMPERF_TRIANGLES_IN 0x0010
+#define GEOMPERF_TRIANGLES_OUT 0x0020
+#define GEOMPERF_EDGES 0x0040
+#define GEOMPERF_SPANS_IN 0x0080
+#define GEOMPERF_SPANS_OUT 0x0100
+
+
+// make definition of pcluster pointers possible
+
+struct pcluster_s;
+
+
+#endif // _R_GLOB_H_
+
+