FlorianRhiem / pyGLFW

Python bindings for GLFW
MIT License
232 stars 36 forks source link

Support for C-Style functions #19

Closed Zuzu-Typ closed 6 years ago

Zuzu-Typ commented 6 years ago

This is my attempt at implementing #18.

I ran into a couple of problems in the process:

EDIT I didn't mention this anywhere, but _raise_glfw_errors_as_exceptions checks if glfw.ERROR_REPORTING and glfw.GLFW.GLFW_ERROR_REPORTING are True, meaning it won't raise an exception if either of them are set to False.

Best regards, --Zuzu_Typ--

Zuzu-Typ commented 6 years ago

Updated to pyGLFW 1.6

FlorianRhiem commented 6 years ago

I have merged your code locally and fixed a few issues. I've pushed it into a new feature branch for now, as there's a problem with the idea of automatically pythonifying the names: it breaks code analysis.

I think I will write a script for generating the pythonic module instead of doing the conversion at runtime. Not as elegant, but I want to keep code completion, etc. I will merge the feature branch into master when that's done.

Thank you for the suggestion and your help in porting the names!