@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,238 @@
|
|
|
1
|
+
{
|
|
2
|
+
"elements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "FUNCTION",
|
|
5
|
+
"name": "material.get_vertex_attributes",
|
|
6
|
+
"brief": "gets vertex attributes from a material",
|
|
7
|
+
"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.",
|
|
8
|
+
"returnvalues": [
|
|
9
|
+
{
|
|
10
|
+
"name": "table",
|
|
11
|
+
"doc": "A table of tables, where each entry contains info about the vertex attributes:\n<dl>\n<dt><code>name</code></dt>\n<dd><span class=\"type\">hash</span> the hashed name of the vertex attribute</dd>\n<dt><code>value</code></dt>\n<dd><span class=\"type\">vmath.vector4 | vmath.vector3 | vmath.matrix4 | number | table</span> the value of the vertex attribute. Matrix attributes that do not map to <code>vmath.matrix4</code> are returned as a table of numbers.</dd>\n<dt><code>normalize</code></dt>\n<dd><span class=\"type\">boolean</span> whether the value is normalized when passed into the shader</dd>\n<dt><code>data_type</code></dt>\n<dd><span class=\"type\">number</span> the data type of the vertex attribute. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.DATA_TYPE_BYTE</code></li>\n<li><code>graphics.DATA_TYPE_UNSIGNED_BYTE</code></li>\n<li><code>graphics.DATA_TYPE_SHORT</code></li>\n<li><code>graphics.DATA_TYPE_UNSIGNED_SHORT</code></li>\n<li><code>graphics.DATA_TYPE_INT</code></li>\n<li><code>graphics.DATA_TYPE_UNSIGNED_INT</code></li>\n<li><code>graphics.DATA_TYPE_FLOAT</code></li>\n</ul>\n<dl>\n<dt><code>coordinate_space</code></dt>\n<dd><span class=\"type\">number</span> the coordinate space of the vertex attribute. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.COORDINATE_SPACE_WORLD</code></li>\n<li><code>graphics.COORDINATE_SPACE_LOCAL</code></li>\n</ul>\n<dl>\n<dt><code>semantic_type</code></dt>\n<dd><span class=\"type\">number</span> the semantic type of the vertex attribute. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.SEMANTIC_TYPE_NONE</code></li>\n<li><code>graphics.SEMANTIC_TYPE_POSITION</code></li>\n<li><code>graphics.SEMANTIC_TYPE_TEXCOORD</code></li>\n<li><code>graphics.SEMANTIC_TYPE_PAGE_INDEX</code></li>\n<li><code>graphics.SEMANTIC_TYPE_COLOR</code></li>\n<li><code>graphics.SEMANTIC_TYPE_NORMAL</code></li>\n<li><code>graphics.SEMANTIC_TYPE_TANGENT</code></li>\n<li><code>graphics.SEMANTIC_TYPE_WORLD_MATRIX</code></li>\n<li><code>graphics.SEMANTIC_TYPE_NORMAL_MATRIX</code></li>\n<li><code>graphics.SEMANTIC_TYPE_BONE_WEIGHTS</code></li>\n<li><code>graphics.SEMANTIC_TYPE_BONE_INDICES</code></li>\n<li><code>graphics.SEMANTIC_TYPE_TEXTURE_TRANSFORM_2D</code></li>\n</ul>",
|
|
12
|
+
"types": ["table"]
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"parameters": [
|
|
16
|
+
{
|
|
17
|
+
"name": "path",
|
|
18
|
+
"doc": "The path to the resource",
|
|
19
|
+
"types": ["hash", "string"],
|
|
20
|
+
"is_optional": "False"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"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>",
|
|
24
|
+
"replaces": "",
|
|
25
|
+
"error": "",
|
|
26
|
+
"tparams": [],
|
|
27
|
+
"members": [],
|
|
28
|
+
"notes": [],
|
|
29
|
+
"language": ""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "FUNCTION",
|
|
33
|
+
"name": "material.get_samplers",
|
|
34
|
+
"brief": "gets texture samplers from a material",
|
|
35
|
+
"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.",
|
|
36
|
+
"returnvalues": [
|
|
37
|
+
{
|
|
38
|
+
"name": "table",
|
|
39
|
+
"doc": "A table of tables, where each entry contains info about the texture samplers:\n<dl>\n<dt><code>name</code></dt>\n<dd><span class=\"type\">hash</span> the hashed name of the texture sampler</dd>\n<dt><code>u_wrap</code></dt>\n<dd><span class=\"type\">number</span> the u wrap mode of the texture sampler. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.TEXTURE_WRAP_CLAMP_TO_BORDER</code></li>\n<li><code>graphics.TEXTURE_WRAP_CLAMP_TO_EDGE</code></li>\n<li><code>graphics.TEXTURE_WRAP_MIRRORED_REPEAT</code></li>\n<li><code>graphics.TEXTURE_WRAP_REPEAT</code></li>\n</ul>\n<dl>\n<dt><code>v_wrap</code></dt>\n<dd><span class=\"type\">number</span> the v wrap mode of the texture sampler. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.TEXTURE_WRAP_CLAMP_TO_BORDER</code></li>\n<li><code>graphics.TEXTURE_WRAP_CLAMP_TO_EDGE</code></li>\n<li><code>graphics.TEXTURE_WRAP_MIRRORED_REPEAT</code></li>\n<li><code>graphics.TEXTURE_WRAP_REPEAT</code></li>\n</ul>\n<dl>\n<dt><code>min_filter</code></dt>\n<dd><span class=\"type\">number</span> the min filter mode of the texture sampler. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.TEXTURE_FILTER_DEFAULT</code></li>\n<li><code>graphics.TEXTURE_FILTER_NEAREST</code></li>\n<li><code>graphics.TEXTURE_FILTER_LINEAR</code></li>\n<li><code>graphics.TEXTURE_FILTER_NEAREST_MIPMAP_NEAREST</code></li>\n<li><code>graphics.TEXTURE_FILTER_NEAREST_MIPMAP_LINEAR</code></li>\n<li><code>graphics.TEXTURE_FILTER_LINEAR_MIPMAP_NEAREST</code></li>\n<li><code>graphics.TEXTURE_FILTER_LINEAR_MIPMAP_LINEAR</code></li>\n</ul>\n<dl>\n<dt><code>mag_filter</code></dt>\n<dd><span class=\"type\">number</span> the mag filter mode of the texture sampler</dd>\n</dl>\n<ul>\n<li><code>graphics.TEXTURE_FILTER_DEFAULT</code></li>\n<li><code>graphics.TEXTURE_FILTER_NEAREST</code></li>\n<li><code>graphics.TEXTURE_FILTER_LINEAR</code></li>\n</ul>\n<dl>\n<dt><code>max_anisotropy</code></dt>\n<dd><span class=\"type\">number</span> the max anisotropy of the texture sampler</dd>\n</dl>",
|
|
40
|
+
"types": ["table"]
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"parameters": [
|
|
44
|
+
{
|
|
45
|
+
"name": "path",
|
|
46
|
+
"doc": "The path to the resource",
|
|
47
|
+
"types": ["hash", "string"],
|
|
48
|
+
"is_optional": "False"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"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>",
|
|
52
|
+
"replaces": "",
|
|
53
|
+
"error": "",
|
|
54
|
+
"tparams": [],
|
|
55
|
+
"members": [],
|
|
56
|
+
"notes": [],
|
|
57
|
+
"language": ""
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "FUNCTION",
|
|
61
|
+
"name": "material.get_constants",
|
|
62
|
+
"brief": "gets shader constants from a material",
|
|
63
|
+
"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.",
|
|
64
|
+
"returnvalues": [
|
|
65
|
+
{
|
|
66
|
+
"name": "table",
|
|
67
|
+
"doc": "A table of tables, where each entry contains info about the shader constants:\n<dl>\n<dt><code>name</code></dt>\n<dd><span class=\"type\">hash</span> the hashed name of the constant</dd>\n<dt><code>type</code></dt>\n<dd><span class=\"type\">number</span> the type of the constant. Supported values:</dd>\n</dl>\n<ul>\n<li><code>material.CONSTANT_TYPE_USER</code></li>\n<li><code>material.CONSTANT_TYPE_USER_MATRIX4</code></li>\n<li><code>material.CONSTANT_TYPE_VIEWPROJ</code></li>\n<li><code>material.CONSTANT_TYPE_WORLD</code></li>\n<li><code>material.CONSTANT_TYPE_TEXTURE</code></li>\n<li><code>material.CONSTANT_TYPE_VIEW</code></li>\n<li><code>material.CONSTANT_TYPE_PROJECTION</code></li>\n<li><code>material.CONSTANT_TYPE_NORMAL</code></li>\n<li><code>material.CONSTANT_TYPE_WORLDVIEW</code></li>\n<li><code>material.CONSTANT_TYPE_WORLDVIEWPROJ</code></li>\n<li><code>material.CONSTANT_TYPE_TIME</code></li>\n<li><code>material.CONSTANT_TYPE_WORLD_INVERSE</code></li>\n<li><code>material.CONSTANT_TYPE_VIEW_INVERSE</code></li>\n<li><code>material.CONSTANT_TYPE_PROJECTION_INVERSE</code></li>\n<li><code>material.CONSTANT_TYPE_VIEWPROJ_INVERSE</code></li>\n<li><code>material.CONSTANT_TYPE_WORLDVIEW_INVERSE</code></li>\n<li><code>material.CONSTANT_TYPE_WORLDVIEWPROJ_INVERSE</code></li>\n</ul>\n<dl>\n<dt><code>value</code></dt>\n<dd><span class=\"type\">vmath.vector4 | vmath.matrix4</span> the value(s) of the constant. If the constant is an array, the value will be a table of vmath.vector4 or vmath.matrix4 if the type is <code>material.CONSTANT_TYPE_USER_MATRIX4</code>.</dd>\n</dl>",
|
|
68
|
+
"types": ["table"]
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"parameters": [
|
|
72
|
+
{
|
|
73
|
+
"name": "path",
|
|
74
|
+
"doc": "The path to the resource",
|
|
75
|
+
"types": ["hash", "string"],
|
|
76
|
+
"is_optional": "False"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"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>",
|
|
80
|
+
"replaces": "",
|
|
81
|
+
"error": "",
|
|
82
|
+
"tparams": [],
|
|
83
|
+
"members": [],
|
|
84
|
+
"notes": [],
|
|
85
|
+
"language": ""
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "FUNCTION",
|
|
89
|
+
"name": "material.get_textures",
|
|
90
|
+
"brief": "gets textures associated with a material",
|
|
91
|
+
"description": "Returns a table of all the textures from the material.",
|
|
92
|
+
"returnvalues": [
|
|
93
|
+
{
|
|
94
|
+
"name": "table",
|
|
95
|
+
"doc": "A table of tables, where each entry contains info about the material textures:\n<dl>\n<dt><code>path</code></dt>\n<dd><span class=\"type\">hash</span> the resource path of the texture. Only available if the texture is a resource.</dd>\n<dt><code>handle</code></dt>\n<dd><span class=\"type\">hash</span> the runtime handle of the texture.</dd>\n<dt><code>width</code></dt>\n<dd><span class=\"type\">number</span> the width of the texture</dd>\n<dt><code>height</code></dt>\n<dd><span class=\"type\">number</span> the height of the texture</dd>\n<dt><code>depth</code></dt>\n<dd><span class=\"type\">number</span> the depth of the texture. Corresponds to the number of layers in an array texture.</dd>\n<dt><code>mipmaps</code></dt>\n<dd><span class=\"type\">number</span> the number of mipmaps in the texture</dd>\n<dt><code>type</code></dt>\n<dd><span class=\"type\">number</span> the type of the texture. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.TEXTURE_TYPE_2D</code></li>\n<li><code>graphics.TEXTURE_TYPE_2D_ARRAY</code></li>\n<li><code>graphics.TEXTURE_TYPE_CUBE_MAP</code></li>\n<li><code>graphics.TEXTURE_TYPE_IMAGE_2D</code></li>\n<li><code>graphics.TEXTURE_TYPE_3D</code></li>\n<li><code>graphics.TEXTURE_TYPE_IMAGE_3D</code></li>\n</ul>\n<dl>\n<dt><code>flags</code></dt>\n<dd><span class=\"type\">number</span> the flags of the texture. This field is a bit mask of these supported flags:</dd>\n</dl>\n<ul>\n<li><code>graphics.TEXTURE_USAGE_FLAG_SAMPLE</code></li>\n<li><code>graphics.TEXTURE_USAGE_FLAG_MEMORYLESS</code></li>\n<li><code>graphics.TEXTURE_USAGE_FLAG_STORAGE</code></li>\n<li><code>graphics.TEXTURE_USAGE_FLAG_INPUT</code></li>\n<li><code>graphics.TEXTURE_USAGE_FLAG_COLOR</code></li>\n</ul>",
|
|
96
|
+
"types": ["table"]
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"parameters": [
|
|
100
|
+
{
|
|
101
|
+
"name": "path",
|
|
102
|
+
"doc": "The path to the resource",
|
|
103
|
+
"types": ["hash", "string"],
|
|
104
|
+
"is_optional": "False"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"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>",
|
|
108
|
+
"replaces": "",
|
|
109
|
+
"error": "",
|
|
110
|
+
"tparams": [],
|
|
111
|
+
"members": [],
|
|
112
|
+
"notes": [],
|
|
113
|
+
"language": ""
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"type": "FUNCTION",
|
|
117
|
+
"name": "material.set_vertex_attributes",
|
|
118
|
+
"brief": "sets vertex attributes in a material",
|
|
119
|
+
"description": "Sets vertex attributes in a material, if the vertex attributes exist.",
|
|
120
|
+
"returnvalues": [],
|
|
121
|
+
"parameters": [
|
|
122
|
+
{
|
|
123
|
+
"name": "path",
|
|
124
|
+
"doc": "The path to the resource",
|
|
125
|
+
"types": ["hash", "string"],
|
|
126
|
+
"is_optional": "False"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "attributes",
|
|
130
|
+
"doc": "A table keyed by vertex attribute name with args tables as values. Partial updates are supported. Supported entries:\n<dl>\n<dt><code>value</code></dt>\n<dd><span class=\"type\">vmath.vector4 | vmath.vector3 | vmath.matrix4 | number | table</span> the value of the vertex attribute. Use a table of numbers for matrix attributes that do not map to <code>vmath.matrix4</code>.</dd>\n<dt><code>normalize</code></dt>\n<dd><span class=\"type\">boolean</span> whether the value is normalized when passed into the shader</dd>\n<dt><code>data_type</code></dt>\n<dd><span class=\"type\">number</span> the data type of the vertex attribute. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.DATA_TYPE_BYTE</code></li>\n<li><code>graphics.DATA_TYPE_UNSIGNED_BYTE</code></li>\n<li><code>graphics.DATA_TYPE_SHORT</code></li>\n<li><code>graphics.DATA_TYPE_UNSIGNED_SHORT</code></li>\n<li><code>graphics.DATA_TYPE_INT</code></li>\n<li><code>graphics.DATA_TYPE_UNSIGNED_INT</code></li>\n<li><code>graphics.DATA_TYPE_FLOAT</code></li>\n</ul>\n<dl>\n<dt><code>coordinate_space</code></dt>\n<dd><span class=\"type\">number</span> the coordinate space of the vertex attribute. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.COORDINATE_SPACE_DEFAULT</code></li>\n<li><code>graphics.COORDINATE_SPACE_WORLD</code></li>\n<li><code>graphics.COORDINATE_SPACE_LOCAL</code></li>\n</ul>\n<dl>\n<dt><code>semantic_type</code></dt>\n<dd><span class=\"type\">number</span> the semantic type of the vertex attribute. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.SEMANTIC_TYPE_NONE</code></li>\n<li><code>graphics.SEMANTIC_TYPE_POSITION</code></li>\n<li><code>graphics.SEMANTIC_TYPE_TEXCOORD</code></li>\n<li><code>graphics.SEMANTIC_TYPE_PAGE_INDEX</code></li>\n<li><code>graphics.SEMANTIC_TYPE_COLOR</code></li>\n<li><code>graphics.SEMANTIC_TYPE_NORMAL</code></li>\n<li><code>graphics.SEMANTIC_TYPE_TANGENT</code></li>\n<li><code>graphics.SEMANTIC_TYPE_WORLD_MATRIX</code></li>\n<li><code>graphics.SEMANTIC_TYPE_NORMAL_MATRIX</code></li>\n<li><code>graphics.SEMANTIC_TYPE_BONE_WEIGHTS</code></li>\n<li><code>graphics.SEMANTIC_TYPE_BONE_INDICES</code></li>\n<li><code>graphics.SEMANTIC_TYPE_TEXTURE_TRANSFORM_2D</code></li>\n</ul>",
|
|
131
|
+
"types": ["table"],
|
|
132
|
+
"is_optional": "False"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"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>",
|
|
136
|
+
"replaces": "",
|
|
137
|
+
"error": "",
|
|
138
|
+
"tparams": [],
|
|
139
|
+
"members": [],
|
|
140
|
+
"notes": [],
|
|
141
|
+
"language": ""
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "FUNCTION",
|
|
145
|
+
"name": "material.set_samplers",
|
|
146
|
+
"brief": "sets texture samplers in a material",
|
|
147
|
+
"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.",
|
|
148
|
+
"returnvalues": [],
|
|
149
|
+
"parameters": [
|
|
150
|
+
{
|
|
151
|
+
"name": "path",
|
|
152
|
+
"doc": "The path to the resource",
|
|
153
|
+
"types": ["hash", "string"],
|
|
154
|
+
"is_optional": "False"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "samplers",
|
|
158
|
+
"doc": "A table keyed by sampler name with args tables as values. Partial updates are supported. Supported entries:\n<dl>\n<dt><code>u_wrap</code></dt>\n<dd><span class=\"type\">number</span> the u wrap mode of the texture sampler. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.TEXTURE_WRAP_CLAMP_TO_BORDER</code></li>\n<li><code>graphics.TEXTURE_WRAP_CLAMP_TO_EDGE</code></li>\n<li><code>graphics.TEXTURE_WRAP_MIRRORED_REPEAT</code></li>\n<li><code>graphics.TEXTURE_WRAP_REPEAT</code></li>\n</ul>\n<dl>\n<dt><code>v_wrap</code></dt>\n<dd><span class=\"type\">number</span> the v wrap mode of the texture sampler. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.TEXTURE_WRAP_CLAMP_TO_BORDER</code></li>\n<li><code>graphics.TEXTURE_WRAP_CLAMP_TO_EDGE</code></li>\n<li><code>graphics.TEXTURE_WRAP_MIRRORED_REPEAT</code></li>\n<li><code>graphics.TEXTURE_WRAP_REPEAT</code></li>\n</ul>\n<dl>\n<dt><code>min_filter</code></dt>\n<dd><span class=\"type\">number</span> the min filter mode of the texture sampler. Supported values:</dd>\n</dl>\n<ul>\n<li><code>graphics.TEXTURE_FILTER_DEFAULT</code></li>\n<li><code>graphics.TEXTURE_FILTER_NEAREST</code></li>\n<li><code>graphics.TEXTURE_FILTER_LINEAR</code></li>\n<li><code>graphics.TEXTURE_FILTER_NEAREST_MIPMAP_NEAREST</code></li>\n<li><code>graphics.TEXTURE_FILTER_NEAREST_MIPMAP_LINEAR</code></li>\n<li><code>graphics.TEXTURE_FILTER_LINEAR_MIPMAP_NEAREST</code></li>\n<li><code>graphics.TEXTURE_FILTER_LINEAR_MIPMAP_LINEAR</code></li>\n</ul>\n<dl>\n<dt><code>mag_filter</code></dt>\n<dd><span class=\"type\">number</span> the mag filter mode of the texture sampler</dd>\n</dl>\n<ul>\n<li><code>graphics.TEXTURE_FILTER_DEFAULT</code></li>\n<li><code>graphics.TEXTURE_FILTER_NEAREST</code></li>\n<li><code>graphics.TEXTURE_FILTER_LINEAR</code></li>\n</ul>\n<dl>\n<dt><code>max_anisotropy</code></dt>\n<dd><span class=\"type\">number</span> the max anisotropy of the texture sampler</dd>\n</dl>",
|
|
159
|
+
"types": ["table"],
|
|
160
|
+
"is_optional": "False"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"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>",
|
|
164
|
+
"replaces": "",
|
|
165
|
+
"error": "",
|
|
166
|
+
"tparams": [],
|
|
167
|
+
"members": [],
|
|
168
|
+
"notes": [],
|
|
169
|
+
"language": ""
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"type": "FUNCTION",
|
|
173
|
+
"name": "material.set_constants",
|
|
174
|
+
"brief": "sets shader constants in a material",
|
|
175
|
+
"description": "Sets shader constants in a material, if the constants exist.",
|
|
176
|
+
"returnvalues": [],
|
|
177
|
+
"parameters": [
|
|
178
|
+
{
|
|
179
|
+
"name": "path",
|
|
180
|
+
"doc": "The path to the resource",
|
|
181
|
+
"types": ["hash", "string"],
|
|
182
|
+
"is_optional": "False"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "constants",
|
|
186
|
+
"doc": "A table keyed by constant name with args tables as values. Constants can be partially updated. Supported entries:\n<dl>\n<dt><code>type</code></dt>\n<dd><span class=\"type\">number</span> the type of the constant. Supported values:</dd>\n</dl>\n<ul>\n<li><code>material.CONSTANT_TYPE_USER</code></li>\n<li><code>material.CONSTANT_TYPE_USER_MATRIX4</code></li>\n<li><code>material.CONSTANT_TYPE_VIEWPROJ</code></li>\n<li><code>material.CONSTANT_TYPE_WORLD</code></li>\n<li><code>material.CONSTANT_TYPE_TEXTURE</code></li>\n<li><code>material.CONSTANT_TYPE_VIEW</code></li>\n<li><code>material.CONSTANT_TYPE_PROJECTION</code></li>\n<li><code>material.CONSTANT_TYPE_NORMAL</code></li>\n<li><code>material.CONSTANT_TYPE_WORLDVIEW</code></li>\n<li><code>material.CONSTANT_TYPE_WORLDVIEWPROJ</code></li>\n<li><code>material.CONSTANT_TYPE_TIME</code></li>\n<li><code>material.CONSTANT_TYPE_WORLD_INVERSE</code></li>\n<li><code>material.CONSTANT_TYPE_VIEW_INVERSE</code></li>\n<li><code>material.CONSTANT_TYPE_PROJECTION_INVERSE</code></li>\n<li><code>material.CONSTANT_TYPE_VIEWPROJ_INVERSE</code></li>\n<li><code>material.CONSTANT_TYPE_WORLDVIEW_INVERSE</code></li>\n<li><code>material.CONSTANT_TYPE_WORLDVIEWPROJ_INVERSE</code></li>\n</ul>\n<dl>\n<dt><code>value</code></dt>\n<dd><span class=\"type\">vmath.vector4 | vmath.vector3 | vmath.matrix4 | number | table</span> the value(s) of the constant. If the shader constant is an array, the amount of values to update depends on how many values that are passed in the 'value' field.</dd>\n</dl>",
|
|
187
|
+
"types": ["table"],
|
|
188
|
+
"is_optional": "False"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"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>",
|
|
192
|
+
"replaces": "",
|
|
193
|
+
"error": "",
|
|
194
|
+
"tparams": [],
|
|
195
|
+
"members": [],
|
|
196
|
+
"notes": [],
|
|
197
|
+
"language": ""
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "FUNCTION",
|
|
201
|
+
"name": "material.set_textures",
|
|
202
|
+
"brief": "sets textures in a material",
|
|
203
|
+
"description": "Sets textures in a material, if the samplers exist.",
|
|
204
|
+
"returnvalues": [],
|
|
205
|
+
"parameters": [
|
|
206
|
+
{
|
|
207
|
+
"name": "path",
|
|
208
|
+
"doc": "The path to the resource",
|
|
209
|
+
"types": ["hash", "string"],
|
|
210
|
+
"is_optional": "False"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "textures",
|
|
214
|
+
"doc": "A table keyed by sampler name with texture resources as values.",
|
|
215
|
+
"types": ["table"],
|
|
216
|
+
"is_optional": "False"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"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>",
|
|
220
|
+
"replaces": "",
|
|
221
|
+
"error": "",
|
|
222
|
+
"tparams": [],
|
|
223
|
+
"members": [],
|
|
224
|
+
"notes": [],
|
|
225
|
+
"language": ""
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"info": {
|
|
229
|
+
"namespace": "material",
|
|
230
|
+
"name": "Material",
|
|
231
|
+
"brief": "Material API documentation",
|
|
232
|
+
"description": "Functions for interacting with materials.",
|
|
233
|
+
"path": "engine/gamesys/src/gamesys/scripts/script_material.cpp",
|
|
234
|
+
"file": "",
|
|
235
|
+
"notes": [],
|
|
236
|
+
"language": "Lua"
|
|
237
|
+
}
|
|
238
|
+
}
|