FlorianRhiem / pyGLFW

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

Better support for Vulkan types #11

Open FlorianRhiem opened 8 years ago

FlorianRhiem commented 8 years ago

The GLFW API uses the Vulkan types VkInstance, VkPhysicalDevice, VkAllocationCallbacks, VkSurfaceKHR and VkResult. pyGLFW wraps these types using ctypes.c_void_p (except for VkResult, which is wrapped as a ctypes.c_int). To make these Vulkan types more easily usable, the corresponding types from Python Vulkan wrappers should be supported.

FlorianRhiem commented 4 years ago

To support realitix/vulkan, pyGLFW 1.12.0 automatically converts CFFI pointers to ctypes.c_void_p for Vulkan objects. An example of using this wrapper with pyGLFW can be found in their repo.