diff options
author | aap <aap@papnet.eu> | 2020-04-24 13:49:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-24 13:49:30 +0200 |
commit | 17dda21cca625d9c985dded2c3b80746eb937c01 (patch) | |
tree | c4be4fa57b16c61d45e8156a51dd07b11e049bba /src/core/common.h | |
parent | removed fix that made no sense (diff) | |
parent | implemented skinned peds, no cutscene hands yet (diff) | |
download | re3-17dda21cca625d9c985dded2c3b80746eb937c01.tar re3-17dda21cca625d9c985dded2c3b80746eb937c01.tar.gz re3-17dda21cca625d9c985dded2c3b80746eb937c01.tar.bz2 re3-17dda21cca625d9c985dded2c3b80746eb937c01.tar.lz re3-17dda21cca625d9c985dded2c3b80746eb937c01.tar.xz re3-17dda21cca625d9c985dded2c3b80746eb937c01.tar.zst re3-17dda21cca625d9c985dded2c3b80746eb937c01.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/common.h b/src/core/common.h index 46b4d03a..8b057efa 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -27,9 +27,15 @@ #ifdef LIBRW #define STREAMPOS(str) ((str)->tell()) #define STREAMFILE(str) (((rw::StreamFile*)(str))->file) +#define HIERNODEINFO(hier) ((hier)->nodeInfo) +#define HIERNODEID(hier, i) ((hier)->nodeInfo[i].id) +#define HANIMFRAMES(anim) ((anim)->keyframes) #else #define STREAMPOS(str) ((str)->Type.memory.position) #define STREAMFILE(str) ((str)->Type.file.fpFile) +#define HIERNODEINFO(hier) ((hier)->pNodeInfo) +#define HIERNODEID(hier, i) ((hier)->pNodeInfo[i].nodeID) +#define HANIMFRAMES(anim) ((anim)->pFrames) #endif #define rwVENDORID_ROCKSTAR 0x0253F2 @@ -63,6 +69,11 @@ typedef uint16_t wchar; #include "config.h" +#ifdef PED_SKIN +#include <rphanim.h> +#include <rpskin.h> +#endif + #define ALIGNPTR(p) (void*)((((uintptr)(void*)p) + sizeof(void*)-1) & ~(sizeof(void*)-1)) // PDP-10 like byte functions |