mt-lang 0.2.0 → 0.2.1

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.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/docs/index.html +4 -3
  3. data/lib/milk_tea/base.rb +1 -1
  4. data/std/asset_pack.mt +267 -0
  5. data/std/async/libuv_runtime.mt +539 -0
  6. data/std/async/mailbox.mt +191 -0
  7. data/std/async/runtime.mt +87 -0
  8. data/std/async.mt +87 -0
  9. data/std/base64.mt +185 -0
  10. data/std/behavior_tree.mt +396 -0
  11. data/std/binary.mt +314 -0
  12. data/std/binary_heap.mt +157 -0
  13. data/std/bitset.mt +239 -0
  14. data/std/box2d.mt +535 -0
  15. data/std/bytes.mt +46 -0
  16. data/std/c/box2d.mt +1254 -0
  17. data/std/c/cgltf.mt +647 -0
  18. data/std/c/cjson.mt +106 -0
  19. data/std/c/crypto.mt +11 -0
  20. data/std/c/crypto_support.h +51 -0
  21. data/std/c/ctype.mt +19 -0
  22. data/std/c/ctype_bindgen.h +29 -0
  23. data/std/c/curl.mt +1223 -0
  24. data/std/c/enet.mt +473 -0
  25. data/std/c/errno.mt +41 -0
  26. data/std/c/errno_bindgen.h +53 -0
  27. data/std/c/flecs.mt +2945 -0
  28. data/std/c/fs.linux.mt +43 -0
  29. data/std/c/fs.windows.mt +43 -0
  30. data/std/c/fs_support.h +954 -0
  31. data/std/c/gl.mt +2065 -0
  32. data/std/c/gl_registry_helpers.h +10748 -0
  33. data/std/c/glfw.mt +499 -0
  34. data/std/c/libc.mt +167 -0
  35. data/std/c/libuv.mt +1491 -0
  36. data/std/c/math.mt +22 -0
  37. data/std/c/math_bindgen.h +31 -0
  38. data/std/c/miniaudio.mt +3420 -0
  39. data/std/c/pcre2.mt +735 -0
  40. data/std/c/process.mt +58 -0
  41. data/std/c/process_support.h +1147 -0
  42. data/std/c/raygui.mt +1602 -0
  43. data/std/c/raylib.mt +1245 -0
  44. data/std/c/raymath.mt +163 -0
  45. data/std/c/rlgl.mt +434 -0
  46. data/std/c/rpng.mt +60 -0
  47. data/std/c/rres.mt +187 -0
  48. data/std/c/sdl3.mt +4132 -0
  49. data/std/c/sqlite3.mt +951 -0
  50. data/std/c/stb_image.mt +52 -0
  51. data/std/c/stb_image_resize2.mt +128 -0
  52. data/std/c/stb_image_write.mt +19 -0
  53. data/std/c/stb_rect_pack.mt +38 -0
  54. data/std/c/stb_truetype.mt +175 -0
  55. data/std/c/stb_vorbis.mt +31 -0
  56. data/std/c/stdio.mt +90 -0
  57. data/std/c/steamworks.h +5769 -0
  58. data/std/c/steamworks.mt +4771 -0
  59. data/std/c/string.mt +16 -0
  60. data/std/c/string_bindgen.h +36 -0
  61. data/std/c/sync.mt +33 -0
  62. data/std/c/sync_support.h +219 -0
  63. data/std/c/terminal.mt +24 -0
  64. data/std/c/terminal_support.h +408 -0
  65. data/std/c/time.mt +26 -0
  66. data/std/c/tls.mt +24 -0
  67. data/std/c/tls_support.h +626 -0
  68. data/std/c/tracy.mt +53 -0
  69. data/std/c/zlib.mt +20 -0
  70. data/std/c/zlib_support.h +239 -0
  71. data/std/c/zstd.mt +231 -0
  72. data/std/cell.mt +60 -0
  73. data/std/cgltf.mt +115 -0
  74. data/std/cjson.mt +90 -0
  75. data/std/cli.mt +768 -0
  76. data/std/cookie.mt +198 -0
  77. data/std/counter.mt +160 -0
  78. data/std/crypto.mt +74 -0
  79. data/std/cstring.mt +13 -0
  80. data/std/ctype.mt +52 -0
  81. data/std/curl/runtime.mt +261 -0
  82. data/std/curl.mt +38 -0
  83. data/std/deque.mt +348 -0
  84. data/std/encoding.mt +93 -0
  85. data/std/enet.mt +133 -0
  86. data/std/env.mt +41 -0
  87. data/std/errno.mt +47 -0
  88. data/std/flecs.mt +978 -0
  89. data/std/fmt.mt +271 -0
  90. data/std/fs.linux.mt +696 -0
  91. data/std/fs.windows.mt +711 -0
  92. data/std/fsm.mt +267 -0
  93. data/std/gl.mt +2062 -0
  94. data/std/glfw.mt +471 -0
  95. data/std/goap.mt +342 -0
  96. data/std/graph.mt +521 -0
  97. data/std/gzip.mt +77 -0
  98. data/std/hash.mt +429 -0
  99. data/std/http/server.mt +810 -0
  100. data/std/http.mt +1227 -0
  101. data/std/intern.mt +53 -0
  102. data/std/jobs.mt +288 -0
  103. data/std/json.mt +627 -0
  104. data/std/libc.mt +34 -0
  105. data/std/libuv.mt +554 -0
  106. data/std/linear_algebra.mt +243 -0
  107. data/std/linked_map.mt +372 -0
  108. data/std/linked_map_view.mt +49 -0
  109. data/std/linked_set.mt +117 -0
  110. data/std/log.mt +69 -0
  111. data/std/map.mt +418 -0
  112. data/std/math.mt +24 -0
  113. data/std/mem/arena.mt +137 -0
  114. data/std/mem/endian.mt +51 -0
  115. data/std/mem/heap.mt +298 -0
  116. data/std/mem/pool.mt +164 -0
  117. data/std/mem/stack.mt +47 -0
  118. data/std/mem/tracking.mt +119 -0
  119. data/std/miniaudio.mt +1299 -0
  120. data/std/multiset.mt +191 -0
  121. data/std/net/channel.mt +727 -0
  122. data/std/net/clock.mt +237 -0
  123. data/std/net/discovery.mt +277 -0
  124. data/std/net/lobby.mt +813 -0
  125. data/std/net/manager.mt +539 -0
  126. data/std/net/mux.mt +839 -0
  127. data/std/net/nat.mt +122 -0
  128. data/std/net/packet.mt +219 -0
  129. data/std/net/punch.mt +162 -0
  130. data/std/net/rpc.mt +119 -0
  131. data/std/net/session.mt +1157 -0
  132. data/std/net/stun.mt +252 -0
  133. data/std/net/sync.mt +183 -0
  134. data/std/net/turn.mt +459 -0
  135. data/std/net.mt +2944 -0
  136. data/std/oauth2.mt +408 -0
  137. data/std/option.mt +51 -0
  138. data/std/ordered_map.mt +497 -0
  139. data/std/ordered_set.mt +348 -0
  140. data/std/path.mt +368 -0
  141. data/std/pcre2/runtime.mt +35 -0
  142. data/std/pcre2.mt +78 -0
  143. data/std/priority_queue.mt +55 -0
  144. data/std/process.mt +837 -0
  145. data/std/queue.mt +55 -0
  146. data/std/random.mt +146 -0
  147. data/std/raygui.mt +99 -0
  148. data/std/raylib/debug_console.mt +71 -0
  149. data/std/raylib/easing.mt +388 -0
  150. data/std/raylib/packed_assets.mt +255 -0
  151. data/std/raylib/runtime.mt +30 -0
  152. data/std/raylib/tracy_gpu.mt +37 -0
  153. data/std/raylib.mt +1510 -0
  154. data/std/raymath.mt +153 -0
  155. data/std/result.mt +89 -0
  156. data/std/rlgl.mt +268 -0
  157. data/std/rpng.mt +46 -0
  158. data/std/rres.mt +36 -0
  159. data/std/sdl3/runtime.mt +54 -0
  160. data/std/sdl3.mt +1731 -0
  161. data/std/serialize.mt +68 -0
  162. data/std/set.mt +124 -0
  163. data/std/spatial.mt +176 -0
  164. data/std/sqlite3.mt +151 -0
  165. data/std/stack.mt +55 -0
  166. data/std/stb_image.mt +47 -0
  167. data/std/stb_image_resize2.mt +41 -0
  168. data/std/stb_image_write.mt +17 -0
  169. data/std/stb_rect_pack.mt +15 -0
  170. data/std/stb_truetype.mt +77 -0
  171. data/std/stb_vorbis.mt +16 -0
  172. data/std/stdio.mt +88 -0
  173. data/std/steamworks.mt +1542 -0
  174. data/std/str.mt +293 -0
  175. data/std/string.mt +234 -0
  176. data/std/sync.mt +194 -0
  177. data/std/tar.mt +704 -0
  178. data/std/terminal.mt +1002 -0
  179. data/std/testing.mt +266 -0
  180. data/std/thread.mt +120 -0
  181. data/std/time.mt +105 -0
  182. data/std/tls.mt +616 -0
  183. data/std/toml.mt +1310 -0
  184. data/std/tracy.mt +42 -0
  185. data/std/uri.mt +118 -0
  186. data/std/url.mt +372 -0
  187. data/std/vec.mt +433 -0
  188. data/std/zstd.mt +94 -0
  189. metadata +187 -2
