raylib-rs
raylib-rs copied to clipboard
RaylibHandle and other, &self only instead of &mut self
(I´m Rust noob so bear with me)
Any particular reason to make Raylib functions be &mut self instead of &self, since it didn´t have any state ?
I found it easier to extends RaylibDraw functionality when its only &self (experimented changing the source, and it worked fine for me )
Two reasons. 1) So you can't use those functions in two separate threads. 2) So you know which functions mutate the underlying raylib state.