twn_api.json: add draw_camera_unproject()
This commit is contained in:
parent
923cd81571
commit
dbf9599fe5
@ -251,6 +251,29 @@
|
||||
"restriction": "parameters"
|
||||
},
|
||||
|
||||
"draw_camera_unproject": {
|
||||
"module": "draw",
|
||||
"symbol": "camera_unproject",
|
||||
"header": "twn_draw.h",
|
||||
"params": [
|
||||
{ "name": "point", "type": "Vec2", "default": { "x": 0, "y": 0 } },
|
||||
{ "name": "position", "type": "Vec3", "default": { "x": 0, "y": 0, "z": 0 } },
|
||||
{ "name": "direction", "type": "Vec3", "default": { "x": 0, "y": 0, "z": -1 } },
|
||||
{ "name": "up", "type": "Vec3", "default": { "x": 0, "y": 1, "z": 0 } },
|
||||
{ "name": "fov", "type": "float", "default": 1.57079632679 },
|
||||
{ "name": "zoom", "type": "float", "default": 1 },
|
||||
{ "name": "draw_distance", "type": "float", "default": 100 }
|
||||
],
|
||||
"return": {
|
||||
"fields": [
|
||||
{ "name": "position", "type": "Vec3" },
|
||||
{ "name": "direction", "type": "Vec3" }
|
||||
],
|
||||
"c_type": "DrawCameraUnprojectResult"
|
||||
},
|
||||
"restriction": "parameters"
|
||||
},
|
||||
|
||||
"draw_skybox": {
|
||||
"module": "draw",
|
||||
"symbol": "skybox",
|
||||
|
Loading…
Reference in New Issue
Block a user