zaveshaa
59cf1df522
Guard animation examples against missing model resources
...
LoadModelAnimations() returns NULL with animCount = 0 when the glTF file
can not be read, and the animation examples then crash dereferencing
animations by index. Reported as a segfault in models_animation_blending
when resources/models/gltf/robot.glb is missing.
The same pattern hits three more examples:
- models_animation_timing: update loop is guarded but the UI drawing
reads anims[animIndex] unconditionally every frame
- models_animation_gpu_skinning: modulo by zero animCount on key press,
then anims[animIndex] read
- models_animation_blend_custom: index clamping does not help because
the array itself is NULL
All four now exit early with a warning, unloading what was created.
2026-08-25 12:42:42 +03:00
..
resources
Update LICENSE.md
2026-03-30 20:16:40 +02:00
models_animation_blend_custom.c
Guard animation examples against missing model resources
2026-08-25 12:42:42 +03:00
models_animation_blend_custom.png
WARNING: BREAKING: REDESIGNED: **Animation System** #4606
2026-02-24 01:18:57 +01:00
models_animation_blending.c
Guard animation examples against missing model resources
2026-08-25 12:42:42 +03:00
models_animation_blending.png
WARNING: BREAKING: REDESIGNED: **Animation System** #4606
2026-02-24 01:18:57 +01:00
models_animation_gpu_skinning.c
Guard animation examples against missing model resources
2026-08-25 12:42:42 +03:00
models_animation_gpu_skinning.png
WARNING: BREAKING: REDESIGNED: **Animation System** #4606
2026-02-24 01:18:57 +01:00
models_animation_timing.c
Guard animation examples against missing model resources
2026-08-25 12:42:42 +03:00
models_animation_timing.png
WARNING: BREAKING: REDESIGNED: **Animation System** #4606
2026-02-24 01:18:57 +01:00
models_basic_voxel.c
Fix various warnings when building in VC2022 ( #6020 )
2026-07-26 15:10:19 +02:00
models_basic_voxel.png
REVIEWED: models_basic_voxel example
2026-02-19 16:46:48 +01:00
models_billboard_rendering.c
REXM: UPDATED: Examples source code header info, aligned with name
2025-09-07 12:01:51 +02:00
models_billboard_rendering.png
REXM: RENAME: example: models_billboard --> models_billboard_rendering
2025-09-04 11:04:00 +02:00
models_bone_socket.c
Fix various warnings when building in VC2022 ( #6020 )
2026-07-26 15:10:19 +02:00
models_bone_socket.png
bone socket tutorial ( #3833 )
2024-02-26 10:30:22 +01:00
models_box_collisions.c
Updated examples short description
2025-08-26 00:32:24 +02:00
models_box_collisions.png
Reorganize examples folder
2017-04-04 01:54:49 +02:00
models_cubicmap_rendering.c
REXM: Updated examples after some renames
2025-09-08 21:01:59 +02:00
models_cubicmap_rendering.png
REXM: RENAME: example: models_cubicmap --> models_cubicmap_rendering
2025-09-08 20:30:07 +02:00
models_decals.c
[examples] Several fixes and improvements ( #6042 )
2026-08-07 21:30:27 +02:00
models_decals.png
examples_model_decals : Fixed unload crash, added buttons ( #5306 )
2025-10-26 18:15:45 +01:00
models_directional_billboard.c
Updated examples versions, validated with REXM
2026-03-16 17:19:27 +01:00
models_directional_billboard.png
[examples] Added: directional billboard ( #5351 )
2025-11-13 23:10:13 +01:00
models_first_person_maze.c
Update models_first_person_maze.c
2026-01-17 20:15:48 +01:00
models_first_person_maze.png
new example: models_first_person_maze -WIP-
2019-04-23 23:28:11 +02:00
models_geometric_shapes.c
Updated examples short description
2025-08-26 00:32:24 +02:00
models_geometric_shapes.png
Add DrawCapsule(Wires) ( #2761 )
2022-10-17 11:36:53 +02:00
models_heightmap_rendering.c
REXM: Updated examples after some renames
2025-09-08 21:01:59 +02:00
models_heightmap_rendering.png
REXM: RENAME: example: models_heightmap --> models_heightmap_rendering
2025-09-08 20:29:53 +02:00
models_loading.c
WARNING: BREAKING: REDESIGNED: **Animation System** #4606
2026-02-24 01:18:57 +01:00
models_loading.png
REDESIGNED: models_obj_loading > models_loading
2019-09-12 16:25:14 +02:00
models_loading_gltf.c
WARNING: BREAKING: REDESIGNED: **Animation System** #4606
2026-02-24 01:18:57 +01:00
models_loading_gltf.png
WARNING: BREAKING: REDESIGNED: **Animation System** #4606
2026-02-24 01:18:57 +01:00
models_loading_iqm.c
[examples] Several fixes and improvements ( #6042 )
2026-08-07 21:30:27 +02:00
models_loading_iqm.png
WARNING: BREAKING: REDESIGNED: **Animation System** #4606
2026-02-24 01:18:57 +01:00
models_loading_m3d.c
Fix various warnings when building in VC2022 ( #6020 )
2026-07-26 15:10:19 +02:00
models_loading_m3d.png
WARNING: BREAKING: REDESIGNED: **Animation System** #4606
2026-02-24 01:18:57 +01:00
models_loading_vox.c
WARNING: BREAKING: REDESIGNED: **Animation System** #4606
2026-02-24 01:18:57 +01:00
models_loading_vox.png
WARNING: BREAKING: REDESIGNED: **Animation System** #4606
2026-02-24 01:18:57 +01:00
models_mesh_generation.c
REVIEWED: Examples section comments, for better organization and consistency
2025-09-03 10:40:31 +02:00
models_mesh_generation.png
Add screenshot
2017-10-17 11:52:01 +02:00
models_mesh_picking.c
fix unnecessary warnings in some files ( #5152 )
2025-08-28 22:28:56 +02:00
models_mesh_picking.png
Reviewed models and examples
2018-06-30 20:02:32 +02:00
models_orthographic_projection.c
Updated examples init window title
2025-08-26 00:36:32 +02:00
models_orthographic_projection.png
Added new example screenshot
2018-06-30 20:01:10 +02:00
models_point_rendering.c
Move DrawModelPoints methods to example - point rendering ( #5697 )
2026-03-26 18:29:05 +01:00
models_point_rendering.png
[rmodels] More performant point cloud rendering with DrawModelPoints() ( #4203 )
2024-08-24 18:42:38 +02:00
models_rlgl_solar_system.c
Update models_rlgl_solar_system.c
2026-03-17 08:12:15 +01:00
models_rlgl_solar_system.png
WARNING: BIG rewrite of rlgl module
2018-12-11 18:54:48 +01:00
models_rotating_cube.c
Update examples version to latest raylib 6.0
2026-03-16 17:03:02 +01:00
models_rotating_cube.png
REXM: RENAME: example: models_geometry_textures_cube --> models_rotating_cube
2025-10-17 12:33:41 +02:00
models_skybox_rendering.c
Remove trailing spaces
2026-03-25 16:51:02 +01:00
models_skybox_rendering.png
REXM: RENAME: example: models_skybox --> models_skybox_rendering
2025-09-03 18:48:20 +02:00
models_tesseract_view.c
Update examples version to latest raylib 6.0
2026-03-16 17:03:02 +01:00
models_tesseract_view.png
ADDED: example: models_tesseract
2025-01-12 16:19:32 +01:00
models_textured_cube.c
REXM: Updated examples after some renames
2025-09-08 21:01:59 +02:00
models_textured_cube.png
REXM: RENAME: example: models_draw_cube_texture --> models_textured_cube
2025-09-08 20:35:37 +02:00
models_waving_cubes.c
Refactor int to float missing parse ( #5503 )
2026-01-24 21:53:22 +01:00
models_waving_cubes.png
Added waving cubes example
2019-06-05 10:35:20 +02:00
models_yaw_pitch_roll.c
Remove trailing spaces
2026-03-25 16:51:02 +01:00
models_yaw_pitch_roll.png
Updated example assets
2021-03-19 22:39:39 +01:00
raygui.h
Update raygui
2026-07-31 13:48:34 +02:00
rlights.h
REVIEWED: Code sections description for consistency
2025-09-02 12:34:04 +02:00