electronstudio / raylib-python-cffi

Python CFFI bindings for Raylib
http://electronstudio.github.io/raylib-python-cffi
Eclipse Public License 2.0
142 stars 29 forks source link

Added pyray stub #42

Closed Guilherme32 closed 2 years ago

Guilherme32 commented 2 years ago

This is the updated version I talked about. I also couldn't find a way to use the arguments names, so I created fake ones based on the types, trying to somewhat mimic the way the static cffi binding did.

electronstudio commented 2 years ago

Thanks for the code, I have added docstrings.

I think if we are making a totally fake 'struct' class, then we may as well make a fake class for every different kind of struct, so this is what I've done now: https://github.com/electronstudio/raylib-python-cffi/blob/13ca8d2ae8f4cc3c45fc7b99f15eea47ead78a2e/raylib/pyray.pyi#L2610

Guilherme32 commented 2 years ago

Nice! Since you already uploaded the stub, I will close the pull request. Happy to have helped!