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

impl DerefMut for RaylibDrawHandle #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

manen
Copy link

@manen manen commented Jan 30, 2025

hello, i've been working on a side project for a couple of months now and i keep running into issues where some of the functions i need to use are only implemented for RaylibHandle, but i'm in the draw loop and the current handle is a RaylibDrawHandle.

i don't know if there's a safety reason behind not allowing DerefMut from &mut RaylibDrawHandle to &mut RaylibHandle, but if not then i think this change prevents unnecessary ffi calls.

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

Successfully merging this pull request may close these issues.

1 participant