32 #define RLP_PROP_NAME_LENGTH 32 33 #define RLP_SHADE_NAME_LENGTH 8 34 #define RLP_LAMP_NAME_LENGTH 16 36 #define MAX_NUMBER_SHADE_STATES 128 38 #define RLP_API_SCHEMA 10 39 #define RLP_API_ID "RLP" 43 #define EDGE_THREE 0x4 45 #define EDGE_ALL_VISIBLE (EDGE_ONE | EDGE_TWO | EDGE_THREE | EDGE_FOUR) 80 #define ATTEN_MAX_DISTANCE (1 << 15) 83 #define MAX_BEAM_ANGLE (4096 / 2) 90 #define OMNI_LIGHT (0) 91 #define SPOT_LIGHT (1) 92 #define DIRECT_LIGHT (2) 94 #define DECAY_NONE (0) 96 #define DECAY_INV_SQR (2) 99 #define RLP_DECAY_CONSTANT (50) 130 char lamp_name[RLP_LAMP_NAME_LENGTH];
131 char prop_name[RLP_PROP_NAME_LENGTH];
171 char shade_name[RLP_SHADE_NAME_LENGTH];
172 char prop_name[RLP_PROP_NAME_LENGTH];
179 char shade_name[RLP_SHADE_NAME_LENGTH];
180 char prop_name[RLP_PROP_NAME_LENGTH];
182 ShadeQuad states[MAX_NUMBER_SHADE_STATES];
190 uint16 shadeOffsetsOffset;
193 uint32 lampOffsets[1];
194 inline PSXLamp *GetLamp(
const int32 l);
195 inline uint32 *GetShadeOffsets(
void);
196 inline PSXShade *GetShade(
const int32 s);
199 inline PSXLamp *rlp_API::GetLamp(
const int32 l) {
return (
PSXLamp *)(
id + lampOffsets[l]); }
201 inline uint32 *rlp_API::GetShadeOffsets(
void) {
return (uint32 *)(
id + shadeOffsetsOffset); }
203 inline PSXShade *rlp_API::GetShade(
const int32 s) {
204 uint32 *shadeOffsets = GetShadeOffsets();
205 return (
PSXShade *)(
id + shadeOffsets[s]);
214 uint32 lampOffsets[1];
219 inline void ConvertRLP(
rlp_API *rlp) {
220 if (rlp->schema == RLP_API_SCHEMA)
226 #endif // #ifndef RLP_API_H Definition: rlp_api.h:208
Definition: rlp_api.h:118
Definition: rlp_api.h:185
Definition: px_capri_maths.h:53
Definition: rlp_api.h:178
Definition: rlp_api.h:170
Definition: rlp_api.h:105
Definition: rlp_api.h:136
Definition: px_capri_maths.h:46
Definition: rlp_api.h:152