Richard Smith
11c5b1a728
use typedefs when constructing structs
2025-05-27 14:53:20 +01:00
Richard Smith
bf6d5d421c
fix how regex inserts underscore in function names with '2d' and '3d' ( #149 )
2024-11-19 12:24:58 +00:00
Richard Smith
0ea3f1b3f6
pyray return more useful errors when types are wrong
2024-07-01 14:20:57 +01:00
Richard Smith
edfd75af8d
Optimisation ( #127 )
2024-07-01 11:06:56 +01:00
Richard Smith
2875e28322
remove dependency on inflection per @sDos280 suggestion to speed up pygbag WASM loading, https://github.com/electronstudio/raylib-python-cffi/issues/58
2024-03-03 12:48:29 +00:00
Richard Smith
3744686f7b
throw helpful errors when params supplied are not ctype pointers ( #122 )
2024-03-03 11:48:09 +00:00
Richard Smith
33dce4ecfd
Improve struct creation helper methods by auto converting arguments: ( #119 )
...
* None to ffi.NULL
* array and ndarray to buffer, and keep weakref so it doesn't get GCed
This makes it possible to create Mesh structs without too much faffing.
2024-03-03 11:45:09 +00:00
richard
81590eb815
automate conversion of lists of strings https://github.com/electronstudio/raylib-python-cffi/discussions/98
2022-10-18 10:33:37 +01:00
richard
2c233d47fa
reformat fix https://github.com/electronstudio/raylib-python-cffi/issues/90
2022-09-23 20:11:59 +01:00
richard
3e011b329a
update to raylib 4.2
2022-08-11 21:58:54 +01:00
richard
6aaf3bb391
autoconvert None to ffi.NULL
2022-07-23 02:22:49 +01:00
richard
7394f79da5
add some legacy #defines
2022-06-23 17:18:22 +01:00
richard
10d983008f
fix for pypy
2022-05-20 07:05:38 +01:00
richard
2c752b5ad0
remove all the ints from the pyray hints and docs. (leave them in pyray itself for backwards compability) add proper enums to pyray and to pyray hints/docs (generated from raylib.json). TODO: raygui, rlgl, maybe something for the C API. See issue #52
2022-02-04 12:14:03 +00:00
richard
ed018b2b77
pyray: if function arg requires pointer and is given a pointer, don't try to create a pointer. if given a python primitive(float/int/bool), create an FFI float/int/bool and use pointer to it. https://github.com/electronstudio/raylib-python-cffi/issues/57
2022-02-02 20:32:12 +00:00
richard
c784857527
return empty string for null pointers https://github.com/electronstudio/raylib-python-cffi/issues/51
2021-11-12 00:34:43 +00:00
richard
1b8598fa55
automatically convert char* function return type to string https://github.com/electronstudio/raylib-python-cffi/issues/51
2021-11-06 17:59:47 +00:00
richard
ec752bdab7
refactor pyray into separate module
2021-10-08 04:47:58 +01:00