Comments (2)
Sorry for that.
As the raylib library use the struct and pointer to the struct at the same time, some APIs may not work as expected.
Those APIs may be could be rewrote with Common Lisp. I'll try it when I have time.
from cl-raylib.
The issue here might just be that the bones
and bind-pose
members are declared as structs CL but they are pointers in the C struct. The code is likely just reading invalid memory.
;;
;;// Model, meshes, materials and animation data
;;typedef struct Model {
;; Matrix transform; // Local transform matrix
;;
;; int meshCount; // Number of meshes
;; int materialCount; // Number of materials
;; Mesh *meshes; // Meshes array
;; Material *materials; // Materials array
;; int *meshMaterial; // Mesh material number
;;
;; // Animation data
;; int boneCount; // Number of bones
;; BoneInfo *bones; // Bones information (skeleton)
;; Transform *bindPose; // Bones base transformation (pose)
;;} Model;
(defcstruct (%model :class model-type)
"Model type"
(transform (:struct %matrix))
(mesh-count :int)
(material-count :int)
(meshes (:pointer (:struct %mesh)))
(materials (:pointer (:struct %material)))
(mesh-material (:pointer :int))
(bone-count :int)
(bones (:struct %bone-info))
(bind-pose (:struct %transform)))
from cl-raylib.
Related Issues (20)
- Have you managed to compile this for the web? HOT 4
- Generate bindings via `cl-autowrap` HOT 15
- Information on camera update HOT 4
- Memory fault with struct passed by value HOT 3
- Camera first person and third person constants are not defined correctly in raylib.lisp HOT 2
- Update raylib's BINDINGS.md file HOT 2
- Add to quicklisp HOT 2
- `load-render-texture` causes a type error about `SB-SYS:SYSTEM-AREA-POINTER` HOT 3
- Supporting Vector and Matrix operations HOT 1
- Support for `raygui` HOT 12
- core_world_screen example fails to place text correctly HOT 2
- audio_sound_loading.lisp makes no sound HOT 3
- Efficient handling of RGBA translation HOT 3
- Consider adding finalizers to resource heavy objects
- Tests failed HOT 1
- why draw-rectangle takes arguments of type integers instead of float? HOT 1
- cl-raylib support load-texture? HOT 2
- Why you deleted a constants?
- Couldn't execute "gcc": The system cannot find the file specified HOT 1
- Can you please write this in "cl-raylib", i could not get a working version of it? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cl-raylib.