Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions that require pointers signal error #3

Closed
compufox opened this issue Nov 2, 2020 · 3 comments
Closed

Functions that require pointers signal error #3

compufox opened this issue Nov 2, 2020 · 3 comments

Comments

@compufox
Copy link
Contributor

compufox commented Nov 2, 2020

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
Copy link
Owner

longlene commented Nov 3, 2020

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
Copy link
Owner

longlene commented Aug 7, 2022

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

@longlene longlene closed this as completed Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@longlene @compufox and others