coastline
0.0.4
Loading...
Searching...
No Matches
src
common
coordinates.h
Go to the documentation of this file.
1
#ifndef COASTLINE_COORDINATES_H
2
#define COASTLINE_COORDINATES_H
3
4
#include <
PR/gbi.h
>
5
6
#include "
common/types.h
"
7
8
#if TGR_BOSS_RALLY
10
#define COORD_ADD(a, b) ((s32)((u32)(a) + (u32)(b)))
12
#define COORD_SUB(a, b) ((s32)((u32)(a) - (u32)(b)))
14
#define COORD_DOUBLE(value) ((s32)((u32)(value) * 2u))
16
#define COORD_SHIFT(value, shift) ((s32)((u32)(value) << ((u32)(shift) & 31u)))
18
#define FILL_COLOR(red, green, blue) \
19
((u32)(u16)GPACK_RGBA5551((u32)(red), (u32)(green), (u32)(blue), 1) * 0x10001u)
20
#else
22
#define COORD_ADD(a, b) ((a) + (b))
24
#define COORD_SUB(a, b) ((a) - (b))
26
#define COORD_DOUBLE(value) ((value) * 2)
28
#define COORD_SHIFT(value, shift) ((value) << (shift))
30
#define FILL_COLOR(red, green, blue) \
31
((u16)GPACK_RGBA5551(red, green, blue, 1) | (u32)(u16)GPACK_RGBA5551(red, green, blue, 1) << 16)
32
#endif
33
34
#endif
/* COASTLINE_COORDINATES_H */
gbi.h
The graphics binary interface types the gu routines fill in for the RSP microcode.
types.h
The integer and floating-point types of the console, for headers shared with Windows.
Generated by
1.15.0