浏览代码

Some tweaks

pull/3284/head
Ray 1年前
父节点
当前提交
6e18d96e7a
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. +1
    -1
      src/raylib.h
  2. +1
    -1
      src/rcore.c
  3. +2
    -2
      src/rmodels.c

+ 1
- 1
src/raylib.h 查看文件

@ -1509,7 +1509,7 @@ RLAPI void SetModelMeshMaterial(Model *model, int meshId, int materialId);
RLAPI ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount); // Load model animations from file RLAPI ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount); // Load model animations from file
RLAPI void UpdateModelAnimation(Model model, ModelAnimation anim, int frame); // Update model animation pose RLAPI void UpdateModelAnimation(Model model, ModelAnimation anim, int frame); // Update model animation pose
RLAPI void UnloadModelAnimation(ModelAnimation anim); // Unload animation data RLAPI void UnloadModelAnimation(ModelAnimation anim); // Unload animation data
RLAPI void UnloadModelAnimations(ModelAnimation *animations, unsigned int count); // Unload animation array data
RLAPI void UnloadModelAnimations(ModelAnimation *animations, int animCount); // Unload animation array data
RLAPI bool IsModelAnimationValid(Model model, ModelAnimation anim); // Check model animation skeleton match RLAPI bool IsModelAnimationValid(Model model, ModelAnimation anim); // Check model animation skeleton match
// Collision detection functions // Collision detection functions

+ 1
- 1
src/rcore.c 查看文件

@ -601,7 +601,7 @@ static const char *autoEventTypeName[] = {
"ACTION_SETTARGETFPS" "ACTION_SETTARGETFPS"
}; };
// Automation Event (24 bytes)
// Automation event (24 bytes)
typedef struct AutomationEvent { typedef struct AutomationEvent {
unsigned int frame; // Event frame unsigned int frame; // Event frame
unsigned int type; // Event type (AutomationEventType) unsigned int type; // Event type (AutomationEventType)

+ 2
- 2
src/rmodels.c 查看文件

@ -2099,9 +2099,9 @@ void UpdateModelAnimation(Model model, ModelAnimation anim, int frame)
} }
// Unload animation array data // Unload animation array data
void UnloadModelAnimations(ModelAnimation *animations, unsigned int count)
void UnloadModelAnimations(ModelAnimation *animations, int animCount)
{ {
for (unsigned int i = 0; i < count; i++) UnloadModelAnimation(animations[i]);
for (int i = 0; i < animCount; i++) UnloadModelAnimation(animations[i]);
RL_FREE(animations); RL_FREE(animations);
} }

正在加载...
取消
保存