diff options
| author | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-08-12 11:27:55 +0200 |
|---|---|---|
| committer | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-08-12 11:27:55 +0200 |
| commit | edb967394d22420c9aaad529862a670c016cc2c7 (patch) | |
| tree | a18b6062eedda22d2c1aabb852d2c633199cce2c /examples/system/childexec/parent.c | |
| parent | 7abb3b78727c8d4672197951e62b1c5916b3a54a (diff) | |
| download | psn00bsdk-edb967394d22420c9aaad529862a670c016cc2c7.tar.gz | |
Replace ball16c.h headers in examples with .TIM files
Diffstat (limited to 'examples/system/childexec/parent.c')
| -rw-r--r-- | examples/system/childexec/parent.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/system/childexec/parent.c b/examples/system/childexec/parent.c index 58f03f7..3e7d218 100644 --- a/examples/system/childexec/parent.c +++ b/examples/system/childexec/parent.c @@ -20,7 +20,7 @@ * */ -#include <sys/types.h> +#include <stdint.h> #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -29,8 +29,6 @@ #include <psxgte.h> #include <psxgpu.h> #include <psxpad.h> -#include "ball16c.h" - #define MAX_BALLS 1024 @@ -48,7 +46,7 @@ DISPENV disp; DRAWENV draw; char pribuff[2][65536]; /* Primitive packet buffers */ -u_long ot[2][OT_LEN]; /* Ordering tables */ +uint32_t ot[2][OT_LEN]; /* Ordering tables */ char *nextpri; /* Pointer to next packet buffer offset */ int db = 0; /* Double buffer index */ @@ -62,6 +60,8 @@ typedef struct { BALL_TYPE balls[MAX_BALLS]; +/* Ball texture reference */ +extern const uint32_t ball16c[]; /* TIM image parameters for loading the ball texture and drawing sprites */ TIM_IMAGE tim; @@ -103,7 +103,7 @@ void init() { /* Upload the ball texture */ printf("Upload texture... "); - GetTimInfo( (u_long*)ball16c, &tim ); /* Get TIM parameters */ + GetTimInfo( ball16c, &tim ); /* Get TIM parameters */ LoadImage( tim.prect, tim.paddr ); /* Upload texture to VRAM */ if( tim.mode & 0x8 ) { |
