00001
00002 #include "cg_local.h"
00003
00004 #include "../namespace_begin.h"
00005
00006 qboolean strap_G2API_GetBoltMatrix(void *ghoul2, const int modelIndex, const int boltIndex, mdxaBone_t *matrix,
00007 const vec3_t angles, const vec3_t position, const int frameNum, qhandle_t *modelList, vec3_t scale)
00008 {
00009 return trap_G2API_GetBoltMatrix(ghoul2, modelIndex, boltIndex, matrix, angles, position, frameNum, modelList, scale);
00010 }
00011
00012 qboolean strap_G2API_GetBoltMatrix_NoReconstruct(void *ghoul2, const int modelIndex, const int boltIndex, mdxaBone_t *matrix,
00013 const vec3_t angles, const vec3_t position, const int frameNum, qhandle_t *modelList, vec3_t scale)
00014 {
00015 return trap_G2API_GetBoltMatrix_NoReconstruct(ghoul2, modelIndex, boltIndex, matrix, angles, position, frameNum, modelList, scale);
00016 }
00017
00018 qboolean strap_G2API_GetBoltMatrix_NoRecNoRot(void *ghoul2, const int modelIndex, const int boltIndex, mdxaBone_t *matrix,
00019 const vec3_t angles, const vec3_t position, const int frameNum, qhandle_t *modelList, vec3_t scale)
00020 {
00021 return trap_G2API_GetBoltMatrix_NoRecNoRot(ghoul2, modelIndex, boltIndex, matrix, angles, position, frameNum, modelList, scale);
00022 }
00023
00024 qboolean strap_G2API_SetBoneAngles(void *ghoul2, int modelIndex, const char *boneName, const vec3_t angles, const int flags,
00025 const int up, const int right, const int forward, qhandle_t *modelList,
00026 int blendTime , int currentTime )
00027 {
00028 return trap_G2API_SetBoneAngles(ghoul2, modelIndex, boneName, angles, flags, up, right, forward, modelList, blendTime, currentTime);
00029 }
00030
00031 qboolean strap_G2API_SetBoneAnim(void *ghoul2, const int modelIndex, const char *boneName, const int startFrame, const int endFrame,
00032 const int flags, const float animSpeed, const int currentTime, const float setFrame , const int blendTime )
00033 {
00034 return trap_G2API_SetBoneAnim(ghoul2, modelIndex, boneName, startFrame, endFrame, flags, animSpeed, currentTime, setFrame, blendTime);
00035 }
00036
00037 qboolean strap_G2API_GetBoneAnim(void *ghoul2, const char *boneName, const int currentTime, float *currentFrame,
00038 int *startFrame, int *endFrame, int *flags, float *animSpeed, int *modelList, const int modelIndex)
00039 {
00040 return trap_G2API_GetBoneAnim(ghoul2, boneName, currentTime, currentFrame, startFrame, endFrame, flags, animSpeed, modelList, modelIndex);
00041 }
00042
00043 void strap_G2API_SetRagDoll(void *ghoul2, sharedRagDollParams_t *params)
00044 {
00045 trap_G2API_SetRagDoll(ghoul2, params);
00046 }
00047
00048 void strap_G2API_AnimateG2Models(void *ghoul2, int time, sharedRagDollUpdateParams_t *params)
00049 {
00050 trap_G2API_AnimateG2Models(ghoul2, time, params);
00051 }
00052
00053 qboolean strap_G2API_SetBoneIKState(void *ghoul2, int time, const char *boneName, int ikState, sharedSetBoneIKStateParams_t *params)
00054 {
00055 return trap_G2API_SetBoneIKState(ghoul2, time, boneName, ikState, params);
00056 }
00057
00058 qboolean strap_G2API_IKMove(void *ghoul2, int time, sharedIKMoveParams_t *params)
00059 {
00060 return trap_G2API_IKMove(ghoul2, time, params);
00061 }
00062
00063 void strap_TrueMalloc(void **ptr, int size)
00064 {
00065 trap_TrueMalloc(ptr, size);
00066 }
00067
00068 void strap_TrueFree(void **ptr)
00069 {
00070 trap_TrueFree(ptr);
00071 }
00072
00073 #include "../namespace_end.h"