cmbruns / pyopenxr

Unofficial python bindings for OpenXR access to VR and AR devices
Apache License 2.0
103 stars 8 forks source link

Remove Api.NATIVE_PYTHON #9

Closed cmbruns closed 2 years ago

cmbruns commented 2 years ago

this was an ill considered hack. A particular Type might have these three api names: C: "uint32_t" ctypes: "c_uint32" python: "int"

cmbruns commented 2 years ago

Examples:

symbol kind C CTypes Python
primitive type uint32_t c_uint32 int
struct type XrInstance Instance Instance

C symbols are what is found in the original C header files. CTypes symbols are used in the raw direct ctypes function definitions. Python symbols are used in type annotation for pythonic function parameter and return values.