@defold-typescript/types 0.52.0 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-signatures.json +2074 -1964
- package/dist/cli-runtime.js +8966 -0
- package/dist/identity-vocabulary.json +660 -0
- package/dist/src/index.d.ts +18 -0
- package/examples/translations.json +15 -15
- package/fixtures/defold-1.12.4/b2d_body_doc.json +1327 -0
- package/fixtures/defold-1.12.4/b2d_doc.json +107 -0
- package/fixtures/defold-1.12.4/base_doc.json +758 -0
- package/fixtures/defold-1.12.4/bit_doc.json +404 -0
- package/fixtures/defold-1.12.4/buffer_doc.json +422 -0
- package/fixtures/defold-1.12.4/camera_doc.json +664 -0
- package/fixtures/defold-1.12.4/collectionfactory_doc.json +219 -0
- package/fixtures/defold-1.12.4/collectionproxy_doc.json +289 -0
- package/fixtures/defold-1.12.4/coroutine_doc.json +151 -0
- package/fixtures/defold-1.12.4/crash_doc.json +497 -0
- package/fixtures/defold-1.12.4/debug_doc.json +410 -0
- package/fixtures/defold-1.12.4/factory_doc.json +219 -0
- package/fixtures/defold-1.12.4/font_doc.json +141 -0
- package/fixtures/defold-1.12.4/globals_doc.json +42 -0
- package/fixtures/defold-1.12.4/go-instance-functions.json +111 -0
- package/fixtures/defold-1.12.4/go_doc.json +1901 -0
- package/fixtures/defold-1.12.4/graphics_doc.json +1634 -0
- package/fixtures/defold-1.12.4/gui_doc.json +5249 -0
- package/fixtures/defold-1.12.4/html5_doc.json +64 -0
- package/fixtures/defold-1.12.4/http_doc.json +66 -0
- package/fixtures/defold-1.12.4/image_doc.json +170 -0
- package/fixtures/defold-1.12.4/io_doc.json +399 -0
- package/fixtures/defold-1.12.4/json_doc.json +97 -0
- package/fixtures/defold-1.12.4/label_doc.json +220 -0
- package/fixtures/defold-1.12.4/liveupdate_doc.json +308 -0
- package/fixtures/defold-1.12.4/math_doc.json +702 -0
- package/fixtures/defold-1.12.4/messages_doc.json +579 -0
- package/fixtures/defold-1.12.4/model_doc.json +315 -0
- package/fixtures/defold-1.12.4/msg_doc.json +137 -0
- package/fixtures/defold-1.12.4/os_doc.json +266 -0
- package/fixtures/defold-1.12.4/package_doc.json +139 -0
- package/fixtures/defold-1.12.4/particlefx_doc.json +249 -0
- package/fixtures/defold-1.12.4/physics_doc.json +1120 -0
- package/fixtures/defold-1.12.4/profiler_doc.json +375 -0
- package/fixtures/defold-1.12.4/render_doc.json +1167 -0
- package/fixtures/defold-1.12.4/resource_doc.json +762 -0
- package/fixtures/defold-1.12.4/socket_doc.json +2194 -0
- package/fixtures/defold-1.12.4/sound_doc.json +582 -0
- package/fixtures/defold-1.12.4/sprite_doc.json +245 -0
- package/fixtures/defold-1.12.4/string_doc.json +412 -0
- package/fixtures/defold-1.12.4/sys_doc.json +853 -0
- package/fixtures/defold-1.12.4/table_doc.json +166 -0
- package/fixtures/defold-1.12.4/tilemap_doc.json +374 -0
- package/fixtures/defold-1.12.4/timer_doc.json +153 -0
- package/fixtures/defold-1.12.4/types_doc.json +212 -0
- package/fixtures/defold-1.12.4/vmath_doc.json +1814 -0
- package/fixtures/defold-1.12.4/window_doc.json +388 -0
- package/fixtures/defold-1.12.4/zlib_doc.json +70 -0
- package/fixtures/defold-1.13.0/b2d_body_doc.json +2428 -0
- package/fixtures/defold-1.13.0/b2d_chain_doc.json +394 -0
- package/fixtures/defold-1.13.0/b2d_doc.json +128 -0
- package/fixtures/defold-1.13.0/b2d_fixture_doc.json +594 -0
- package/fixtures/defold-1.13.0/b2d_joint_doc.json +3315 -0
- package/fixtures/defold-1.13.0/b2d_shape_doc.json +802 -0
- package/fixtures/defold-1.13.0/b2d_world_doc.json +1314 -0
- package/fixtures/defold-1.13.0/base_doc.json +758 -0
- package/fixtures/defold-1.13.0/bit_doc.json +404 -0
- package/fixtures/defold-1.13.0/buffer_doc.json +422 -0
- package/fixtures/defold-1.13.0/camera_doc.json +900 -0
- package/fixtures/defold-1.13.0/collectionfactory_doc.json +219 -0
- package/fixtures/defold-1.13.0/collectionproxy_doc.json +289 -0
- package/fixtures/defold-1.13.0/compute_doc.json +182 -0
- package/fixtures/defold-1.13.0/coroutine_doc.json +151 -0
- package/fixtures/defold-1.13.0/crash_doc.json +497 -0
- package/fixtures/defold-1.13.0/debug_doc.json +410 -0
- package/fixtures/defold-1.13.0/editor_doc.json +3665 -0
- package/fixtures/defold-1.13.0/editor_http_doc.json +273 -0
- package/fixtures/defold-1.13.0/editor_json_doc.json +59 -0
- package/fixtures/defold-1.13.0/editor_localization_doc.json +138 -0
- package/fixtures/defold-1.13.0/editor_pprint_doc.json +36 -0
- package/fixtures/defold-1.13.0/editor_tilemap_tiles_doc.json +235 -0
- package/fixtures/defold-1.13.0/editor_zip_doc.json +163 -0
- package/fixtures/defold-1.13.0/editor_zlib_doc.json +48 -0
- package/fixtures/defold-1.13.0/factory_doc.json +219 -0
- package/fixtures/defold-1.13.0/font_doc.json +141 -0
- package/fixtures/defold-1.13.0/globals_doc.json +42 -0
- package/fixtures/defold-1.13.0/go-instance-functions.json +101 -0
- package/fixtures/defold-1.13.0/go_doc.json +1989 -0
- package/fixtures/defold-1.13.0/graphics_doc.json +1886 -0
- package/fixtures/defold-1.13.0/gui_doc.json +5277 -0
- package/fixtures/defold-1.13.0/html5_doc.json +64 -0
- package/fixtures/defold-1.13.0/http_doc.json +66 -0
- package/fixtures/defold-1.13.0/image_doc.json +170 -0
- package/fixtures/defold-1.13.0/import-manifest.json +10558 -0
- package/fixtures/defold-1.13.0/io_doc.json +399 -0
- package/fixtures/defold-1.13.0/json_doc.json +97 -0
- package/fixtures/defold-1.13.0/label_doc.json +220 -0
- package/fixtures/defold-1.13.0/liveupdate_doc.json +330 -0
- package/fixtures/defold-1.13.0/material_doc.json +238 -0
- package/fixtures/defold-1.13.0/math_doc.json +702 -0
- package/fixtures/defold-1.13.0/model_doc.json +412 -0
- package/fixtures/defold-1.13.0/msg_doc.json +137 -0
- package/fixtures/defold-1.13.0/os_doc.json +266 -0
- package/fixtures/defold-1.13.0/package_doc.json +139 -0
- package/fixtures/defold-1.13.0/particlefx_doc.json +249 -0
- package/fixtures/defold-1.13.0/physics_doc.json +1492 -0
- package/fixtures/defold-1.13.0/profiler_doc.json +375 -0
- package/fixtures/defold-1.13.0/render_doc.json +1381 -0
- package/fixtures/defold-1.13.0/resource_doc.json +762 -0
- package/fixtures/defold-1.13.0/socket_doc.json +2194 -0
- package/fixtures/defold-1.13.0/sound_doc.json +582 -0
- package/fixtures/defold-1.13.0/sprite_doc.json +335 -0
- package/fixtures/defold-1.13.0/string_doc.json +412 -0
- package/fixtures/defold-1.13.0/sys_doc.json +1142 -0
- package/fixtures/defold-1.13.0/table_doc.json +166 -0
- package/fixtures/defold-1.13.0/tilemap_doc.json +402 -0
- package/fixtures/defold-1.13.0/timer_doc.json +153 -0
- package/fixtures/defold-1.13.0/types_doc.json +212 -0
- package/fixtures/defold-1.13.0/vmath_doc.json +1814 -0
- package/fixtures/defold-1.13.0/window_doc.json +388 -0
- package/fixtures/defold-1.13.0/zlib_doc.json +70 -0
- package/fixtures/defold-1.13.1/b2d_body_doc.json +2428 -0
- package/fixtures/defold-1.13.1/b2d_chain_doc.json +394 -0
- package/fixtures/defold-1.13.1/b2d_doc.json +128 -0
- package/fixtures/defold-1.13.1/b2d_fixture_doc.json +594 -0
- package/fixtures/defold-1.13.1/b2d_joint_doc.json +3315 -0
- package/fixtures/defold-1.13.1/b2d_shape_doc.json +802 -0
- package/fixtures/defold-1.13.1/b2d_world_doc.json +1314 -0
- package/fixtures/defold-1.13.1/base_doc.json +758 -0
- package/fixtures/defold-1.13.1/bit_doc.json +404 -0
- package/fixtures/defold-1.13.1/buffer_doc.json +422 -0
- package/fixtures/defold-1.13.1/camera_doc.json +900 -0
- package/fixtures/defold-1.13.1/collectionfactory_doc.json +219 -0
- package/fixtures/defold-1.13.1/collectionproxy_doc.json +323 -0
- package/fixtures/defold-1.13.1/compute_doc.json +182 -0
- package/fixtures/defold-1.13.1/coroutine_doc.json +151 -0
- package/fixtures/defold-1.13.1/crash_doc.json +497 -0
- package/fixtures/defold-1.13.1/debug_doc.json +410 -0
- package/fixtures/defold-1.13.1/editor_doc.json +3880 -0
- package/fixtures/defold-1.13.1/editor_http_doc.json +273 -0
- package/fixtures/defold-1.13.1/editor_image_doc.json +128 -0
- package/fixtures/defold-1.13.1/editor_json_doc.json +59 -0
- package/fixtures/defold-1.13.1/editor_localization_doc.json +138 -0
- package/fixtures/defold-1.13.1/editor_pprint_doc.json +36 -0
- package/fixtures/defold-1.13.1/editor_tilemap_tiles_doc.json +235 -0
- package/fixtures/defold-1.13.1/editor_zip_doc.json +163 -0
- package/fixtures/defold-1.13.1/editor_zlib_doc.json +48 -0
- package/fixtures/defold-1.13.1/factory_doc.json +219 -0
- package/fixtures/defold-1.13.1/font_doc.json +141 -0
- package/fixtures/defold-1.13.1/globals_doc.json +42 -0
- package/fixtures/defold-1.13.1/go-instance-functions.json +102 -0
- package/fixtures/defold-1.13.1/go_doc.json +1989 -0
- package/fixtures/defold-1.13.1/graphics_doc.json +1886 -0
- package/fixtures/defold-1.13.1/gui_doc.json +5277 -0
- package/fixtures/defold-1.13.1/html5_doc.json +64 -0
- package/fixtures/defold-1.13.1/http_doc.json +66 -0
- package/fixtures/defold-1.13.1/image_doc.json +170 -0
- package/fixtures/defold-1.13.1/import-manifest.json +10091 -0
- package/fixtures/defold-1.13.1/io_doc.json +399 -0
- package/fixtures/defold-1.13.1/json_doc.json +97 -0
- package/fixtures/defold-1.13.1/label_doc.json +220 -0
- package/fixtures/defold-1.13.1/liveupdate_doc.json +330 -0
- package/fixtures/defold-1.13.1/material_doc.json +238 -0
- package/fixtures/defold-1.13.1/math_doc.json +702 -0
- package/fixtures/defold-1.13.1/model_doc.json +412 -0
- package/fixtures/defold-1.13.1/msg_doc.json +137 -0
- package/fixtures/defold-1.13.1/os_doc.json +266 -0
- package/fixtures/defold-1.13.1/package_doc.json +139 -0
- package/fixtures/defold-1.13.1/particlefx_doc.json +249 -0
- package/fixtures/defold-1.13.1/physics_doc.json +1492 -0
- package/fixtures/defold-1.13.1/profiler_doc.json +375 -0
- package/fixtures/defold-1.13.1/render_doc.json +1381 -0
- package/fixtures/defold-1.13.1/resource_doc.json +762 -0
- package/fixtures/defold-1.13.1/socket_doc.json +2194 -0
- package/fixtures/defold-1.13.1/sound_doc.json +582 -0
- package/fixtures/defold-1.13.1/sprite_doc.json +335 -0
- package/fixtures/defold-1.13.1/string_doc.json +412 -0
- package/fixtures/defold-1.13.1/sys_doc.json +1142 -0
- package/fixtures/defold-1.13.1/table_doc.json +166 -0
- package/fixtures/defold-1.13.1/tilemap_doc.json +402 -0
- package/fixtures/defold-1.13.1/timer_doc.json +153 -0
- package/fixtures/defold-1.13.1/types_doc.json +212 -0
- package/fixtures/defold-1.13.1/vmath_doc.json +1814 -0
- package/fixtures/defold-1.13.1/window_doc.json +388 -0
- package/fixtures/defold-1.13.1/zlib_doc.json +70 -0
- package/fixtures/defold-1.13.2/b2d_body_doc.json +2359 -0
- package/fixtures/defold-1.13.2/b2d_chain_doc.json +395 -0
- package/fixtures/defold-1.13.2/b2d_doc.json +1945 -0
- package/fixtures/defold-1.13.2/b2d_fixture_doc.json +595 -0
- package/fixtures/defold-1.13.2/b2d_joint_doc.json +3178 -0
- package/fixtures/defold-1.13.2/b2d_shape_doc.json +767 -0
- package/fixtures/defold-1.13.2/b2d_world_doc.json +1315 -0
- package/fixtures/defold-1.13.2/base_doc.json +759 -0
- package/fixtures/defold-1.13.2/bit_doc.json +405 -0
- package/fixtures/defold-1.13.2/buffer_doc.json +393 -0
- package/fixtures/defold-1.13.2/bullet3d_collision_object_doc.json +1206 -0
- package/fixtures/defold-1.13.2/bullet3d_constraint_doc.json +2455 -0
- package/fixtures/defold-1.13.2/bullet3d_doc.json +215 -0
- package/fixtures/defold-1.13.2/bullet3d_rigid_body_doc.json +1376 -0
- package/fixtures/defold-1.13.2/bullet3d_shape_doc.json +430 -0
- package/fixtures/defold-1.13.2/bullet3d_world_doc.json +855 -0
- package/fixtures/defold-1.13.2/camera_doc.json +887 -0
- package/fixtures/defold-1.13.2/collectionfactory_doc.json +206 -0
- package/fixtures/defold-1.13.2/collectionproxy_doc.json +397 -0
- package/fixtures/defold-1.13.2/compute_doc.json +183 -0
- package/fixtures/defold-1.13.2/coroutine_doc.json +152 -0
- package/fixtures/defold-1.13.2/crash_doc.json +483 -0
- package/fixtures/defold-1.13.2/debug_doc.json +411 -0
- package/fixtures/defold-1.13.2/editor_doc.json +6320 -0
- package/fixtures/defold-1.13.2/editor_http_doc.json +476 -0
- package/fixtures/defold-1.13.2/editor_image_doc.json +129 -0
- package/fixtures/defold-1.13.2/editor_json_doc.json +81 -0
- package/fixtures/defold-1.13.2/editor_localization_doc.json +139 -0
- package/fixtures/defold-1.13.2/editor_pprint_doc.json +37 -0
- package/fixtures/defold-1.13.2/editor_tilemap_tiles_doc.json +292 -0
- package/fixtures/defold-1.13.2/editor_zip_doc.json +237 -0
- package/fixtures/defold-1.13.2/editor_zlib_doc.json +49 -0
- package/fixtures/defold-1.13.2/factory_doc.json +206 -0
- package/fixtures/defold-1.13.2/font_doc.json +230 -0
- package/fixtures/defold-1.13.2/globals_doc.json +64 -0
- package/fixtures/defold-1.13.2/go-instance-functions.json +106 -0
- package/fixtures/defold-1.13.2/go_doc.json +1789 -0
- package/fixtures/defold-1.13.2/graphics_doc.json +1211 -0
- package/fixtures/defold-1.13.2/gui_doc.json +4735 -0
- package/fixtures/defold-1.13.2/html5_doc.json +65 -0
- package/fixtures/defold-1.13.2/http_doc.json +174 -0
- package/fixtures/defold-1.13.2/image_doc.json +298 -0
- package/fixtures/defold-1.13.2/import-manifest.json +10902 -0
- package/fixtures/defold-1.13.2/io_doc.json +400 -0
- package/fixtures/defold-1.13.2/json_doc.json +140 -0
- package/fixtures/defold-1.13.2/label_doc.json +427 -0
- package/fixtures/defold-1.13.2/liveupdate_doc.json +221 -0
- package/fixtures/defold-1.13.2/material_doc.json +773 -0
- package/fixtures/defold-1.13.2/math_doc.json +703 -0
- package/fixtures/defold-1.13.2/model_doc.json +472 -0
- package/fixtures/defold-1.13.2/msg_doc.json +169 -0
- package/fixtures/defold-1.13.2/os_doc.json +269 -0
- package/fixtures/defold-1.13.2/package_doc.json +140 -0
- package/fixtures/defold-1.13.2/particlefx_doc.json +249 -0
- package/fixtures/defold-1.13.2/physics_doc.json +1624 -0
- package/fixtures/defold-1.13.2/profiler_doc.json +348 -0
- package/fixtures/defold-1.13.2/render_doc.json +1623 -0
- package/fixtures/defold-1.13.2/resource_doc.json +1539 -0
- package/fixtures/defold-1.13.2/socket_doc.json +2335 -0
- package/fixtures/defold-1.13.2/sound_doc.json +673 -0
- package/fixtures/defold-1.13.2/sprite_doc.json +364 -0
- package/fixtures/defold-1.13.2/string_doc.json +413 -0
- package/fixtures/defold-1.13.2/sys_doc.json +1347 -0
- package/fixtures/defold-1.13.2/table_doc.json +167 -0
- package/fixtures/defold-1.13.2/tilemap_doc.json +369 -0
- package/fixtures/defold-1.13.2/timer_doc.json +214 -0
- package/fixtures/defold-1.13.2/types_doc.json +213 -0
- package/fixtures/defold-1.13.2/vmath_doc.json +2056 -0
- package/fixtures/defold-1.13.2/window_doc.json +426 -0
- package/fixtures/defold-1.13.2/zlib_doc.json +71 -0
- package/fixtures/defold-1.14.0/b2d_body_doc.json +2359 -0
- package/fixtures/defold-1.14.0/b2d_chain_doc.json +395 -0
- package/fixtures/defold-1.14.0/b2d_doc.json +1973 -0
- package/fixtures/defold-1.14.0/b2d_fixture_doc.json +595 -0
- package/fixtures/defold-1.14.0/b2d_joint_doc.json +3178 -0
- package/fixtures/defold-1.14.0/b2d_shape_doc.json +767 -0
- package/fixtures/defold-1.14.0/b2d_world_doc.json +1315 -0
- package/fixtures/defold-1.14.0/base_doc.json +759 -0
- package/fixtures/defold-1.14.0/bit_doc.json +405 -0
- package/fixtures/defold-1.14.0/buffer_doc.json +393 -0
- package/fixtures/defold-1.14.0/bullet3d_collision_object_doc.json +1206 -0
- package/fixtures/defold-1.14.0/bullet3d_constraint_doc.json +2455 -0
- package/fixtures/defold-1.14.0/bullet3d_doc.json +243 -0
- package/fixtures/defold-1.14.0/bullet3d_rigid_body_doc.json +1376 -0
- package/fixtures/defold-1.14.0/bullet3d_shape_doc.json +430 -0
- package/fixtures/defold-1.14.0/bullet3d_world_doc.json +855 -0
- package/fixtures/defold-1.14.0/camera_doc.json +887 -0
- package/fixtures/defold-1.14.0/collectionfactory_doc.json +206 -0
- package/fixtures/defold-1.14.0/collectionproxy_doc.json +397 -0
- package/fixtures/defold-1.14.0/compute_doc.json +183 -0
- package/fixtures/defold-1.14.0/coroutine_doc.json +152 -0
- package/fixtures/defold-1.14.0/crash_doc.json +483 -0
- package/fixtures/defold-1.14.0/debug_doc.json +411 -0
- package/fixtures/defold-1.14.0/editor_doc.json +6320 -0
- package/fixtures/defold-1.14.0/editor_http_doc.json +476 -0
- package/fixtures/defold-1.14.0/editor_image_doc.json +129 -0
- package/fixtures/defold-1.14.0/editor_json_doc.json +81 -0
- package/fixtures/defold-1.14.0/editor_localization_doc.json +139 -0
- package/fixtures/defold-1.14.0/editor_pprint_doc.json +37 -0
- package/fixtures/defold-1.14.0/editor_tilemap_tiles_doc.json +292 -0
- package/fixtures/defold-1.14.0/editor_zip_doc.json +237 -0
- package/fixtures/defold-1.14.0/editor_zlib_doc.json +49 -0
- package/fixtures/defold-1.14.0/factory_doc.json +206 -0
- package/fixtures/defold-1.14.0/font_doc.json +230 -0
- package/fixtures/defold-1.14.0/globals_doc.json +64 -0
- package/fixtures/defold-1.14.0/go-instance-functions.json +106 -0
- package/fixtures/defold-1.14.0/go_doc.json +1789 -0
- package/fixtures/defold-1.14.0/graphics_doc.json +1257 -0
- package/fixtures/defold-1.14.0/gui_doc.json +4735 -0
- package/fixtures/defold-1.14.0/html5_doc.json +65 -0
- package/fixtures/defold-1.14.0/http_doc.json +174 -0
- package/fixtures/defold-1.14.0/image_doc.json +298 -0
- package/fixtures/defold-1.14.0/import-manifest.json +10260 -0
- package/fixtures/defold-1.14.0/io_doc.json +400 -0
- package/fixtures/defold-1.14.0/json_doc.json +140 -0
- package/fixtures/defold-1.14.0/label_doc.json +427 -0
- package/fixtures/defold-1.14.0/liveupdate_doc.json +221 -0
- package/fixtures/defold-1.14.0/material_doc.json +773 -0
- package/fixtures/defold-1.14.0/math_doc.json +703 -0
- package/fixtures/defold-1.14.0/model_doc.json +472 -0
- package/fixtures/defold-1.14.0/msg_doc.json +169 -0
- package/fixtures/defold-1.14.0/os_doc.json +269 -0
- package/fixtures/defold-1.14.0/package_doc.json +140 -0
- package/fixtures/defold-1.14.0/particlefx_doc.json +249 -0
- package/fixtures/defold-1.14.0/physics_doc.json +1624 -0
- package/fixtures/defold-1.14.0/profiler_doc.json +348 -0
- package/fixtures/defold-1.14.0/render_doc.json +1628 -0
- package/fixtures/defold-1.14.0/resource_doc.json +1539 -0
- package/fixtures/defold-1.14.0/socket_doc.json +2335 -0
- package/fixtures/defold-1.14.0/sound_doc.json +673 -0
- package/fixtures/defold-1.14.0/sprite_doc.json +364 -0
- package/fixtures/defold-1.14.0/string_doc.json +413 -0
- package/fixtures/defold-1.14.0/sys_doc.json +1347 -0
- package/fixtures/defold-1.14.0/table_doc.json +167 -0
- package/fixtures/defold-1.14.0/tilemap_doc.json +369 -0
- package/fixtures/defold-1.14.0/timer_doc.json +214 -0
- package/fixtures/defold-1.14.0/types_doc.json +213 -0
- package/fixtures/defold-1.14.0/vmath_doc.json +2056 -0
- package/fixtures/defold-1.14.0/window_doc.json +426 -0
- package/fixtures/defold-1.14.0/zlib_doc.json +71 -0
- package/generated/b2d.d.ts +39 -39
- package/generated/b2d_body.d.ts +11 -11
- package/generated/b2d_chain.d.ts +3 -3
- package/generated/b2d_fixture.d.ts +5 -5
- package/generated/b2d_joint.d.ts +29 -29
- package/generated/b2d_shape.d.ts +13 -13
- package/generated/b2d_world.d.ts +15 -15
- package/generated/buffer.d.ts +5 -6
- package/generated/bullet3d.d.ts +6 -6
- package/generated/bullet3d_collision_object.d.ts +9 -9
- package/generated/bullet3d_constraint.d.ts +78 -78
- package/generated/bullet3d_rigid_body.d.ts +3 -3
- package/generated/bullet3d_shape.d.ts +11 -11
- package/generated/bullet3d_world.d.ts +20 -20
- package/generated/camera.d.ts +4 -4
- package/generated/collectionfactory.d.ts +2 -3
- package/generated/collectionproxy.d.ts +5 -5
- package/generated/compute.d.ts +5 -5
- package/generated/crash.d.ts +7 -7
- package/generated/editor-vm/http.d.ts +13 -13
- package/generated/editor-vm/image.d.ts +4 -4
- package/generated/editor-vm/json.d.ts +1 -1
- package/generated/editor-vm/tilemap_tiles.d.ts +9 -9
- package/generated/editor-vm/zip.d.ts +4 -4
- package/generated/editor.d.ts +183 -183
- package/generated/factory.d.ts +2 -3
- package/generated/font.d.ts +4 -4
- package/generated/go.d.ts +10 -12
- package/generated/graphics.d.ts +23 -26
- package/generated/gui.d.ts +44 -58
- package/generated/http.d.ts +2 -2
- package/generated/image.d.ts +12 -12
- package/generated/json.d.ts +4 -4
- package/generated/label.d.ts +5 -5
- package/generated/liveupdate.d.ts +3 -3
- package/generated/material.d.ts +48 -48
- package/generated/model.d.ts +46 -14
- package/generated/particlefx.d.ts +5 -5
- package/generated/physics.d.ts +19 -19
- package/generated/profiler.d.ts +3 -5
- package/generated/render-script-modules/b2d.d.ts +39 -39
- package/generated/render-script-modules/bullet3d.d.ts +5 -5
- package/generated/render-script-modules/collectionfactory.d.ts +1 -2
- package/generated/render-script-modules/collectionproxy.d.ts +3 -3
- package/generated/render-script-modules/factory.d.ts +1 -2
- package/generated/render-script-modules/go.d.ts +8 -10
- package/generated/render-script-modules/label.d.ts +2 -2
- package/generated/render-script-modules/model.d.ts +43 -11
- package/generated/render-script-modules/particlefx.d.ts +3 -3
- package/generated/render-script-modules/physics.d.ts +12 -12
- package/generated/render-script-modules/resource.d.ts +52 -53
- package/generated/render-script-modules/sound.d.ts +4 -4
- package/generated/render-script-modules/sprite.d.ts +2 -2
- package/generated/render-script-modules/tilemap.d.ts +2 -2
- package/generated/render.d.ts +44 -45
- package/generated/resource.d.ts +58 -59
- package/generated/socket.d.ts +18 -23
- package/generated/sound.d.ts +6 -6
- package/generated/sprite.d.ts +3 -3
- package/generated/sys.d.ts +20 -21
- package/generated/tilemap.d.ts +3 -3
- package/generated/timer.d.ts +3 -3
- package/generated/versions/defold-1.12.4/b2d.d.ts +2 -2
- package/generated/versions/defold-1.12.4/b2d_body.d.ts +2 -2
- package/generated/versions/defold-1.12.4/go.d.ts +2 -2
- package/generated/versions/defold-1.12.4/graphics.d.ts +1 -1
- package/generated/versions/defold-1.12.4/gui.d.ts +18 -19
- package/generated/versions/defold-1.12.4/label.d.ts +1 -1
- package/generated/versions/defold-1.12.4/model.d.ts +42 -10
- package/generated/versions/defold-1.12.4/particlefx.d.ts +1 -1
- package/generated/versions/defold-1.12.4/physics.d.ts +1 -1
- package/generated/versions/defold-1.12.4/render.d.ts +5 -5
- package/generated/versions/defold-1.12.4/resource.d.ts +8 -8
- package/generated/versions/defold-1.12.4/socket.d.ts +12 -12
- package/generated/versions/defold-1.12.4/sound.d.ts +1 -1
- package/generated/versions/defold-1.12.4/sprite.d.ts +1 -1
- package/generated/versions/defold-1.12.4/sys.d.ts +2 -2
- package/generated/versions/defold-1.12.4/tilemap.d.ts +1 -1
- package/generated/versions/defold-1.12.4/window.d.ts +3 -4
- package/generated/versions/defold-1.13.0/b2d.d.ts +2 -2
- package/generated/versions/defold-1.13.0/b2d_body.d.ts +2 -2
- package/generated/versions/defold-1.13.0/b2d_chain.d.ts +1 -1
- package/generated/versions/defold-1.13.0/b2d_joint.d.ts +1 -1
- package/generated/versions/defold-1.13.0/b2d_shape.d.ts +1 -1
- package/generated/versions/defold-1.13.0/camera.d.ts +1 -1
- package/generated/versions/defold-1.13.0/go.d.ts +2 -2
- package/generated/versions/defold-1.13.0/graphics.d.ts +1 -1
- package/generated/versions/defold-1.13.0/gui.d.ts +18 -19
- package/generated/versions/defold-1.13.0/label.d.ts +1 -1
- package/generated/versions/defold-1.13.0/model.d.ts +42 -10
- package/generated/versions/defold-1.13.0/particlefx.d.ts +1 -1
- package/generated/versions/defold-1.13.0/physics.d.ts +1 -1
- package/generated/versions/defold-1.13.0/render.d.ts +5 -5
- package/generated/versions/defold-1.13.0/resource.d.ts +8 -8
- package/generated/versions/defold-1.13.0/socket.d.ts +12 -12
- package/generated/versions/defold-1.13.0/sound.d.ts +1 -1
- package/generated/versions/defold-1.13.0/sprite.d.ts +1 -1
- package/generated/versions/defold-1.13.0/sys.d.ts +2 -2
- package/generated/versions/defold-1.13.0/tilemap.d.ts +1 -1
- package/generated/versions/defold-1.13.0/window.d.ts +3 -4
- package/generated/versions/defold-1.13.1/b2d.d.ts +2 -2
- package/generated/versions/defold-1.13.1/b2d_body.d.ts +2 -2
- package/generated/versions/defold-1.13.1/b2d_chain.d.ts +1 -1
- package/generated/versions/defold-1.13.1/b2d_joint.d.ts +1 -1
- package/generated/versions/defold-1.13.1/b2d_shape.d.ts +1 -1
- package/generated/versions/defold-1.13.1/camera.d.ts +1 -1
- package/generated/versions/defold-1.13.1/go.d.ts +2 -2
- package/generated/versions/defold-1.13.1/graphics.d.ts +1 -1
- package/generated/versions/defold-1.13.1/gui.d.ts +18 -19
- package/generated/versions/defold-1.13.1/label.d.ts +1 -1
- package/generated/versions/defold-1.13.1/model.d.ts +42 -10
- package/generated/versions/defold-1.13.1/particlefx.d.ts +1 -1
- package/generated/versions/defold-1.13.1/physics.d.ts +1 -1
- package/generated/versions/defold-1.13.1/render.d.ts +5 -5
- package/generated/versions/defold-1.13.1/resource.d.ts +8 -8
- package/generated/versions/defold-1.13.1/socket.d.ts +12 -12
- package/generated/versions/defold-1.13.1/sound.d.ts +1 -1
- package/generated/versions/defold-1.13.1/sprite.d.ts +1 -1
- package/generated/versions/defold-1.13.1/sys.d.ts +2 -2
- package/generated/versions/defold-1.13.1/tilemap.d.ts +1 -1
- package/generated/versions/defold-1.13.1/window.d.ts +3 -4
- package/generated/versions/defold-1.13.2/b2d.d.ts +39 -39
- package/generated/versions/defold-1.13.2/b2d_body.d.ts +11 -11
- package/generated/versions/defold-1.13.2/b2d_chain.d.ts +3 -3
- package/generated/versions/defold-1.13.2/b2d_fixture.d.ts +5 -5
- package/generated/versions/defold-1.13.2/b2d_joint.d.ts +29 -29
- package/generated/versions/defold-1.13.2/b2d_shape.d.ts +13 -13
- package/generated/versions/defold-1.13.2/b2d_world.d.ts +15 -15
- package/generated/versions/defold-1.13.2/buffer.d.ts +5 -6
- package/generated/versions/defold-1.13.2/bullet3d.d.ts +6 -6
- package/generated/versions/defold-1.13.2/bullet3d_collision_object.d.ts +9 -9
- package/generated/versions/defold-1.13.2/bullet3d_constraint.d.ts +78 -78
- package/generated/versions/defold-1.13.2/bullet3d_rigid_body.d.ts +3 -3
- package/generated/versions/defold-1.13.2/bullet3d_shape.d.ts +11 -11
- package/generated/versions/defold-1.13.2/bullet3d_world.d.ts +20 -20
- package/generated/versions/defold-1.13.2/camera.d.ts +4 -4
- package/generated/versions/defold-1.13.2/collectionfactory.d.ts +2 -3
- package/generated/versions/defold-1.13.2/collectionproxy.d.ts +5 -5
- package/generated/versions/defold-1.13.2/compute.d.ts +5 -5
- package/generated/versions/defold-1.13.2/crash.d.ts +7 -7
- package/generated/versions/defold-1.13.2/editor-vm/http.d.ts +13 -13
- package/generated/versions/defold-1.13.2/editor-vm/image.d.ts +4 -4
- package/generated/versions/defold-1.13.2/editor-vm/json.d.ts +1 -1
- package/generated/versions/defold-1.13.2/editor-vm/tilemap_tiles.d.ts +9 -9
- package/generated/versions/defold-1.13.2/editor-vm/zip.d.ts +4 -4
- package/generated/versions/defold-1.13.2/editor.d.ts +183 -183
- package/generated/versions/defold-1.13.2/factory.d.ts +2 -3
- package/generated/versions/defold-1.13.2/font.d.ts +4 -4
- package/generated/versions/defold-1.13.2/go.d.ts +10 -12
- package/generated/versions/defold-1.13.2/graphics.d.ts +22 -25
- package/generated/versions/defold-1.13.2/gui.d.ts +44 -58
- package/generated/versions/defold-1.13.2/http.d.ts +2 -2
- package/generated/versions/defold-1.13.2/image.d.ts +12 -12
- package/generated/versions/defold-1.13.2/json.d.ts +4 -4
- package/generated/versions/defold-1.13.2/label.d.ts +5 -5
- package/generated/versions/defold-1.13.2/liveupdate.d.ts +3 -3
- package/generated/versions/defold-1.13.2/material.d.ts +48 -48
- package/generated/versions/defold-1.13.2/model.d.ts +46 -14
- package/generated/versions/defold-1.13.2/particlefx.d.ts +5 -5
- package/generated/versions/defold-1.13.2/physics.d.ts +19 -19
- package/generated/versions/defold-1.13.2/profiler.d.ts +3 -5
- package/generated/versions/defold-1.13.2/render.d.ts +43 -44
- package/generated/versions/defold-1.13.2/resource.d.ts +58 -59
- package/generated/versions/defold-1.13.2/socket.d.ts +18 -23
- package/generated/versions/defold-1.13.2/sound.d.ts +6 -6
- package/generated/versions/defold-1.13.2/sprite.d.ts +3 -3
- package/generated/versions/defold-1.13.2/sys.d.ts +20 -21
- package/generated/versions/defold-1.13.2/tilemap.d.ts +3 -3
- package/generated/versions/defold-1.13.2/timer.d.ts +3 -3
- package/generated/versions/defold-1.13.2/vmath.d.ts +0 -1
- package/generated/versions/defold-1.13.2/window.d.ts +8 -10
- package/generated/vmath.d.ts +0 -1
- package/generated/window.d.ts +8 -10
- package/identity-vocabulary.json +41 -34
- package/package.json +13 -5
- package/scripts/cli-runtime.ts +18 -0
- package/scripts/example-store-io.ts +2 -2
- package/scripts/extension-goldens.ts +9 -5
- package/scripts/generate-api-availability.ts +10 -4
- package/scripts/generate-api-signatures.ts +1 -1
- package/scripts/import-defold-release.ts +1 -1
- package/scripts/regen.ts +35 -9
- package/scripts/shared-handle-methods.ts +3 -2
- package/scripts/signature-store-fs.ts +37 -17
- package/scripts/sync-api-docs.ts +127 -20
- package/src/api-doc.ts +19 -4
- package/src/api-identity.ts +32 -1
- package/src/component-properties.d.ts +8 -8
- package/src/core-types.ts +29 -13
- package/src/doc-corrections.ts +9 -0
- package/src/emit-dts.ts +770 -214
- package/src/engine-type-name.ts +33 -0
- package/src/go-overloads.d.ts +10 -10
- package/src/gui-overloads.d.ts +11 -11
- package/src/index-slot-classifications.ts +75 -9
- package/src/index.ts +4 -1
- package/src/lifecycle.ts +2 -2
- package/src/publish-dts.ts +16 -0
- package/src/script-api.ts +36 -38
- package/src/socket-types.d.ts +3 -3
- package/src/library-index-slot-classifications.ts +0 -332
|
@@ -0,0 +1,773 @@
|
|
|
1
|
+
{
|
|
2
|
+
"elements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "ENUM",
|
|
5
|
+
"name": "material.CONSTANT_TYPE",
|
|
6
|
+
"brief": "Material constant types",
|
|
7
|
+
"description": "Material constant types",
|
|
8
|
+
"returnvalues": [],
|
|
9
|
+
"parameters": [],
|
|
10
|
+
"examples": "",
|
|
11
|
+
"replaces": "",
|
|
12
|
+
"error": "",
|
|
13
|
+
"tparams": [],
|
|
14
|
+
"members": [
|
|
15
|
+
{
|
|
16
|
+
"name": "material.CONSTANT_TYPE_USER",
|
|
17
|
+
"doc": "User vector constant.",
|
|
18
|
+
"type": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "material.CONSTANT_TYPE_USER_COLOR",
|
|
22
|
+
"doc": "User color constant.",
|
|
23
|
+
"type": ""
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "material.CONSTANT_TYPE_USER_MATRIX4",
|
|
27
|
+
"doc": "User matrix constant.",
|
|
28
|
+
"type": ""
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "material.CONSTANT_TYPE_VIEWPROJ",
|
|
32
|
+
"doc": "View-projection matrix constant.",
|
|
33
|
+
"type": ""
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "material.CONSTANT_TYPE_WORLD",
|
|
37
|
+
"doc": "World matrix constant.",
|
|
38
|
+
"type": ""
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "material.CONSTANT_TYPE_TEXTURE",
|
|
42
|
+
"doc": "Texture matrix constant.",
|
|
43
|
+
"type": ""
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "material.CONSTANT_TYPE_VIEW",
|
|
47
|
+
"doc": "View matrix constant.",
|
|
48
|
+
"type": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "material.CONSTANT_TYPE_PROJECTION",
|
|
52
|
+
"doc": "Projection matrix constant.",
|
|
53
|
+
"type": ""
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "material.CONSTANT_TYPE_NORMAL",
|
|
57
|
+
"doc": "Normal matrix constant.",
|
|
58
|
+
"type": ""
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "material.CONSTANT_TYPE_WORLDVIEW",
|
|
62
|
+
"doc": "World-view matrix constant.",
|
|
63
|
+
"type": ""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "material.CONSTANT_TYPE_WORLDVIEWPROJ",
|
|
67
|
+
"doc": "World-view-projection matrix constant.",
|
|
68
|
+
"type": ""
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "material.CONSTANT_TYPE_TIME",
|
|
72
|
+
"doc": "Time constant.",
|
|
73
|
+
"type": ""
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "material.CONSTANT_TYPE_WORLD_INVERSE",
|
|
77
|
+
"doc": "Inverse world matrix constant.",
|
|
78
|
+
"type": ""
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "material.CONSTANT_TYPE_VIEW_INVERSE",
|
|
82
|
+
"doc": "Inverse view matrix constant.",
|
|
83
|
+
"type": ""
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "material.CONSTANT_TYPE_PROJECTION_INVERSE",
|
|
87
|
+
"doc": "Inverse projection matrix constant.",
|
|
88
|
+
"type": ""
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "material.CONSTANT_TYPE_VIEWPROJ_INVERSE",
|
|
92
|
+
"doc": "Inverse view-projection matrix constant.",
|
|
93
|
+
"type": ""
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "material.CONSTANT_TYPE_WORLDVIEW_INVERSE",
|
|
97
|
+
"doc": "Inverse world-view matrix constant.",
|
|
98
|
+
"type": ""
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "material.CONSTANT_TYPE_WORLDVIEWPROJ_INVERSE",
|
|
102
|
+
"doc": "Inverse world-view-projection matrix constant.",
|
|
103
|
+
"type": ""
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"notes": [],
|
|
107
|
+
"language": ""
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"type": "TYPEDEF",
|
|
111
|
+
"name": "material.constant_value",
|
|
112
|
+
"brief": "Material constant value",
|
|
113
|
+
"description": "A value accepted by <a href=\"/ref/material#material.set_constants\">material.set_constants</a> when updating a shader\nconstant. Use a number or vector for user vector constants, a <span class=\"type\">matrix4</span>\nfor matrix constants, and an array to update a shader constant array.",
|
|
114
|
+
"returnvalues": [],
|
|
115
|
+
"parameters": [
|
|
116
|
+
{
|
|
117
|
+
"name": "value",
|
|
118
|
+
"doc": "",
|
|
119
|
+
"types": [
|
|
120
|
+
"number",
|
|
121
|
+
"vector3",
|
|
122
|
+
"vector4",
|
|
123
|
+
"matrix4",
|
|
124
|
+
"(number|vector3|vector4|matrix4)[]"
|
|
125
|
+
],
|
|
126
|
+
"is_optional": "False"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">set_constants</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">material</span><span class=\"p\">,</span> <span class=\"p\">{</span>\n <span class=\"n\">tint</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector4</span><span class=\"p\">(</span><span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mf\">0.5</span><span class=\"p\">,</span> <span class=\"mf\">0.5</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">)</span> <span class=\"p\">},</span>\n <span class=\"n\">weights</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"mf\">0.25</span><span class=\"p\">,</span> <span class=\"mf\">0.5</span><span class=\"p\">,</span> <span class=\"mf\">0.75</span><span class=\"p\">,</span> <span class=\"mi\">1</span> <span class=\"p\">}</span> <span class=\"p\">}</span>\n<span class=\"p\">})</span>\n</code></pre></div>",
|
|
130
|
+
"replaces": "",
|
|
131
|
+
"error": "",
|
|
132
|
+
"tparams": [],
|
|
133
|
+
"members": [],
|
|
134
|
+
"notes": [],
|
|
135
|
+
"language": ""
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "TYPEDEF",
|
|
139
|
+
"name": "material.constant_info_value",
|
|
140
|
+
"brief": "Material constant result value",
|
|
141
|
+
"description": "The value of a user constant returned in a <span class=\"type\">material.constant_info</span>\nentry by <a href=\"/ref/material#material.get_constants\">material.get_constants</a>. A scalar constant is returned as a\n<span class=\"type\">vector4</span> or <span class=\"type\">matrix4</span>; a shader constant array is returned as an\narray of those values. Non-user constants do not include a <code>value</code> field.",
|
|
142
|
+
"returnvalues": [],
|
|
143
|
+
"parameters": [
|
|
144
|
+
{
|
|
145
|
+
"name": "value",
|
|
146
|
+
"doc": "",
|
|
147
|
+
"types": ["vector4", "matrix4", "vector4[]", "matrix4[]"],
|
|
148
|
+
"is_optional": "False"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">for</span> <span class=\"n\">_</span><span class=\"p\">,</span> <span class=\"n\">constant</span> <span class=\"kr\">in</span> <span class=\"nb\">ipairs</span><span class=\"p\">(</span><span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">get_constants</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">material</span><span class=\"p\">))</span> <span class=\"kr\">do</span>\n <span class=\"kr\">if</span> <span class=\"n\">constant</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"kr\">then</span>\n <span class=\"n\">pprint</span><span class=\"p\">(</span><span class=\"n\">constant</span><span class=\"p\">.</span><span class=\"n\">name</span><span class=\"p\">,</span> <span class=\"n\">constant</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">)</span>\n <span class=\"kr\">end</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
152
|
+
"replaces": "",
|
|
153
|
+
"error": "",
|
|
154
|
+
"tparams": [],
|
|
155
|
+
"members": [],
|
|
156
|
+
"notes": [],
|
|
157
|
+
"language": ""
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "TYPEDEF",
|
|
161
|
+
"name": "material.vertex_attribute_value",
|
|
162
|
+
"brief": "Material vertex attribute value",
|
|
163
|
+
"description": "A vertex attribute value accepted by <a href=\"/ref/material#material.set_vertex_attributes\">material.set_vertex_attributes</a>\nand returned by <a href=\"/ref/material#material.get_vertex_attributes\">material.get_vertex_attributes</a>. Use a number or vector\nfor scalar and vector attributes, <span class=\"type\">matrix4</span> for a 4x4 matrix, and a flat\narray of numbers for matrix shapes that do not map to <span class=\"type\">matrix4</span>.",
|
|
164
|
+
"returnvalues": [],
|
|
165
|
+
"parameters": [
|
|
166
|
+
{
|
|
167
|
+
"name": "value",
|
|
168
|
+
"doc": "",
|
|
169
|
+
"types": ["number", "vector3", "vector4", "matrix4", "number[]"],
|
|
170
|
+
"is_optional": "False"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">set_vertex_attributes</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">material</span><span class=\"p\">,</span> <span class=\"p\">{</span>\n <span class=\"n\">tint</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector4</span><span class=\"p\">(</span><span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">)</span> <span class=\"p\">},</span>\n <span class=\"n\">transform_2d</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">1</span> <span class=\"p\">}</span> <span class=\"p\">}</span>\n<span class=\"p\">})</span>\n</code></pre></div>",
|
|
174
|
+
"replaces": "",
|
|
175
|
+
"error": "",
|
|
176
|
+
"tparams": [],
|
|
177
|
+
"members": [],
|
|
178
|
+
"notes": [],
|
|
179
|
+
"language": ""
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"type": "STRUCT",
|
|
183
|
+
"name": "material.sampler_info",
|
|
184
|
+
"brief": "Texture sampler information",
|
|
185
|
+
"description": "Texture sampler information",
|
|
186
|
+
"returnvalues": [],
|
|
187
|
+
"parameters": [],
|
|
188
|
+
"examples": "",
|
|
189
|
+
"replaces": "",
|
|
190
|
+
"error": "",
|
|
191
|
+
"tparams": [],
|
|
192
|
+
"members": [
|
|
193
|
+
{
|
|
194
|
+
"name": "name",
|
|
195
|
+
"doc": "Sampler name.",
|
|
196
|
+
"type": "hash"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "type",
|
|
200
|
+
"doc": "Sampler texture type.",
|
|
201
|
+
"type": "graphics.TEXTURE_TYPE"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "u_wrap",
|
|
205
|
+
"doc": "Horizontal wrap mode.",
|
|
206
|
+
"type": "graphics.TEXTURE_WRAP"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "v_wrap",
|
|
210
|
+
"doc": "Vertical wrap mode.",
|
|
211
|
+
"type": "graphics.TEXTURE_WRAP"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "w_wrap",
|
|
215
|
+
"doc": "Depth wrap mode.",
|
|
216
|
+
"type": "graphics.TEXTURE_WRAP"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "min_filter",
|
|
220
|
+
"doc": "Minification filter.",
|
|
221
|
+
"type": "graphics.TEXTURE_FILTER"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "mag_filter",
|
|
225
|
+
"doc": "Magnification filter.",
|
|
226
|
+
"type": "graphics.TEXTURE_FILTER"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "max_anisotropy",
|
|
230
|
+
"doc": "Maximum anisotropy.",
|
|
231
|
+
"type": "number"
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"notes": [],
|
|
235
|
+
"language": ""
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"type": "STRUCT",
|
|
239
|
+
"name": "material.sampler_options",
|
|
240
|
+
"brief": "Texture sampler update",
|
|
241
|
+
"description": "Texture sampler update",
|
|
242
|
+
"returnvalues": [],
|
|
243
|
+
"parameters": [],
|
|
244
|
+
"examples": "",
|
|
245
|
+
"replaces": "",
|
|
246
|
+
"error": "",
|
|
247
|
+
"tparams": [],
|
|
248
|
+
"members": [
|
|
249
|
+
{
|
|
250
|
+
"name": "u_wrap?",
|
|
251
|
+
"doc": "Horizontal wrap mode.",
|
|
252
|
+
"type": "graphics.TEXTURE_WRAP"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "v_wrap?",
|
|
256
|
+
"doc": "Vertical wrap mode.",
|
|
257
|
+
"type": "graphics.TEXTURE_WRAP"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "w_wrap?",
|
|
261
|
+
"doc": "Depth wrap mode.",
|
|
262
|
+
"type": "graphics.TEXTURE_WRAP"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "min_filter?",
|
|
266
|
+
"doc": "Minification filter.",
|
|
267
|
+
"type": "graphics.TEXTURE_FILTER"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "mag_filter?",
|
|
271
|
+
"doc": "Magnification filter.",
|
|
272
|
+
"type": "graphics.TEXTURE_FILTER"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "max_anisotropy?",
|
|
276
|
+
"doc": "Maximum anisotropy.",
|
|
277
|
+
"type": "number"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"notes": [],
|
|
281
|
+
"language": ""
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"type": "STRUCT",
|
|
285
|
+
"name": "material.constant_info",
|
|
286
|
+
"brief": "Shader constant information",
|
|
287
|
+
"description": "Shader constant information",
|
|
288
|
+
"returnvalues": [],
|
|
289
|
+
"parameters": [],
|
|
290
|
+
"examples": "",
|
|
291
|
+
"replaces": "",
|
|
292
|
+
"error": "",
|
|
293
|
+
"tparams": [],
|
|
294
|
+
"members": [
|
|
295
|
+
{
|
|
296
|
+
"name": "name",
|
|
297
|
+
"doc": "Constant name.",
|
|
298
|
+
"type": "hash"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "type",
|
|
302
|
+
"doc": "Constant type.",
|
|
303
|
+
"type": "material.CONSTANT_TYPE"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "value?",
|
|
307
|
+
"doc": "Constant value or values. Present for user constants.",
|
|
308
|
+
"type": "material.constant_info_value"
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"notes": [],
|
|
312
|
+
"language": ""
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"type": "STRUCT",
|
|
316
|
+
"name": "material.constant_options",
|
|
317
|
+
"brief": "Shader constant update",
|
|
318
|
+
"description": "Shader constant update",
|
|
319
|
+
"returnvalues": [],
|
|
320
|
+
"parameters": [],
|
|
321
|
+
"examples": "",
|
|
322
|
+
"replaces": "",
|
|
323
|
+
"error": "",
|
|
324
|
+
"tparams": [],
|
|
325
|
+
"members": [
|
|
326
|
+
{
|
|
327
|
+
"name": "type?",
|
|
328
|
+
"doc": "Constant type.",
|
|
329
|
+
"type": "material.CONSTANT_TYPE"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "value?",
|
|
333
|
+
"doc": "Constant value or values.",
|
|
334
|
+
"type": "material.constant_value"
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"notes": [],
|
|
338
|
+
"language": ""
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"type": "STRUCT",
|
|
342
|
+
"name": "material.texture_info",
|
|
343
|
+
"brief": "Texture information",
|
|
344
|
+
"description": "Texture information",
|
|
345
|
+
"returnvalues": [],
|
|
346
|
+
"parameters": [],
|
|
347
|
+
"examples": "",
|
|
348
|
+
"replaces": "",
|
|
349
|
+
"error": "",
|
|
350
|
+
"tparams": [],
|
|
351
|
+
"members": [
|
|
352
|
+
{
|
|
353
|
+
"name": "path?",
|
|
354
|
+
"doc": "Texture resource path, if backed by a resource.",
|
|
355
|
+
"type": "hash"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "handle",
|
|
359
|
+
"doc": "Runtime texture handle.",
|
|
360
|
+
"type": "texture"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"name": "width",
|
|
364
|
+
"doc": "Texture width.",
|
|
365
|
+
"type": "integer"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "height",
|
|
369
|
+
"doc": "Texture height.",
|
|
370
|
+
"type": "integer"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "depth",
|
|
374
|
+
"doc": "Texture depth or layer count.",
|
|
375
|
+
"type": "integer"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "page_count",
|
|
379
|
+
"doc": "Texture page count.",
|
|
380
|
+
"type": "integer"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"name": "mipmaps",
|
|
384
|
+
"doc": "Mipmap count.",
|
|
385
|
+
"type": "integer"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"name": "type",
|
|
389
|
+
"doc": "Texture type.",
|
|
390
|
+
"type": "graphics.TEXTURE_TYPE"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"name": "flags",
|
|
394
|
+
"doc": "Texture usage flags.",
|
|
395
|
+
"type": "graphics.TEXTURE_USAGE_FLAG"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"notes": [],
|
|
399
|
+
"language": ""
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"type": "STRUCT",
|
|
403
|
+
"name": "material.vertex_attribute_info",
|
|
404
|
+
"brief": "Material vertex attribute information",
|
|
405
|
+
"description": "Material vertex attribute information",
|
|
406
|
+
"returnvalues": [],
|
|
407
|
+
"parameters": [],
|
|
408
|
+
"examples": "",
|
|
409
|
+
"replaces": "",
|
|
410
|
+
"error": "",
|
|
411
|
+
"tparams": [],
|
|
412
|
+
"members": [
|
|
413
|
+
{
|
|
414
|
+
"name": "name",
|
|
415
|
+
"doc": "Attribute name.",
|
|
416
|
+
"type": "hash"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "value",
|
|
420
|
+
"doc": "Attribute value.",
|
|
421
|
+
"type": "material.vertex_attribute_value"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "normalize",
|
|
425
|
+
"doc": "Whether integer data is normalized.",
|
|
426
|
+
"type": "boolean"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "data_type",
|
|
430
|
+
"doc": "Attribute data type.",
|
|
431
|
+
"type": "graphics.DATA_TYPE"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"name": "coordinate_space",
|
|
435
|
+
"doc": "Attribute coordinate space.",
|
|
436
|
+
"type": "graphics.COORDINATE_SPACE"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"name": "semantic_type",
|
|
440
|
+
"doc": "Attribute semantic.",
|
|
441
|
+
"type": "graphics.SEMANTIC_TYPE"
|
|
442
|
+
}
|
|
443
|
+
],
|
|
444
|
+
"notes": [],
|
|
445
|
+
"language": ""
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"type": "STRUCT",
|
|
449
|
+
"name": "material.vertex_attribute_options",
|
|
450
|
+
"brief": "Material vertex attribute update",
|
|
451
|
+
"description": "Material vertex attribute update",
|
|
452
|
+
"returnvalues": [],
|
|
453
|
+
"parameters": [],
|
|
454
|
+
"examples": "",
|
|
455
|
+
"replaces": "",
|
|
456
|
+
"error": "",
|
|
457
|
+
"tparams": [],
|
|
458
|
+
"members": [
|
|
459
|
+
{
|
|
460
|
+
"name": "value?",
|
|
461
|
+
"doc": "Attribute value.",
|
|
462
|
+
"type": "material.vertex_attribute_value"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "normalize?",
|
|
466
|
+
"doc": "Whether integer data is normalized.",
|
|
467
|
+
"type": "boolean"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"name": "data_type?",
|
|
471
|
+
"doc": "Attribute data type.",
|
|
472
|
+
"type": "graphics.DATA_TYPE"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "coordinate_space?",
|
|
476
|
+
"doc": "Attribute coordinate space.",
|
|
477
|
+
"type": "graphics.COORDINATE_SPACE"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "semantic_type?",
|
|
481
|
+
"doc": "Attribute semantic.",
|
|
482
|
+
"type": "graphics.SEMANTIC_TYPE"
|
|
483
|
+
}
|
|
484
|
+
],
|
|
485
|
+
"notes": [],
|
|
486
|
+
"language": ""
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"type": "STRUCT",
|
|
490
|
+
"name": "material.named_vertex_attribute_options",
|
|
491
|
+
"brief": "Named material vertex attribute update",
|
|
492
|
+
"description": "Named material vertex attribute update",
|
|
493
|
+
"returnvalues": [],
|
|
494
|
+
"parameters": [],
|
|
495
|
+
"examples": "",
|
|
496
|
+
"replaces": "",
|
|
497
|
+
"error": "",
|
|
498
|
+
"tparams": [],
|
|
499
|
+
"members": [
|
|
500
|
+
{
|
|
501
|
+
"name": "name",
|
|
502
|
+
"doc": "Attribute name.",
|
|
503
|
+
"type": "string|hash"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "value?",
|
|
507
|
+
"doc": "Attribute value.",
|
|
508
|
+
"type": "material.vertex_attribute_value"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"name": "normalize?",
|
|
512
|
+
"doc": "Whether integer data is normalized.",
|
|
513
|
+
"type": "boolean"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "data_type?",
|
|
517
|
+
"doc": "Attribute data type.",
|
|
518
|
+
"type": "graphics.DATA_TYPE"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "coordinate_space?",
|
|
522
|
+
"doc": "Attribute coordinate space.",
|
|
523
|
+
"type": "graphics.COORDINATE_SPACE"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "semantic_type?",
|
|
527
|
+
"doc": "Attribute semantic.",
|
|
528
|
+
"type": "graphics.SEMANTIC_TYPE"
|
|
529
|
+
}
|
|
530
|
+
],
|
|
531
|
+
"notes": [],
|
|
532
|
+
"language": ""
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"type": "FUNCTION",
|
|
536
|
+
"name": "material.get_vertex_attributes",
|
|
537
|
+
"brief": "gets vertex attributes from a material",
|
|
538
|
+
"description": "Returns a table of all the vertex attributes in the material. This function will return all the vertex attributes\nthat are used in the vertex shader of the material.",
|
|
539
|
+
"returnvalues": [
|
|
540
|
+
{
|
|
541
|
+
"name": "attributes",
|
|
542
|
+
"doc": "vertex attribute information",
|
|
543
|
+
"types": ["material.vertex_attribute_info[]"]
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
"parameters": [
|
|
547
|
+
{
|
|
548
|
+
"name": "path",
|
|
549
|
+
"doc": "The path to the resource",
|
|
550
|
+
"types": ["hash", "string"],
|
|
551
|
+
"is_optional": "False"
|
|
552
|
+
}
|
|
553
|
+
],
|
|
554
|
+
"examples": "Get the vertex attributes from a material specified as a resource property\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">"my_material"</span><span class=\"p\">,</span> <span class=\"n\">resource</span><span class=\"p\">.</span><span class=\"n\">material</span><span class=\"p\">())</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">vertex_attributes</span> <span class=\"o\">=</span> <span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">get_vertex_attributes</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_material</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
555
|
+
"replaces": "",
|
|
556
|
+
"error": "",
|
|
557
|
+
"tparams": [],
|
|
558
|
+
"members": [],
|
|
559
|
+
"notes": [],
|
|
560
|
+
"language": ""
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"type": "FUNCTION",
|
|
564
|
+
"name": "material.get_samplers",
|
|
565
|
+
"brief": "gets texture samplers from a material",
|
|
566
|
+
"description": "Returns a table of all the texture samplers in the material. This function will return all the texture samplers\nthat are used in both the vertex and the fragment shaders.",
|
|
567
|
+
"returnvalues": [
|
|
568
|
+
{
|
|
569
|
+
"name": "samplers",
|
|
570
|
+
"doc": "texture sampler information",
|
|
571
|
+
"types": ["material.sampler_info[]"]
|
|
572
|
+
}
|
|
573
|
+
],
|
|
574
|
+
"parameters": [
|
|
575
|
+
{
|
|
576
|
+
"name": "path",
|
|
577
|
+
"doc": "The path to the resource",
|
|
578
|
+
"types": ["hash", "string"],
|
|
579
|
+
"is_optional": "False"
|
|
580
|
+
}
|
|
581
|
+
],
|
|
582
|
+
"examples": "Get the texture samplers from a material specified as a resource property\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">"my_material"</span><span class=\"p\">,</span> <span class=\"n\">resource</span><span class=\"p\">.</span><span class=\"n\">material</span><span class=\"p\">())</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">samplers</span> <span class=\"o\">=</span> <span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">get_samplers</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_material</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
583
|
+
"replaces": "",
|
|
584
|
+
"error": "",
|
|
585
|
+
"tparams": [],
|
|
586
|
+
"members": [],
|
|
587
|
+
"notes": [],
|
|
588
|
+
"language": ""
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"type": "FUNCTION",
|
|
592
|
+
"name": "material.get_constants",
|
|
593
|
+
"brief": "gets shader constants from a material",
|
|
594
|
+
"description": "Returns a table of all the shader constants in the material. This function will return all the shader constants\nthat are used in both the vertex and the fragment shaders.",
|
|
595
|
+
"returnvalues": [
|
|
596
|
+
{
|
|
597
|
+
"name": "constants",
|
|
598
|
+
"doc": "Shader constant information.",
|
|
599
|
+
"types": ["material.constant_info[]"]
|
|
600
|
+
}
|
|
601
|
+
],
|
|
602
|
+
"parameters": [
|
|
603
|
+
{
|
|
604
|
+
"name": "path",
|
|
605
|
+
"doc": "The path to the resource",
|
|
606
|
+
"types": ["hash", "string"],
|
|
607
|
+
"is_optional": "False"
|
|
608
|
+
}
|
|
609
|
+
],
|
|
610
|
+
"examples": "Get the shader constants from a material specified as a resource property\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">"my_material"</span><span class=\"p\">,</span> <span class=\"n\">resource</span><span class=\"p\">.</span><span class=\"n\">material</span><span class=\"p\">())</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">constants</span> <span class=\"o\">=</span> <span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">get_constants</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_material</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
611
|
+
"replaces": "",
|
|
612
|
+
"error": "",
|
|
613
|
+
"tparams": [],
|
|
614
|
+
"members": [],
|
|
615
|
+
"notes": [],
|
|
616
|
+
"language": ""
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"type": "FUNCTION",
|
|
620
|
+
"name": "material.get_textures",
|
|
621
|
+
"brief": "gets textures associated with a material",
|
|
622
|
+
"description": "Returns a table of all the textures from the material.",
|
|
623
|
+
"returnvalues": [
|
|
624
|
+
{
|
|
625
|
+
"name": "textures",
|
|
626
|
+
"doc": "material texture information",
|
|
627
|
+
"types": ["material.texture_info[]"]
|
|
628
|
+
}
|
|
629
|
+
],
|
|
630
|
+
"parameters": [
|
|
631
|
+
{
|
|
632
|
+
"name": "path",
|
|
633
|
+
"doc": "The path to the resource",
|
|
634
|
+
"types": ["hash", "string"],
|
|
635
|
+
"is_optional": "False"
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
"examples": "Get the textures from a material specified as a resource property\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">"my_material"</span><span class=\"p\">,</span> <span class=\"n\">resource</span><span class=\"p\">.</span><span class=\"n\">material</span><span class=\"p\">())</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">textures</span> <span class=\"o\">=</span> <span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">get_textures</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_material</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
639
|
+
"replaces": "",
|
|
640
|
+
"error": "",
|
|
641
|
+
"tparams": [],
|
|
642
|
+
"members": [],
|
|
643
|
+
"notes": [],
|
|
644
|
+
"language": ""
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"type": "FUNCTION",
|
|
648
|
+
"name": "material.set_vertex_attributes",
|
|
649
|
+
"brief": "sets vertex attributes in a material",
|
|
650
|
+
"description": "Sets vertex attributes in a material, if the vertex attributes exist.",
|
|
651
|
+
"returnvalues": [],
|
|
652
|
+
"parameters": [
|
|
653
|
+
{
|
|
654
|
+
"name": "path",
|
|
655
|
+
"doc": "The path to the resource",
|
|
656
|
+
"types": ["hash", "string"],
|
|
657
|
+
"is_optional": "False"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"name": "attributes",
|
|
661
|
+
"doc": "Vertex attributes keyed by name, or an array with explicit <code>name</code> fields. Partial updates are supported.",
|
|
662
|
+
"types": [
|
|
663
|
+
"table<string|hash, material.vertex_attribute_options>",
|
|
664
|
+
"material.named_vertex_attribute_options[]"
|
|
665
|
+
],
|
|
666
|
+
"is_optional": "False"
|
|
667
|
+
}
|
|
668
|
+
],
|
|
669
|
+
"examples": "Configures a vertex attribute in a material specified as a resource property\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">"my_material"</span><span class=\"p\">,</span> <span class=\"n\">resource</span><span class=\"p\">.</span><span class=\"n\">material</span><span class=\"p\">())</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">set_vertex_attributes</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_material</span><span class=\"p\">,</span> <span class=\"p\">{</span>\n <span class=\"n\">tint_attribute</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vec4</span><span class=\"p\">(</span><span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">),</span> <span class=\"n\">semantic_type</span> <span class=\"o\">=</span> <span class=\"n\">graphics</span><span class=\"p\">.</span><span class=\"n\">SEMANTIC_TYPE_COLOR</span> <span class=\"p\">},</span>\n <span class=\"n\">weights</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vec4</span><span class=\"p\">(</span><span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">),</span> <span class=\"n\">semantic_type</span> <span class=\"o\">=</span> <span class=\"n\">graphics</span><span class=\"p\">.</span><span class=\"n\">SEMANTIC_TYPE_NONE</span> <span class=\"p\">}</span>\n <span class=\"p\">})</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
670
|
+
"replaces": "",
|
|
671
|
+
"error": "",
|
|
672
|
+
"tparams": [],
|
|
673
|
+
"members": [],
|
|
674
|
+
"notes": [],
|
|
675
|
+
"language": ""
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"type": "FUNCTION",
|
|
679
|
+
"name": "material.set_samplers",
|
|
680
|
+
"brief": "sets texture samplers in a material",
|
|
681
|
+
"description": "Sets texture samplers in a material, if the samplers exist. Use this function to change the settings of texture samplers.\nTo set actual textures that should be bound to the samplers, use the <code>material.set_textures</code> function instead.",
|
|
682
|
+
"returnvalues": [],
|
|
683
|
+
"parameters": [
|
|
684
|
+
{
|
|
685
|
+
"name": "path",
|
|
686
|
+
"doc": "The path to the resource",
|
|
687
|
+
"types": ["hash", "string"],
|
|
688
|
+
"is_optional": "False"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"name": "samplers",
|
|
692
|
+
"doc": "Sampler updates keyed by sampler name. Partial updates are supported.",
|
|
693
|
+
"types": ["table<string|hash, material.sampler_options>"],
|
|
694
|
+
"is_optional": "False"
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
"examples": "Configures a sampler in a material specified as a resource property\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">"my_material"</span><span class=\"p\">,</span> <span class=\"n\">resource</span><span class=\"p\">.</span><span class=\"n\">material</span><span class=\"p\">())</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">set_samplers</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_material</span><span class=\"p\">,</span> <span class=\"p\">{</span>\n <span class=\"n\">texture_sampler</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">u_wrap</span> <span class=\"o\">=</span> <span class=\"n\">graphics</span><span class=\"p\">.</span><span class=\"n\">TEXTURE_WRAP_REPEAT</span><span class=\"p\">,</span> <span class=\"n\">v_wrap</span> <span class=\"o\">=</span> <span class=\"n\">graphics</span><span class=\"p\">.</span><span class=\"n\">TEXTURE_WRAP_MIRRORED_REPEAT</span> <span class=\"p\">}</span>\n <span class=\"p\">})</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
698
|
+
"replaces": "",
|
|
699
|
+
"error": "",
|
|
700
|
+
"tparams": [],
|
|
701
|
+
"members": [],
|
|
702
|
+
"notes": [],
|
|
703
|
+
"language": ""
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"type": "FUNCTION",
|
|
707
|
+
"name": "material.set_constants",
|
|
708
|
+
"brief": "sets shader constants in a material",
|
|
709
|
+
"description": "Sets shader constants in a material, if the constants exist.",
|
|
710
|
+
"returnvalues": [],
|
|
711
|
+
"parameters": [
|
|
712
|
+
{
|
|
713
|
+
"name": "path",
|
|
714
|
+
"doc": "The path to the resource",
|
|
715
|
+
"types": ["hash", "string"],
|
|
716
|
+
"is_optional": "False"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "constants",
|
|
720
|
+
"doc": "Shader constant updates keyed by constant name. Partial updates are supported.",
|
|
721
|
+
"types": ["table<string|hash, material.constant_options>"],
|
|
722
|
+
"is_optional": "False"
|
|
723
|
+
}
|
|
724
|
+
],
|
|
725
|
+
"examples": "Set a shader constant in a material specified as a resource property\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">"my_material"</span><span class=\"p\">,</span> <span class=\"n\">resource</span><span class=\"p\">.</span><span class=\"n\">material</span><span class=\"p\">())</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">update</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"c1\">-- update the 'tint' constant</span>\n <span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">set_constants</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_material</span><span class=\"p\">,</span> <span class=\"p\">{</span>\n <span class=\"n\">tint</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector4</span><span class=\"p\">(</span><span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">1</span><span class=\"p\">)</span> <span class=\"p\">}</span>\n <span class=\"p\">})</span>\n <span class=\"c1\">-- change the type of the 'view_proj' constant to CONSTANT_TYPE_USER_MATRIX4 so the renderer can set our custom data</span>\n <span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">set_constants</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_material</span><span class=\"p\">,</span> <span class=\"p\">{</span>\n <span class=\"n\">view_proj</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_view_proj</span><span class=\"p\">,</span> <span class=\"nb\">type</span> <span class=\"o\">=</span> <span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">CONSTANT_TYPE_USER_MATRIX4</span> <span class=\"p\">}</span>\n <span class=\"p\">})</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
726
|
+
"replaces": "",
|
|
727
|
+
"error": "",
|
|
728
|
+
"tparams": [],
|
|
729
|
+
"members": [],
|
|
730
|
+
"notes": [],
|
|
731
|
+
"language": ""
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"type": "FUNCTION",
|
|
735
|
+
"name": "material.set_textures",
|
|
736
|
+
"brief": "sets textures in a material",
|
|
737
|
+
"description": "Sets textures in a material, if the samplers exist.",
|
|
738
|
+
"returnvalues": [],
|
|
739
|
+
"parameters": [
|
|
740
|
+
{
|
|
741
|
+
"name": "path",
|
|
742
|
+
"doc": "The path to the resource",
|
|
743
|
+
"types": ["hash", "string"],
|
|
744
|
+
"is_optional": "False"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"name": "textures",
|
|
748
|
+
"doc": "A table keyed by sampler name with texture resources as values.",
|
|
749
|
+
"types": ["table<string|hash, string|hash>"],
|
|
750
|
+
"is_optional": "False"
|
|
751
|
+
}
|
|
752
|
+
],
|
|
753
|
+
"examples": "Set a texture in a material from a resource\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">"my_material"</span><span class=\"p\">,</span> <span class=\"n\">resource</span><span class=\"p\">.</span><span class=\"n\">material</span><span class=\"p\">())</span>\n<span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">property</span><span class=\"p\">(</span><span class=\"s2\">"my_texture"</span><span class=\"p\">,</span> <span class=\"n\">resource</span><span class=\"p\">.</span><span class=\"n\">texture</span><span class=\"p\">())</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"n\">material</span><span class=\"p\">.</span><span class=\"n\">set_textures</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_material</span><span class=\"p\">,</span> <span class=\"p\">{</span>\n <span class=\"n\">my_texture</span> <span class=\"o\">=</span> <span class=\"n\">self</span><span class=\"p\">.</span><span class=\"n\">my_texture</span>\n <span class=\"p\">})</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
754
|
+
"replaces": "",
|
|
755
|
+
"error": "",
|
|
756
|
+
"tparams": [],
|
|
757
|
+
"members": [],
|
|
758
|
+
"notes": [],
|
|
759
|
+
"language": ""
|
|
760
|
+
}
|
|
761
|
+
],
|
|
762
|
+
"info": {
|
|
763
|
+
"namespace": "material",
|
|
764
|
+
"name": "Material",
|
|
765
|
+
"brief": "Material API documentation",
|
|
766
|
+
"description": "Functions for interacting with materials.",
|
|
767
|
+
"path": "engine/gamesys/src/gamesys/scripts/script_material.cpp",
|
|
768
|
+
"file": "",
|
|
769
|
+
"notes": [],
|
|
770
|
+
"language": "Lua"
|
|
771
|
+
},
|
|
772
|
+
"format_version": 2
|
|
773
|
+
}
|