bindgen.sjson (885B)
1 // See README.md in root of repository for documentation and more configuration options. 2 3 inputs = [ 4 "input" 5 ] 6 7 output_folder = "box2d" 8 remove_type_prefix = "b2" 9 remove_function_prefix = "b2" 10 remove_macro_prefix = "B2_" 11 required_prefix = "b2" 12 import_lib = "box2d.lib" 13 package_name = "box2d" 14 15 struct_field_overrides = { 16 "b2DynamicTree.nodes" = "[^]" 17 "b2ChainDef.points" = "[^]" 18 "b2ChainDef.materials" = "[^]" 19 20 // This is not a complete override list, it's just an example. 21 } 22 23 procedure_type_overrides = { 24 "b2CreateWorld.def" = "#by_ptr" 25 "b2CreateBody.def" = "#by_ptr" 26 "b2CreatePolygonShape.def" = "#by_ptr" 27 "b2CreatePolygonShape.polygon" = "#by_ptr" 28 "b2CreateCircleShape.def" = "#by_ptr" 29 "b2CreateCircleShape.circle" = "#by_ptr" 30 31 // This is not a complete override list, it's just an example. 32 } 33 34 remove_macros = [ 35 "B2_API", 36 "B2_BREAKPOINT", 37 "B2_DEFAULT_MASK_BITS" 38 ]