aboutsummaryrefslogtreecommitdiff
path: root/examples/graphics/gte
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2021-07-01 08:45:46 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2021-07-01 08:45:46 +0800
commit01fe30bd8bae59ab954751b08bcc1d158eff7edb (patch)
treeaa83e37f4e59207ec41b3d47796875755462c63f /examples/graphics/gte
parentda79082d2c5e0dcbc899a359f6f49ec8cca90d66 (diff)
downloadpsn00bsdk-01fe30bd8bae59ab954751b08bcc1d158eff7edb.tar.gz
Added int*_t and uint*_t variable types and updated type definitions in psxgpu and psxcd, to improve compatibility with code written for the official SDK.
Diffstat (limited to 'examples/graphics/gte')
-rw-r--r--examples/graphics/gte/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/graphics/gte/main.c b/examples/graphics/gte/main.c
index 432ef95..a7ddb6b 100644
--- a/examples/graphics/gte/main.c
+++ b/examples/graphics/gte/main.c
@@ -2,7 +2,7 @@
* LibPSn00b Example Programs
*
* GTE Graphics Example
- * 2019 Meido-Tek Productions / PSn00bSDK Project
+ * 2019 - 2021 Meido-Tek Productions / PSn00bSDK Project
*
* Renders a spinning 3D cube with light source calculation
* using GTE macros.
@@ -12,10 +12,13 @@
*
* Changelog:
*
- * Jan 26, 2019 - Initial version.
+ * May 10, 2021 - Variable types updated for psxgpu.h changes.
+ *
+ * Jan 26, 2019 - Initial version.
*
*/
+#include <sys/types.h>
#include <stdio.h>
#include <psxgpu.h>
#include <psxgte.h>
@@ -38,7 +41,7 @@
typedef struct {
DISPENV disp; /* Display environment */
DRAWENV draw; /* Drawing environment */
- int ot[OT_LEN]; /* Ordering table */
+ u_long ot[OT_LEN]; /* Ordering table */
char p[PACKET_LEN]; /* Packet buffer */
} DB;