data/std/c/cgltf.mt ADDED
@@ -0,0 +1,647 @@
1
+ # generated by mtc bindgen from /home/teefan/Projects/Ruby/mt-lang/third_party/cgltf-upstream/cgltf.h
2
+ external
3
+
4
+ include "cgltf.h"
5
+
6
+ union cgltf_camera_data:
7
+ perspective: cgltf_camera_perspective
8
+ orthographic: cgltf_camera_orthographic
9
+
10
+ type cgltf_size = ptr_uint
11
+ type cgltf_ssize = long
12
+ type cgltf_float = float
13
+ type cgltf_int = int
14
+ type cgltf_uint = uint
15
+ type cgltf_bool = int
16
+
17
+ enum cgltf_file_type: int
18
+ cgltf_file_type_invalid = 0
19
+ cgltf_file_type_gltf = 1
20
+ cgltf_file_type_glb = 2
21
+ cgltf_file_type_max_enum = 3
22
+
23
+ enum cgltf_result: int
24
+ cgltf_result_success = 0
25
+ cgltf_result_data_too_short = 1
26
+ cgltf_result_unknown_format = 2
27
+ cgltf_result_invalid_json = 3
28
+ cgltf_result_invalid_gltf = 4
29
+ cgltf_result_invalid_options = 5
30
+ cgltf_result_file_not_found = 6
31
+ cgltf_result_io_error = 7
32
+ cgltf_result_out_of_memory = 8
33
+ cgltf_result_legacy_gltf = 9
34
+ cgltf_result_max_enum = 10
35
+
36
+ struct cgltf_memory_options:
37
+ alloc_func: fn(arg0: ptr[void], arg1: cgltf_size) -> ptr[void]
38
+ free_func: fn(arg0: ptr[void], arg1: ptr[void]) -> void
39
+ user_data: ptr[void]
40
+
41
+ struct cgltf_file_options:
42
+ read: fn(arg0: const_ptr[cgltf_memory_options], arg1: const_ptr[cgltf_file_options], arg2: cstr, arg3: ptr[cgltf_size], arg4: ptr[ptr[void]]) -> cgltf_result
43
+ release: fn(arg0: const_ptr[cgltf_memory_options], arg1: const_ptr[cgltf_file_options], arg2: ptr[void]) -> void
44
+ user_data: ptr[void]
45
+
46
+ struct cgltf_options:
47
+ type_: cgltf_file_type
48
+ json_token_count: ptr_uint
49
+ memory: cgltf_memory_options
50
+ file: cgltf_file_options
51
+
52
+ enum cgltf_buffer_view_type: int
53
+ cgltf_buffer_view_type_invalid = 0
54
+ cgltf_buffer_view_type_indices = 1
55
+ cgltf_buffer_view_type_vertices = 2
56
+ cgltf_buffer_view_type_max_enum = 3
57
+
58
+ enum cgltf_attribute_type: int
59
+ cgltf_attribute_type_invalid = 0
60
+ cgltf_attribute_type_position = 1
61
+ cgltf_attribute_type_normal = 2
62
+ cgltf_attribute_type_tangent = 3
63
+ cgltf_attribute_type_texcoord = 4
64
+ cgltf_attribute_type_color = 5
65
+ cgltf_attribute_type_joints = 6
66
+ cgltf_attribute_type_weights = 7
67
+ cgltf_attribute_type_custom = 8
68
+ cgltf_attribute_type_max_enum = 9
69
+
70
+ enum cgltf_component_type: int
71
+ cgltf_component_type_invalid = 0
72
+ cgltf_component_type_r_8 = 1
73
+ cgltf_component_type_r_8u = 2
74
+ cgltf_component_type_r_16 = 3
75
+ cgltf_component_type_r_16u = 4
76
+ cgltf_component_type_r_32u = 5
77
+ cgltf_component_type_r_32f = 6
78
+ cgltf_component_type_max_enum = 7
79
+
80
+ enum cgltf_type: int
81
+ cgltf_type_invalid = 0
82
+ cgltf_type_scalar = 1
83
+ cgltf_type_vec2 = 2
84
+ cgltf_type_vec3 = 3
85
+ cgltf_type_vec4 = 4
86
+ cgltf_type_mat2 = 5
87
+ cgltf_type_mat3 = 6
88
+ cgltf_type_mat4 = 7
89
+ cgltf_type_max_enum = 8
90
+
91
+ enum cgltf_primitive_type: int
92
+ cgltf_primitive_type_invalid = 0
93
+ cgltf_primitive_type_points = 1
94
+ cgltf_primitive_type_lines = 2
95
+ cgltf_primitive_type_line_loop = 3
96
+ cgltf_primitive_type_line_strip = 4
97
+ cgltf_primitive_type_triangles = 5
98
+ cgltf_primitive_type_triangle_strip = 6
99
+ cgltf_primitive_type_triangle_fan = 7
100
+ cgltf_primitive_type_max_enum = 8
101
+
102
+ enum cgltf_alpha_mode: int
103
+ cgltf_alpha_mode_opaque = 0
104
+ cgltf_alpha_mode_mask = 1
105
+ cgltf_alpha_mode_blend = 2
106
+ cgltf_alpha_mode_max_enum = 3
107
+
108
+ enum cgltf_animation_path_type: int
109
+ cgltf_animation_path_type_invalid = 0
110
+ cgltf_animation_path_type_translation = 1
111
+ cgltf_animation_path_type_rotation = 2
112
+ cgltf_animation_path_type_scale = 3
113
+ cgltf_animation_path_type_weights = 4
114
+ cgltf_animation_path_type_max_enum = 5
115
+
116
+ enum cgltf_interpolation_type: int
117
+ cgltf_interpolation_type_linear = 0
118
+ cgltf_interpolation_type_step = 1
119
+ cgltf_interpolation_type_cubic_spline = 2
120
+ cgltf_interpolation_type_max_enum = 3
121
+
122
+ enum cgltf_camera_type: int
123
+ cgltf_camera_type_invalid = 0
124
+ cgltf_camera_type_perspective = 1
125
+ cgltf_camera_type_orthographic = 2
126
+ cgltf_camera_type_max_enum = 3
127
+
128
+ enum cgltf_light_type: int
129
+ cgltf_light_type_invalid = 0
130
+ cgltf_light_type_directional = 1
131
+ cgltf_light_type_point = 2
132
+ cgltf_light_type_spot = 3
133
+ cgltf_light_type_max_enum = 4
134
+
135
+ enum cgltf_data_free_method: int
136
+ cgltf_data_free_method_none = 0
137
+ cgltf_data_free_method_file_release = 1
138
+ cgltf_data_free_method_memory_free = 2
139
+ cgltf_data_free_method_max_enum = 3
140
+
141
+ struct cgltf_extras:
142
+ start_offset: ptr_uint
143
+ end_offset: ptr_uint
144
+ data: ptr[char]
145
+
146
+ struct cgltf_extension:
147
+ name: ptr[char]
148
+ data: ptr[char]
149
+
150
+ struct cgltf_buffer:
151
+ name: ptr[char]
152
+ size: ptr_uint
153
+ uri: ptr[char]
154
+ data: ptr[void]
155
+ data_free_method: cgltf_data_free_method
156
+ extras: cgltf_extras
157
+ extensions_count: ptr_uint
158
+ extensions: ptr[cgltf_extension]
159
+
160
+ enum cgltf_meshopt_compression_mode: int
161
+ cgltf_meshopt_compression_mode_invalid = 0
162
+ cgltf_meshopt_compression_mode_attributes = 1
163
+ cgltf_meshopt_compression_mode_triangles = 2
164
+ cgltf_meshopt_compression_mode_indices = 3
165
+ cgltf_meshopt_compression_mode_max_enum = 4
166
+
167
+ enum cgltf_meshopt_compression_filter: int
168
+ cgltf_meshopt_compression_filter_none = 0
169
+ cgltf_meshopt_compression_filter_octahedral = 1
170
+ cgltf_meshopt_compression_filter_quaternion = 2
171
+ cgltf_meshopt_compression_filter_exponential = 3
172
+ cgltf_meshopt_compression_filter_max_enum = 4
173
+
174
+ struct cgltf_meshopt_compression:
175
+ buffer: ptr[cgltf_buffer]
176
+ offset: ptr_uint
177
+ size: ptr_uint
178
+ stride: ptr_uint
179
+ count: ptr_uint
180
+ mode: cgltf_meshopt_compression_mode
181
+ filter: cgltf_meshopt_compression_filter
182
+
183
+ struct cgltf_buffer_view:
184
+ name: ptr[char]
185
+ buffer: ptr[cgltf_buffer]
186
+ offset: ptr_uint
187
+ size: ptr_uint
188
+ stride: ptr_uint
189
+ type_: cgltf_buffer_view_type
190
+ data: ptr[void]
191
+ has_meshopt_compression: int
192
+ meshopt_compression: cgltf_meshopt_compression
193
+ extras: cgltf_extras
194
+ extensions_count: ptr_uint
195
+ extensions: ptr[cgltf_extension]
196
+
197
+ struct cgltf_accessor_sparse:
198
+ count: ptr_uint
199
+ indices_buffer_view: ptr[cgltf_buffer_view]
200
+ indices_byte_offset: ptr_uint
201
+ indices_component_type: cgltf_component_type
202
+ values_buffer_view: ptr[cgltf_buffer_view]
203
+ values_byte_offset: ptr_uint
204
+
205
+ struct cgltf_accessor:
206
+ name: ptr[char]
207
+ component_type: cgltf_component_type
208
+ normalized: int
209
+ type_: cgltf_type
210
+ offset: ptr_uint
211
+ count: ptr_uint
212
+ stride: ptr_uint
213
+ buffer_view: ptr[cgltf_buffer_view]
214
+ has_min: int
215
+ min: array[cgltf_float, 16]
216
+ has_max: int
217
+ max: array[cgltf_float, 16]
218
+ is_sparse: int
219
+ sparse: cgltf_accessor_sparse
220
+ extras: cgltf_extras
221
+ extensions_count: ptr_uint
222
+ extensions: ptr[cgltf_extension]
223
+
224
+ struct cgltf_attribute:
225
+ name: ptr[char]
226
+ type_: cgltf_attribute_type
227
+ index: int
228
+ data: ptr[cgltf_accessor]
229
+
230
+ struct cgltf_image:
231
+ name: ptr[char]
232
+ uri: ptr[char]
233
+ buffer_view: ptr[cgltf_buffer_view]
234
+ mime_type: ptr[char]
235
+ extras: cgltf_extras
236
+ extensions_count: ptr_uint
237
+ extensions: ptr[cgltf_extension]
238
+
239
+ enum cgltf_filter_type: int
240
+ cgltf_filter_type_undefined = 0
241
+ cgltf_filter_type_nearest = 9728
242
+ cgltf_filter_type_linear = 9729
243
+ cgltf_filter_type_nearest_mipmap_nearest = 9984
244
+ cgltf_filter_type_linear_mipmap_nearest = 9985
245
+ cgltf_filter_type_nearest_mipmap_linear = 9986
246
+ cgltf_filter_type_linear_mipmap_linear = 9987
247
+
248
+ enum cgltf_wrap_mode: int
249
+ cgltf_wrap_mode_clamp_to_edge = 33071
250
+ cgltf_wrap_mode_mirrored_repeat = 33648
251
+ cgltf_wrap_mode_repeat = 10497
252
+
253
+ struct cgltf_sampler:
254
+ name: ptr[char]
255
+ mag_filter: cgltf_filter_type
256
+ min_filter: cgltf_filter_type
257
+ wrap_s: cgltf_wrap_mode
258
+ wrap_t: cgltf_wrap_mode
259
+ extras: cgltf_extras
260
+ extensions_count: ptr_uint
261
+ extensions: ptr[cgltf_extension]
262
+
263
+ struct cgltf_texture:
264
+ name: ptr[char]
265
+ image: ptr[cgltf_image]
266
+ sampler: ptr[cgltf_sampler]
267
+ has_basisu: int
268
+ basisu_image: ptr[cgltf_image]
269
+ has_webp: int
270
+ webp_image: ptr[cgltf_image]
271
+ extras: cgltf_extras
272
+ extensions_count: ptr_uint
273
+ extensions: ptr[cgltf_extension]
274
+
275
+ struct cgltf_texture_transform:
276
+ offset: array[cgltf_float, 2]
277
+ rotation: float
278
+ scale: array[cgltf_float, 2]
279
+ has_texcoord: int
280
+ texcoord: int
281
+
282
+ struct cgltf_texture_view:
283
+ texture: ptr[cgltf_texture]
284
+ texcoord: int
285
+ scale: float
286
+ has_transform: int
287
+ transform: cgltf_texture_transform
288
+
289
+ struct cgltf_pbr_metallic_roughness:
290
+ base_color_texture: cgltf_texture_view
291
+ metallic_roughness_texture: cgltf_texture_view
292
+ base_color_factor: array[cgltf_float, 4]
293
+ metallic_factor: float
294
+ roughness_factor: float
295
+
296
+ struct cgltf_pbr_specular_glossiness:
297
+ diffuse_texture: cgltf_texture_view
298
+ specular_glossiness_texture: cgltf_texture_view
299
+ diffuse_factor: array[cgltf_float, 4]
300
+ specular_factor: array[cgltf_float, 3]
301
+ glossiness_factor: float
302
+
303
+ struct cgltf_clearcoat:
304
+ clearcoat_texture: cgltf_texture_view
305
+ clearcoat_roughness_texture: cgltf_texture_view
306
+ clearcoat_normal_texture: cgltf_texture_view
307
+ clearcoat_factor: float
308
+ clearcoat_roughness_factor: float
309
+
310
+ struct cgltf_transmission:
311
+ transmission_texture: cgltf_texture_view
312
+ transmission_factor: float
313
+
314
+ struct cgltf_ior:
315
+ ior: float
316
+
317
+ struct cgltf_specular:
318
+ specular_texture: cgltf_texture_view
319
+ specular_color_texture: cgltf_texture_view
320
+ specular_color_factor: array[cgltf_float, 3]
321
+ specular_factor: float
322
+
323
+ struct cgltf_volume:
324
+ thickness_texture: cgltf_texture_view
325
+ thickness_factor: float
326
+ attenuation_color: array[cgltf_float, 3]
327
+ attenuation_distance: float
328
+
329
+ struct cgltf_sheen:
330
+ sheen_color_texture: cgltf_texture_view
331
+ sheen_color_factor: array[cgltf_float, 3]
332
+ sheen_roughness_texture: cgltf_texture_view
333
+ sheen_roughness_factor: float
334
+
335
+ struct cgltf_emissive_strength:
336
+ emissive_strength: float
337
+
338
+ struct cgltf_iridescence:
339
+ iridescence_factor: float
340
+ iridescence_texture: cgltf_texture_view
341
+ iridescence_ior: float
342
+ iridescence_thickness_min: float
343
+ iridescence_thickness_max: float
344
+ iridescence_thickness_texture: cgltf_texture_view
345
+
346
+ struct cgltf_diffuse_transmission:
347
+ diffuse_transmission_texture: cgltf_texture_view
348
+ diffuse_transmission_factor: float
349
+ diffuse_transmission_color_factor: array[cgltf_float, 3]
350
+ diffuse_transmission_color_texture: cgltf_texture_view
351
+
352
+ struct cgltf_anisotropy:
353
+ anisotropy_strength: float
354
+ anisotropy_rotation: float
355
+ anisotropy_texture: cgltf_texture_view
356
+
357
+ struct cgltf_dispersion:
358
+ dispersion: float
359
+
360
+ struct cgltf_material:
361
+ name: ptr[char]
362
+ has_pbr_metallic_roughness: int
363
+ has_pbr_specular_glossiness: int
364
+ has_clearcoat: int
365
+ has_transmission: int
366
+ has_volume: int
367
+ has_ior: int
368
+ has_specular: int
369
+ has_sheen: int
370
+ has_emissive_strength: int
371
+ has_iridescence: int
372
+ has_diffuse_transmission: int
373
+ has_anisotropy: int
374
+ has_dispersion: int
375
+ pbr_metallic_roughness: cgltf_pbr_metallic_roughness
376
+ pbr_specular_glossiness: cgltf_pbr_specular_glossiness
377
+ clearcoat: cgltf_clearcoat
378
+ ior: cgltf_ior
379
+ specular: cgltf_specular
380
+ sheen: cgltf_sheen
381
+ transmission: cgltf_transmission
382
+ volume: cgltf_volume
383
+ emissive_strength: cgltf_emissive_strength
384
+ iridescence: cgltf_iridescence
385
+ diffuse_transmission: cgltf_diffuse_transmission
386
+ anisotropy: cgltf_anisotropy
387
+ dispersion: cgltf_dispersion
388
+ normal_texture: cgltf_texture_view
389
+ occlusion_texture: cgltf_texture_view
390
+ emissive_texture: cgltf_texture_view
391
+ emissive_factor: array[cgltf_float, 3]
392
+ alpha_mode: cgltf_alpha_mode
393
+ alpha_cutoff: float
394
+ double_sided: int
395
+ unlit: int
396
+ extras: cgltf_extras
397
+ extensions_count: ptr_uint
398
+ extensions: ptr[cgltf_extension]
399
+
400
+ struct cgltf_material_mapping:
401
+ variant_: ptr_uint
402
+ material: ptr[cgltf_material]
403
+ extras: cgltf_extras
404
+
405
+ struct cgltf_morph_target:
406
+ attributes: ptr[cgltf_attribute]
407
+ attributes_count: ptr_uint
408
+
409
+ struct cgltf_draco_mesh_compression:
410
+ buffer_view: ptr[cgltf_buffer_view]
411
+ attributes: ptr[cgltf_attribute]
412
+ attributes_count: ptr_uint
413
+
414
+ struct cgltf_mesh_gpu_instancing:
415
+ attributes: ptr[cgltf_attribute]
416
+ attributes_count: ptr_uint
417
+
418
+ struct cgltf_primitive:
419
+ type_: cgltf_primitive_type
420
+ indices: ptr[cgltf_accessor]
421
+ material: ptr[cgltf_material]
422
+ attributes: ptr[cgltf_attribute]
423
+ attributes_count: ptr_uint
424
+ targets: ptr[cgltf_morph_target]
425
+ targets_count: ptr_uint
426
+ extras: cgltf_extras
427
+ has_draco_mesh_compression: int
428
+ draco_mesh_compression: cgltf_draco_mesh_compression
429
+ mappings: ptr[cgltf_material_mapping]
430
+ mappings_count: ptr_uint
431
+ extensions_count: ptr_uint
432
+ extensions: ptr[cgltf_extension]
433
+
434
+ struct cgltf_mesh:
435
+ name: ptr[char]
436
+ primitives: ptr[cgltf_primitive]
437
+ primitives_count: ptr_uint
438
+ weights: ptr[cgltf_float]
439
+ weights_count: ptr_uint
440
+ target_names: ptr[ptr[char]]
441
+ target_names_count: ptr_uint
442
+ extras: cgltf_extras
443
+ extensions_count: ptr_uint
444
+ extensions: ptr[cgltf_extension]
445
+
446
+ struct cgltf_skin:
447
+ name: ptr[char]
448
+ joints: ptr[ptr[cgltf_node]]
449
+ joints_count: ptr_uint
450
+ skeleton: ptr[cgltf_node]
451
+ inverse_bind_matrices: ptr[cgltf_accessor]
452
+ extras: cgltf_extras
453
+ extensions_count: ptr_uint
454
+ extensions: ptr[cgltf_extension]
455
+
456
+ struct cgltf_camera_perspective:
457
+ has_aspect_ratio: int
458
+ aspect_ratio: float
459
+ yfov: float
460
+ has_zfar: int
461
+ zfar: float
462
+ znear: float
463
+ extras: cgltf_extras
464
+
465
+ struct cgltf_camera_orthographic:
466
+ xmag: float
467
+ ymag: float
468
+ zfar: float
469
+ znear: float
470
+ extras: cgltf_extras
471
+
472
+ struct cgltf_camera:
473
+ name: ptr[char]
474
+ type_: cgltf_camera_type
475
+ data: cgltf_camera_data
476
+ extras: cgltf_extras
477
+ extensions_count: ptr_uint
478
+ extensions: ptr[cgltf_extension]
479
+
480
+ struct cgltf_light:
481
+ name: ptr[char]
482
+ color: array[cgltf_float, 3]
483
+ intensity: float
484
+ type_: cgltf_light_type
485
+ range: float
486
+ spot_inner_cone_angle: float
487
+ spot_outer_cone_angle: float
488
+ extras: cgltf_extras
489
+
490
+ struct cgltf_node:
491
+ name: ptr[char]
492
+ parent: ptr[cgltf_node]
493
+ children: ptr[ptr[cgltf_node]]
494
+ children_count: ptr_uint
495
+ skin: ptr[cgltf_skin]
496
+ mesh: ptr[cgltf_mesh]
497
+ camera: ptr[cgltf_camera]
498
+ light: ptr[cgltf_light]
499
+ weights: ptr[cgltf_float]
500
+ weights_count: ptr_uint
501
+ has_translation: int
502
+ has_rotation: int
503
+ has_scale: int
504
+ has_matrix: int
505
+ translation: array[cgltf_float, 3]
506
+ rotation: array[cgltf_float, 4]
507
+ scale: array[cgltf_float, 3]
508
+ matrix: array[cgltf_float, 16]
509
+ extras: cgltf_extras
510
+ has_mesh_gpu_instancing: int
511
+ mesh_gpu_instancing: cgltf_mesh_gpu_instancing
512
+ extensions_count: ptr_uint
513
+ extensions: ptr[cgltf_extension]
514
+
515
+ struct cgltf_scene:
516
+ name: ptr[char]
517
+ nodes: ptr[ptr[cgltf_node]]
518
+ nodes_count: ptr_uint
519
+ extras: cgltf_extras
520
+ extensions_count: ptr_uint
521
+ extensions: ptr[cgltf_extension]
522
+
523
+ struct cgltf_animation_sampler:
524
+ input: ptr[cgltf_accessor]
525
+ output: ptr[cgltf_accessor]
526
+ interpolation: cgltf_interpolation_type
527
+ extras: cgltf_extras
528
+ extensions_count: ptr_uint
529
+ extensions: ptr[cgltf_extension]
530
+
531
+ struct cgltf_animation_channel:
532
+ sampler: ptr[cgltf_animation_sampler]
533
+ target_node: ptr[cgltf_node]
534
+ target_path: cgltf_animation_path_type
535
+ extras: cgltf_extras
536
+ extensions_count: ptr_uint
537
+ extensions: ptr[cgltf_extension]
538
+
539
+ struct cgltf_animation:
540
+ name: ptr[char]
541
+ samplers: ptr[cgltf_animation_sampler]
542
+ samplers_count: ptr_uint
543
+ channels: ptr[cgltf_animation_channel]
544
+ channels_count: ptr_uint
545
+ extras: cgltf_extras
546
+ extensions_count: ptr_uint
547
+ extensions: ptr[cgltf_extension]
548
+
549
+ struct cgltf_material_variant:
550
+ name: ptr[char]
551
+ extras: cgltf_extras
552
+
553
+ struct cgltf_asset:
554
+ copyright: ptr[char]
555
+ generator: ptr[char]
556
+ version: ptr[char]
557
+ min_version: ptr[char]
558
+ extras: cgltf_extras
559
+ extensions_count: ptr_uint
560
+ extensions: ptr[cgltf_extension]
561
+
562
+ struct cgltf_data:
563
+ file_type: cgltf_file_type
564
+ file_data: ptr[void]
565
+ asset: cgltf_asset
566
+ meshes: ptr[cgltf_mesh]
567
+ meshes_count: ptr_uint
568
+ materials: ptr[cgltf_material]
569
+ materials_count: ptr_uint
570
+ accessors: ptr[cgltf_accessor]
571
+ accessors_count: ptr_uint
572
+ buffer_views: ptr[cgltf_buffer_view]
573
+ buffer_views_count: ptr_uint
574
+ buffers: ptr[cgltf_buffer]
575
+ buffers_count: ptr_uint
576
+ images: ptr[cgltf_image]
577
+ images_count: ptr_uint
578
+ textures: ptr[cgltf_texture]
579
+ textures_count: ptr_uint
580
+ samplers: ptr[cgltf_sampler]
581
+ samplers_count: ptr_uint
582
+ skins: ptr[cgltf_skin]
583
+ skins_count: ptr_uint
584
+ cameras: ptr[cgltf_camera]
585
+ cameras_count: ptr_uint
586
+ lights: ptr[cgltf_light]
587
+ lights_count: ptr_uint
588
+ nodes: ptr[cgltf_node]
589
+ nodes_count: ptr_uint
590
+ scenes: ptr[cgltf_scene]
591
+ scenes_count: ptr_uint
592
+ scene: ptr[cgltf_scene]
593
+ animations: ptr[cgltf_animation]
594
+ animations_count: ptr_uint
595
+ variants: ptr[cgltf_material_variant]
596
+ variants_count: ptr_uint
597
+ extras: cgltf_extras
598
+ data_extensions_count: ptr_uint
599
+ data_extensions: ptr[cgltf_extension]
600
+ extensions_used: ptr[ptr[char]]
601
+ extensions_used_count: ptr_uint
602
+ extensions_required: ptr[ptr[char]]
603
+ extensions_required_count: ptr_uint
604
+ json: cstr
605
+ json_size: ptr_uint
606
+ bin: const_ptr[void]
607
+ bin_size: ptr_uint
608
+ memory: cgltf_memory_options
609
+ file: cgltf_file_options
610
+
611
+ external function cgltf_parse(options: const_ptr[cgltf_options], data: const_ptr[void], size: ptr_uint, out_data: ptr[ptr[cgltf_data]]) -> cgltf_result
612
+ external function cgltf_parse_file(options: const_ptr[cgltf_options], path: cstr, out_data: ptr[ptr[cgltf_data]]) -> cgltf_result
613
+ external function cgltf_load_buffers(options: const_ptr[cgltf_options], data: ptr[cgltf_data], gltf_path: cstr) -> cgltf_result
614
+ external function cgltf_load_buffer_base64(options: const_ptr[cgltf_options], size: ptr_uint, base64: cstr, out_data: ptr[ptr[void]]) -> cgltf_result
615
+ external function cgltf_decode_string(string: ptr[char]) -> cgltf_size
616
+ external function cgltf_decode_uri(uri: ptr[char]) -> cgltf_size
617
+ external function cgltf_validate(data: ptr[cgltf_data]) -> cgltf_result
618
+ external function cgltf_free(data: ptr[cgltf_data]) -> void
619
+ external function cgltf_node_transform_local(node: const_ptr[cgltf_node], out_matrix: ptr[cgltf_float]) -> void
620
+ external function cgltf_node_transform_world(node: const_ptr[cgltf_node], out_matrix: ptr[cgltf_float]) -> void
621
+ external function cgltf_buffer_view_data(view: const_ptr[cgltf_buffer_view]) -> const_ptr[ubyte]
622
+ external function cgltf_find_accessor(prim: const_ptr[cgltf_primitive], type_: cgltf_attribute_type, index: int) -> const_ptr[cgltf_accessor]
623
+ external function cgltf_accessor_read_float(accessor: const_ptr[cgltf_accessor], index: ptr_uint, out_: ptr[cgltf_float], element_size: ptr_uint) -> cgltf_bool
624
+ external function cgltf_accessor_read_uint(accessor: const_ptr[cgltf_accessor], index: ptr_uint, out_: ptr[cgltf_uint], element_size: ptr_uint) -> cgltf_bool
625
+ external function cgltf_accessor_read_index(accessor: const_ptr[cgltf_accessor], index: ptr_uint) -> cgltf_size
626
+ external function cgltf_num_components(type_: cgltf_type) -> cgltf_size
627
+ external function cgltf_component_size(component_type: cgltf_component_type) -> cgltf_size
628
+ external function cgltf_calc_size(type_: cgltf_type, component_type: cgltf_component_type) -> cgltf_size
629
+ external function cgltf_accessor_unpack_floats(accessor: const_ptr[cgltf_accessor], out_: ptr[cgltf_float], float_count: ptr_uint) -> cgltf_size
630
+ external function cgltf_accessor_unpack_indices(accessor: const_ptr[cgltf_accessor], out_: ptr[void], out_component_size: ptr_uint, index_count: ptr_uint) -> cgltf_size
631
+ external function cgltf_copy_extras_json(data: const_ptr[cgltf_data], extras: const_ptr[cgltf_extras], dest: ptr[char], dest_size: ptr[cgltf_size]) -> cgltf_result
632
+ external function cgltf_mesh_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_mesh]) -> cgltf_size
633
+ external function cgltf_material_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_material]) -> cgltf_size
634
+ external function cgltf_accessor_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_accessor]) -> cgltf_size
635
+ external function cgltf_buffer_view_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_buffer_view]) -> cgltf_size
636
+ external function cgltf_buffer_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_buffer]) -> cgltf_size
637
+ external function cgltf_image_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_image]) -> cgltf_size
638
+ external function cgltf_texture_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_texture]) -> cgltf_size
639
+ external function cgltf_sampler_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_sampler]) -> cgltf_size
640
+ external function cgltf_skin_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_skin]) -> cgltf_size
641
+ external function cgltf_camera_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_camera]) -> cgltf_size
642
+ external function cgltf_light_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_light]) -> cgltf_size
643
+ external function cgltf_node_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_node]) -> cgltf_size
644
+ external function cgltf_scene_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_scene]) -> cgltf_size
645
+ external function cgltf_animation_index(data: const_ptr[cgltf_data], object: const_ptr[cgltf_animation]) -> cgltf_size
646
+ external function cgltf_animation_sampler_index(animation: const_ptr[cgltf_animation], object: const_ptr[cgltf_animation_sampler]) -> cgltf_size
647
+ external function cgltf_animation_channel_index(animation: const_ptr[cgltf_animation], object: const_ptr[cgltf_animation_channel]) -> cgltf_size