longlene / cl-raylib

Common Lisp binding of raylib
MIT License
145 stars 23 forks source link

Functions that require pointers signal error #3

Closed compufox closed 2 years ago

compufox commented 3 years ago

I could be doing this wrong (I'm new to ffi programming) but when I try and call a function like update-camera or draw-triangle-fan with the appropriate struct (camera3d and vector2 respectfully) the function signals an error saying that the struct is not a pointer.

When trying various ways to get a pointer for the object I get errors as well.

Unsure if this is a bug, or my misunderstanding, but I figured an issue wouldn't hurt.

Thank you for your work!

longlene commented 3 years ago

ok, I encounter the same problem with update-camera and still no way to use struct and pointer to struct at the same time. Maybe implement update-camera in pure Lisp is a way?

longlene commented 2 years ago

I'll close the issue as camera related API should be usable now.