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

Access to CORE and other "internals" #14

Open
simendsjo opened this issue Feb 17, 2025 · 2 comments
Open

Access to CORE and other "internals" #14

simendsjo opened this issue Feb 17, 2025 · 2 comments

Comments

@simendsjo
Copy link

I would like to supply my own begin-drawing/end-drawing functions, but I need access to the global state CORE and some functions which is not wrapped. I guess wrapping other functions is trivial, but how should I add CORE?

@bohonghuang
Copy link
Owner

This is discouraged by Raylib, as CoreData is defined in rcore.c, making this difficult to achieve without modifying rcore.c, even if you use C/C++. Generally, RLGL provides most low-level functions for your needs.

@simendsjo
Copy link
Author

Looks like I can use BeginDrawing without issues. It use CORE.Window.screenScale which isn't available.
EndDrawing only update CORE.Time, so it might not be an issue if I skip it...? I haven't searched where the timings is used, but if it's only in drawing (and fps rendering) it doesn't matter. I'll give it a shot.

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