mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
16 lines
360 B
Python
16 lines
360 B
Python
import json
|
|
from c_bind import Library, set_linalg_converter
|
|
|
|
with open('../3rd/raylib/parser/output/raylib_api.json') as f:
|
|
data = json.load(f)
|
|
|
|
lib = Library.from_raylib(data)
|
|
set_linalg_converter('Vector2', 'vec2')
|
|
set_linalg_converter('Vector3', 'vec3')
|
|
|
|
lib.build(
|
|
includes=['raylib.h'],
|
|
glue_dir='../src',
|
|
stub_dir='../include/typings'
|
|
)
|