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

Support for PushMatrix and PopMatrix #171

Closed
nvlled opened this issue Mar 17, 2022 · 4 comments
Closed

Support for PushMatrix and PopMatrix #171

nvlled opened this issue Mar 17, 2022 · 4 comments

Comments

@nvlled
Copy link

nvlled commented Mar 17, 2022

It doesn't look like rlPushMatrix(), rlPopMatrix(), and rlLoadIdentity() are supported yet. Let me see if I can add it myself.

@gen2brain
Copy link
Owner

Only functions from the public raylib.h API are implemented and nothing from low-level APIs. That is something that is changing a lot, it is not only a matter of implementing but also later maintaining them.

@nvlled
Copy link
Author

nvlled commented Mar 18, 2022

rlPushMatrix and others are defined in rlgl.h, and rlgl.go already uses rlgl.h, so it's only a matter of adding wrapper functions for them. The functions might be low-level, but they are fundamental part of the API. I can't even do something basic like drawing a rotated cube without them. Lots of raylib examples also uses these functions, so it's not like they are internal API that shouldn't be exported. Omitting them makes the binding rather incomplete IMO.

@gen2brain
Copy link
Owner

@nvlled, @Technerder added some support here #186. If one of you can actually make it work, and you add all rl* functions, together with some useful 3rd party examples I may reconsider and add such functions to the repo.

@gen2brain
Copy link
Owner

Implementation and example are added to the repo.

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

2 participants