Browse Source

fix(examples): tell user how to run example

pull/5483/head
Max 👨🏽‍💻 Coplan 1 month ago
parent
commit
fb560b7728
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      examples/models/models_animation_playing.c

+ 4
- 0
examples/models/models_animation_playing.c View File

@ -52,6 +52,10 @@ int main(void)
// Load animation data
int animsCount = 0;
ModelAnimation *anims = LoadModelAnimations("resources/models/iqm/guyanim.iqm", &animsCount);
if (anims==0) {
TraceLog(LOG_ERROR, "Failed to load animations. You must run this example from the `examples/models` folder");
return -1;
}
int animFrameCounter = 0;
DisableCursor(); // Catch cursor

Loading…
Cancel
Save