27 #ifndef ICB_RAP_API_HH 28 #define ICB_RAP_API_HH 30 #include "engines/icb/gfx/psx_pcdefines.h" 32 #include "common/endian.h" 36 #define RAP_API_SCHEMA 10 38 #define RAP_API_ID "RAP" 101 uint32 worldScaleShift;
102 uint32 weightScaleShift;
103 uint32 bothScaleShift;
122 uint32 singleLinkOffset;
123 uint32 multiLinkOffset;
133 uint16 animPolyOffset;
141 static Vertex *GetNoneLinkPtr(
RapAPI *rap) {
return rap->noneLinkData; }
147 static uint32 *GetFUS3Ptr(
RapAPI *rap) {
return (uint32 *)(rap->id + rap->FUS3offset); }
148 static uint32 *GetGUS3Ptr(
RapAPI *rap) {
return (uint32 *)(rap->id + rap->GUS3offset); }
149 static uint32 *GetFTS3Ptr(
RapAPI *rap) {
return (uint32 *)(rap->id + rap->FTS3offset); }
150 static uint32 *GetGTS3Ptr(
RapAPI *rap) {
return (uint32 *)(rap->id + rap->GTS3offset); }
151 static uint32 *GetFUL3Ptr(
RapAPI *rap) {
return (uint32 *)(rap->id + rap->FUL3offset); }
152 static uint32 *GetGUL3Ptr(
RapAPI *rap) {
return (uint32 *)(rap->id + rap->GUL3offset); }
153 static uint32 *GetFTL3Ptr(
RapAPI *rap) {
return (uint32 *)(rap->id + rap->FTL3offset); }
154 static uint32 *GetGTL3Ptr(
RapAPI *rap) {
return (uint32 *)(rap->id + rap->GTL3offset); }
155 static uint32 *GetTRI3Ptr(
RapAPI *rap) {
return (uint32 *)(rap->id + rap->TRI3offset); }
156 static uint32 *GetNormalPtr(
RapAPI *rap) {
return (uint32 *)(rap->id + rap->normalOffset); }
158 static uint32 *GetBoneHashPtr(
RapAPI *rap) {
160 return (uint32 *)(bPtr + rap->nBones);
162 static uint32 *GetAnimPolyPtr(
RapAPI *rap) {
163 return (uint32 *)(rap->id + rap->animPolyOffset);
166 static uint32 *GetAnimPolyFrame(
RapAPI *rap, int32 frame) {
167 return (uint32 *)(rap->id + rap->animPolyOffset + rap->nAnimTypes * 2 *
sizeof(uint32) + frame * rap->animPolySize);
171 inline void ConvertRAP(
RapAPI *rap) {
173 if (FROM_LE_32(rap->schema) == RAP_API_SCHEMA)
182 #endif // #ifndef RAP_API_HH
Definition: rap_api.h:139