hack stub files because enum from Physac isn't recognised by raylib header parser

This commit is contained in:
Richard Smith 2025-05-27 19:54:53 +01:00
parent 11c5b1a728
commit f551fca1f3
6 changed files with 6 additions and 0 deletions

View file

@ -35,3 +35,4 @@ print("""from enum import IntEnum
process("raylib.json")
process("raygui.json")
process("glfw3.json")
process("physac.json")

View file

@ -83,6 +83,7 @@ from warnings import deprecated
import _cffi_backend # type: ignore
ffi: _cffi_backend.FFI
PhysicsShapeType = int
""")
# These words can be used for c arg names, but not in python

View file

@ -74,6 +74,7 @@ import _cffi_backend # type: ignore
ffi: _cffi_backend.FFI
rl: _cffi_backend.Lib
PhysicsShapeType = int
class struct: ...

View file

@ -4,6 +4,7 @@ import _cffi_backend # type: ignore
ffi: _cffi_backend.FFI
rl: _cffi_backend.Lib
PhysicsShapeType = int
class struct: ...

View file

@ -908,6 +908,7 @@ from warnings import deprecated
import _cffi_backend # type: ignore
ffi: _cffi_backend.FFI
PhysicsShapeType = int
def attach_audio_mixed_processor(processor: Any,) -> None:
"""Attach audio stream processor to the entire audio pipeline, receives the samples as 'float'."""

View file

@ -4,6 +4,7 @@ import _cffi_backend # type: ignore
ffi: _cffi_backend.FFI
rl: _cffi_backend.Lib
PhysicsShapeType = int
class struct: ...