瀏覽代碼

`WARNING`: REMOVED: `UnloadModelKeepMeshes()`

pull/2953/head
Ray 2 年之前
父節點
當前提交
4f7b5ff59f
共有 2 個文件被更改,包括 0 次插入22 次删除
  1. +0
    -1
      src/raylib.h
  2. +0
    -21
      src/rmodels.c

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

@ -1440,7 +1440,6 @@ RLAPI Model LoadModel(const char *fileName);
RLAPI Model LoadModelFromMesh(Mesh mesh); // Load model from generated mesh (default material)
RLAPI bool IsModelReady(Model model); // Check if a model is ready
RLAPI void UnloadModel(Model model); // Unload model (including meshes) from memory (RAM and/or VRAM)
RLAPI void UnloadModelKeepMeshes(Model model); // Unload model (but not meshes) from memory (RAM and/or VRAM)
RLAPI BoundingBox GetModelBoundingBox(Model model); // Compute model bounding box limits (considers all meshes)
// Model drawing functions

+ 0
- 21
src/rmodels.c 查看文件

@ -1147,27 +1147,6 @@ void UnloadModel(Model model)
TRACELOG(LOG_INFO, "MODEL: Unloaded model (and meshes) from RAM and VRAM");
}
// Unload model (but not meshes) from memory (RAM and/or VRAM)
void UnloadModelKeepMeshes(Model model)
{
// Unload materials maps
// NOTE: As the user could be sharing shaders and textures between models,
// we don't unload the material but just free its maps,
// the user is responsible for freeing models shaders and textures
for (int i = 0; i < model.materialCount; i++) RL_FREE(model.materials[i].maps);
// Unload arrays
RL_FREE(model.meshes);
RL_FREE(model.materials);
RL_FREE(model.meshMaterial);
// Unload animation data
RL_FREE(model.bones);
RL_FREE(model.bindPose);
TRACELOG(LOG_INFO, "MODEL: Unloaded model (but not meshes) from RAM and VRAM");
}
// Compute model bounding box limits (considers all meshes)
BoundingBox GetModelBoundingBox(Model model)
{

Loading…
取消
儲存