janet-lang / jaylib

Janet bindings to Raylib
MIT License
137 stars 36 forks source link

Implementation of RModel functions #45

Closed m-r-hunt closed 1 year ago

m-r-hunt commented 1 year ago

Added all the functions listed in the "rmodel" section of the cheatsheet/api.txt. Fixed up api.txt for those sections where it has drifted from the version of raylib currently being used.

There are 1 or 2 remaining things from rmodel that are missing because the version of raylib being used is not up to date.

Notes on types used: Raylib Matrices correspond to 16-element indexed types in Janet. Raylib Materials, Meshes, Models, and ModelAnimations are abstract types in Janet. Raylib Bounding boxes are [min-vec3 max-vec3] Rayliv RayCollisions are tables with keys corresponding to raylib properties like {:hit bool :distance number :point vec3 :normal vec3}

Feedback welcome, please let me know anything that could be improved.