koffi 2.1.0 → 2.1.2

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 (313) hide show
  1. package/ChangeLog.md +13 -1
  2. package/build/qemu/2.1.2/koffi_darwin_arm64.tar.gz +0 -0
  3. package/build/qemu/2.1.2/koffi_darwin_x64.tar.gz +0 -0
  4. package/build/qemu/2.1.2/koffi_freebsd_arm64.tar.gz +0 -0
  5. package/build/qemu/2.1.2/koffi_freebsd_ia32.tar.gz +0 -0
  6. package/build/qemu/2.1.2/koffi_freebsd_x64.tar.gz +0 -0
  7. package/build/qemu/2.1.2/koffi_linux_arm32hf.tar.gz +0 -0
  8. package/build/qemu/2.1.2/koffi_linux_arm64.tar.gz +0 -0
  9. package/build/qemu/2.1.2/koffi_linux_ia32.tar.gz +0 -0
  10. package/build/qemu/2.1.2/koffi_linux_riscv64hf64.tar.gz +0 -0
  11. package/build/qemu/2.1.2/koffi_linux_x64.tar.gz +0 -0
  12. package/build/qemu/2.1.2/koffi_openbsd_ia32.tar.gz +0 -0
  13. package/build/qemu/2.1.2/koffi_openbsd_x64.tar.gz +0 -0
  14. package/build/qemu/2.1.2/koffi_win32_arm64.tar.gz +0 -0
  15. package/build/qemu/2.1.2/koffi_win32_ia32.tar.gz +0 -0
  16. package/build/qemu/2.1.2/koffi_win32_x64.tar.gz +0 -0
  17. package/doc/templates/badges.html +3 -0
  18. package/package.json +2 -2
  19. package/src/abi_arm64.cc +35 -1
  20. package/src/abi_x64_win.cc +2 -8
  21. package/src/abi_x86.cc +1 -7
  22. package/src/call.cc +2 -2
  23. package/src/call.hh +1 -1
  24. package/src/ffi.hh +1 -1
  25. package/src/util.hh +6 -0
  26. package/test/raylib.js +37 -5
  27. package/vendor/libcc/libcc.cc +488 -254
  28. package/vendor/libcc/libcc.hh +1463 -1277
  29. package/vendor/raylib/BINDINGS.md +87 -70
  30. package/vendor/raylib/CHANGELOG +263 -50
  31. package/vendor/raylib/CMakeLists.txt +12 -0
  32. package/vendor/raylib/CMakeOptions.txt +8 -1
  33. package/vendor/raylib/CONVENTIONS.md +2 -3
  34. package/vendor/raylib/FAQ.md +137 -0
  35. package/vendor/raylib/HISTORY.md +62 -29
  36. package/vendor/raylib/LICENSE +1 -1
  37. package/vendor/raylib/README.md +22 -17
  38. package/vendor/raylib/ROADMAP.md +8 -7
  39. package/vendor/raylib/cmake/CompileDefinitions.cmake +19 -15
  40. package/vendor/raylib/cmake/GlfwImport.cmake +2 -0
  41. package/vendor/raylib/cmake/LibraryConfigurations.cmake +22 -16
  42. package/vendor/raylib/cmake/raylib-config.cmake +52 -49
  43. package/vendor/raylib/examples/CMakeLists.txt +14 -9
  44. package/vendor/raylib/examples/Makefile +112 -125
  45. package/vendor/raylib/examples/Makefile.Android +1 -1
  46. package/vendor/raylib/examples/Makefile.Web +145 -158
  47. package/vendor/raylib/examples/README.md +141 -141
  48. package/vendor/raylib/examples/audio/audio_module_playing.c +9 -4
  49. package/vendor/raylib/examples/audio/audio_multichannel_sound.c +8 -3
  50. package/vendor/raylib/examples/audio/audio_music_stream.c +16 -11
  51. package/vendor/raylib/examples/audio/audio_raw_stream.c +57 -9
  52. package/vendor/raylib/examples/audio/audio_sound_loading.c +8 -3
  53. package/vendor/raylib/examples/audio/audio_stream_effects.c +179 -0
  54. package/vendor/raylib/examples/audio/audio_stream_effects.png +0 -0
  55. package/vendor/raylib/examples/build.zig +17 -6
  56. package/vendor/raylib/examples/core/core_2d_camera.c +8 -4
  57. package/vendor/raylib/examples/core/core_2d_camera_mouse_zoom.c +105 -0
  58. package/vendor/raylib/examples/core/core_2d_camera_mouse_zoom.png +0 -0
  59. package/vendor/raylib/examples/core/core_2d_camera_platformer.c +11 -6
  60. package/vendor/raylib/examples/core/core_3d_camera_first_person.c +9 -4
  61. package/vendor/raylib/examples/core/core_3d_camera_free.c +9 -4
  62. package/vendor/raylib/examples/core/core_3d_camera_mode.c +8 -3
  63. package/vendor/raylib/examples/core/core_3d_picking.c +9 -4
  64. package/vendor/raylib/examples/core/core_basic_screen_manager.c +9 -7
  65. package/vendor/raylib/examples/core/core_basic_window.c +8 -3
  66. package/vendor/raylib/examples/core/core_basic_window_web.c +13 -11
  67. package/vendor/raylib/examples/core/core_custom_frame_control.c +9 -4
  68. package/vendor/raylib/examples/core/core_custom_logging.c +12 -8
  69. package/vendor/raylib/examples/core/core_drop_files.c +20 -12
  70. package/vendor/raylib/examples/core/core_input_gamepad.c +20 -15
  71. package/vendor/raylib/examples/core/core_input_gestures.c +19 -15
  72. package/vendor/raylib/examples/core/core_input_keys.c +8 -3
  73. package/vendor/raylib/examples/core/core_input_mouse.c +8 -3
  74. package/vendor/raylib/examples/core/core_input_mouse_wheel.c +8 -3
  75. package/vendor/raylib/examples/core/core_input_multitouch.c +8 -3
  76. package/vendor/raylib/examples/core/core_loading_thread.c +10 -6
  77. package/vendor/raylib/examples/core/core_random_values.c +8 -3
  78. package/vendor/raylib/examples/core/core_scissor_test.c +8 -3
  79. package/vendor/raylib/examples/core/core_smooth_pixelperfect.c +9 -4
  80. package/vendor/raylib/examples/core/core_split_screen.c +8 -3
  81. package/vendor/raylib/examples/core/core_storage_values.c +109 -3
  82. package/vendor/raylib/examples/core/core_vr_simulator.c +15 -7
  83. package/vendor/raylib/examples/core/core_window_flags.c +8 -3
  84. package/vendor/raylib/examples/core/core_window_letterbox.c +13 -18
  85. package/vendor/raylib/examples/core/core_window_should_close.c +77 -0
  86. package/vendor/raylib/examples/core/core_window_should_close.png +0 -0
  87. package/vendor/raylib/examples/core/core_world_screen.c +9 -4
  88. package/vendor/raylib/examples/examples_template.c +8 -3
  89. package/vendor/raylib/examples/models/models_animation.c +11 -7
  90. package/vendor/raylib/examples/models/models_billboard.c +9 -4
  91. package/vendor/raylib/examples/models/models_box_collisions.c +8 -3
  92. package/vendor/raylib/examples/models/models_cubicmap.c +9 -4
  93. package/vendor/raylib/examples/models/models_first_person_maze.c +9 -4
  94. package/vendor/raylib/examples/models/models_geometric_shapes.c +8 -3
  95. package/vendor/raylib/examples/models/models_heightmap.c +9 -4
  96. package/vendor/raylib/examples/models/models_loading.c +21 -17
  97. package/vendor/raylib/examples/models/models_loading_gltf.c +15 -41
  98. package/vendor/raylib/examples/models/models_loading_vox.c +9 -4
  99. package/vendor/raylib/examples/models/models_mesh_generation.c +71 -58
  100. package/vendor/raylib/examples/models/models_mesh_picking.c +25 -7
  101. package/vendor/raylib/examples/models/models_orthographic_projection.c +8 -5
  102. package/vendor/raylib/examples/models/models_rlgl_solar_system.c +6 -4
  103. package/vendor/raylib/examples/models/models_skybox.c +16 -12
  104. package/vendor/raylib/examples/models/models_waving_cubes.c +9 -4
  105. package/vendor/raylib/examples/models/models_yaw_pitch_roll.c +12 -7
  106. package/vendor/raylib/examples/models/resources/LICENSE.md +9 -10
  107. package/vendor/raylib/examples/models/resources/models/gltf/LICENSE +2 -23
  108. package/vendor/raylib/examples/models/resources/models/gltf/{raylib_32x32.glb → raylib_logo_3d.glb} +0 -0
  109. package/vendor/raylib/examples/models/resources/models/gltf/robot.blend +0 -0
  110. package/vendor/raylib/examples/models/resources/models/gltf/robot.glb +0 -0
  111. package/vendor/raylib/examples/others/easings_testbed.c +10 -8
  112. package/vendor/raylib/examples/others/easings_testbed.png +0 -0
  113. package/vendor/raylib/examples/others/embedded_files_loading.c +10 -5
  114. package/vendor/raylib/examples/others/embedded_files_loading.png +0 -0
  115. package/vendor/raylib/examples/others/raylib_opengl_interop.c +10 -6
  116. package/vendor/raylib/{src/extras/easings.h → examples/others/reasings.h} +38 -38
  117. package/vendor/raylib/examples/others/rlgl_compute_shader.c +21 -20
  118. package/vendor/raylib/examples/others/rlgl_compute_shader.png +0 -0
  119. package/vendor/raylib/examples/others/rlgl_standalone.c +4 -4
  120. package/vendor/raylib/examples/others/rlgl_standalone.png +0 -0
  121. package/vendor/raylib/examples/raylib_compile_execute.bat +2 -2
  122. package/vendor/raylib/examples/shaders/resources/shaders/glsl330/lighting.fs +1 -1
  123. package/vendor/raylib/examples/shaders/resources/shaders/glsl330/{base_lighting_instanced.vs → lighting_instancing.vs} +2 -2
  124. package/vendor/raylib/examples/shaders/rlights.h +14 -27
  125. package/vendor/raylib/examples/shaders/shaders_basic_lighting.c +24 -26
  126. package/vendor/raylib/examples/shaders/shaders_custom_uniform.c +10 -5
  127. package/vendor/raylib/examples/shaders/shaders_eratosthenes.c +13 -8
  128. package/vendor/raylib/examples/shaders/shaders_fog.c +8 -12
  129. package/vendor/raylib/examples/shaders/shaders_hot_reloading.c +10 -5
  130. package/vendor/raylib/examples/shaders/shaders_julia_set.c +9 -4
  131. package/vendor/raylib/examples/shaders/shaders_mesh_instancing.c +45 -119
  132. package/vendor/raylib/examples/shaders/shaders_model_shader.c +10 -5
  133. package/vendor/raylib/examples/shaders/shaders_multi_sample2d.c +8 -3
  134. package/vendor/raylib/examples/shaders/shaders_palette_switch.c +8 -3
  135. package/vendor/raylib/examples/shaders/shaders_postprocessing.c +9 -4
  136. package/vendor/raylib/examples/shaders/shaders_raymarching.c +14 -11
  137. package/vendor/raylib/examples/shaders/shaders_shapes_textures.c +8 -3
  138. package/vendor/raylib/examples/shaders/shaders_simple_mask.c +10 -5
  139. package/vendor/raylib/examples/shaders/shaders_spotlight.c +10 -6
  140. package/vendor/raylib/examples/shaders/shaders_texture_drawing.c +9 -4
  141. package/vendor/raylib/examples/shaders/shaders_texture_outline.c +8 -3
  142. package/vendor/raylib/examples/shaders/shaders_texture_waves.c +8 -3
  143. package/vendor/raylib/{src/extras → examples/shapes}/raygui.h +1290 -1141
  144. package/vendor/raylib/examples/{others/easings.h → shapes/reasings.h} +40 -40
  145. package/vendor/raylib/examples/shapes/shapes_basic_shapes.c +8 -3
  146. package/vendor/raylib/examples/shapes/shapes_bouncing_ball.c +8 -3
  147. package/vendor/raylib/examples/shapes/shapes_collision_area.c +10 -4
  148. package/vendor/raylib/examples/shapes/shapes_colors_palette.c +8 -3
  149. package/vendor/raylib/examples/shapes/shapes_draw_circle_sector.c +9 -4
  150. package/vendor/raylib/examples/shapes/shapes_draw_rectangle_rounded.c +9 -4
  151. package/vendor/raylib/examples/shapes/shapes_draw_ring.c +10 -6
  152. package/vendor/raylib/examples/shapes/shapes_easings_ball_anim.c +9 -4
  153. package/vendor/raylib/examples/shapes/shapes_easings_box_anim.c +9 -4
  154. package/vendor/raylib/examples/shapes/shapes_easings_rectangle_array.c +9 -4
  155. package/vendor/raylib/examples/shapes/shapes_following_eyes.c +8 -3
  156. package/vendor/raylib/examples/shapes/shapes_lines_bezier.c +8 -3
  157. package/vendor/raylib/examples/shapes/shapes_logo_raylib.c +8 -3
  158. package/vendor/raylib/examples/shapes/shapes_logo_raylib_anim.c +8 -3
  159. package/vendor/raylib/examples/shapes/shapes_rectangle_scaling.c +14 -5
  160. package/vendor/raylib/examples/shapes/shapes_top_down_lights.c +355 -0
  161. package/vendor/raylib/examples/shapes/shapes_top_down_lights.png +0 -0
  162. package/vendor/raylib/examples/text/resources/DotGothic16-Regular.ttf +0 -0
  163. package/vendor/raylib/examples/text/resources/DotGothic16-Regular_OFL.txt +93 -0
  164. package/vendor/raylib/examples/text/resources/LICENSE.md +1 -1
  165. package/vendor/raylib/examples/text/text_codepoints_loading.c +138 -0
  166. package/vendor/raylib/examples/text/text_codepoints_loading.png +0 -0
  167. package/vendor/raylib/examples/text/text_draw_3d.c +42 -33
  168. package/vendor/raylib/examples/text/text_font_filters.c +14 -11
  169. package/vendor/raylib/examples/text/text_font_loading.c +9 -4
  170. package/vendor/raylib/examples/text/text_font_sdf.c +9 -4
  171. package/vendor/raylib/examples/text/text_font_spritefont.c +12 -6
  172. package/vendor/raylib/examples/text/text_format_text.c +8 -3
  173. package/vendor/raylib/examples/text/text_input_box.c +8 -3
  174. package/vendor/raylib/examples/text/text_raylib_fonts.c +9 -4
  175. package/vendor/raylib/examples/text/text_rectangle_bounds.c +9 -5
  176. package/vendor/raylib/examples/text/text_unicode.c +9 -7
  177. package/vendor/raylib/examples/text/text_writing_anim.c +8 -3
  178. package/vendor/raylib/examples/textures/resources/scarfy_run.gif +0 -0
  179. package/vendor/raylib/examples/textures/textures_background_scrolling.c +8 -3
  180. package/vendor/raylib/examples/textures/textures_blend_modes.c +8 -3
  181. package/vendor/raylib/examples/textures/textures_bunnymark.c +8 -3
  182. package/vendor/raylib/examples/textures/textures_draw_tiled.c +14 -10
  183. package/vendor/raylib/examples/textures/textures_fog_of_war.c +154 -0
  184. package/vendor/raylib/examples/textures/textures_fog_of_war.png +0 -0
  185. package/vendor/raylib/examples/textures/textures_gif_player.c +121 -0
  186. package/vendor/raylib/examples/textures/textures_gif_player.png +0 -0
  187. package/vendor/raylib/examples/textures/textures_image_drawing.c +8 -3
  188. package/vendor/raylib/examples/textures/textures_image_generation.c +8 -3
  189. package/vendor/raylib/examples/textures/textures_image_loading.c +8 -3
  190. package/vendor/raylib/examples/textures/textures_image_processing.c +8 -3
  191. package/vendor/raylib/examples/textures/textures_image_text.c +8 -3
  192. package/vendor/raylib/examples/textures/textures_logo_raylib.c +8 -3
  193. package/vendor/raylib/examples/textures/textures_mouse_painting.c +9 -4
  194. package/vendor/raylib/examples/textures/textures_npatch_drawing.c +8 -3
  195. package/vendor/raylib/examples/textures/textures_particles_blending.c +8 -3
  196. package/vendor/raylib/examples/textures/textures_polygon.c +9 -5
  197. package/vendor/raylib/examples/textures/textures_raw_data.c +8 -3
  198. package/vendor/raylib/examples/textures/{textures_rectangle.c → textures_sprite_anim.c} +11 -5
  199. package/vendor/raylib/examples/textures/{textures_rectangle.png → textures_sprite_anim.png} +0 -0
  200. package/vendor/raylib/examples/textures/textures_sprite_button.c +8 -3
  201. package/vendor/raylib/examples/textures/textures_sprite_explosion.c +8 -3
  202. package/vendor/raylib/examples/textures/textures_srcrec_dstrec.c +8 -3
  203. package/vendor/raylib/examples/textures/textures_to_image.c +8 -3
  204. package/vendor/raylib/parser/LICENSE +1 -1
  205. package/vendor/raylib/parser/Makefile +28 -0
  206. package/vendor/raylib/parser/README.md +49 -5
  207. package/vendor/raylib/parser/output/raylib_api.json +10717 -0
  208. package/vendor/raylib/parser/output/raylib_api.lua +7435 -0
  209. package/vendor/raylib/parser/{raylib_api.txt → output/raylib_api.txt} +1371 -824
  210. package/vendor/raylib/parser/{raylib_api.xml → output/raylib_api.xml} +827 -595
  211. package/vendor/raylib/parser/raylib_parser.c +1174 -196
  212. package/vendor/raylib/projects/4coder/Makefile +2 -4
  213. package/vendor/raylib/projects/4coder/main.c +0 -1
  214. package/vendor/raylib/projects/CMake/CMakeLists.txt +13 -16
  215. package/vendor/raylib/projects/CMake/README.md +27 -0
  216. package/vendor/raylib/projects/CMake/core_basic_window.c +52 -31
  217. package/vendor/raylib/projects/CodeBlocks/README.md +4 -4
  218. package/vendor/raylib/projects/Geany/core_basic_window.c +1 -1
  219. package/vendor/raylib/projects/Notepad++/c_raylib.xml +168 -128
  220. package/vendor/raylib/projects/Notepad++/npes_saved_tcc.txt +0 -0
  221. package/vendor/raylib/projects/Notepad++/npes_saved_w64devkit.txt +0 -0
  222. package/vendor/raylib/projects/Notepad++/npes_saved_zig.txt +0 -0
  223. package/vendor/raylib/projects/Notepad++/raylib_npp_parser/raylib_npp.xml +168 -84
  224. package/vendor/raylib/projects/Notepad++/raylib_npp_parser/raylib_to_parse.h +67 -51
  225. package/vendor/raylib/projects/README.md +1 -1
  226. package/vendor/raylib/projects/VSCode/.vscode/c_cpp_properties.json +1 -1
  227. package/vendor/raylib/projects/VSCode/Makefile +8 -11
  228. package/vendor/raylib/projects/VSCode/main.c +53 -26
  229. package/vendor/raylib/projects/VSCode/resources/LICENSE +1 -0
  230. package/vendor/raylib/projects/scripts/build-linux.sh +6 -6
  231. package/vendor/raylib/projects/scripts/build-osx.sh +6 -6
  232. package/vendor/raylib/projects/scripts/build-rpi.sh +6 -6
  233. package/vendor/raylib/projects/scripts/build-windows.bat +2 -2
  234. package/vendor/raylib/src/CMakeLists.txt +6 -7
  235. package/vendor/raylib/src/Makefile +209 -103
  236. package/vendor/raylib/src/build.zig +56 -20
  237. package/vendor/raylib/src/config.h +32 -27
  238. package/vendor/raylib/src/external/cgltf.h +342 -104
  239. package/vendor/raylib/src/external/dr_wav.h +487 -225
  240. package/vendor/raylib/src/external/glfw/src/posix_time.c +1 -3
  241. package/vendor/raylib/src/external/glfw/src/wl_init.c +1 -3
  242. package/vendor/raylib/src/external/jar_xm.h +2 -1
  243. package/vendor/raylib/src/external/miniaudio.h +62251 -42061
  244. package/vendor/raylib/src/external/qoi.h +671 -0
  245. package/vendor/raylib/src/external/stb_vorbis.h +1 -1
  246. package/vendor/raylib/src/external/vox_loader.h +30 -25
  247. package/vendor/raylib/src/minshell.html +82 -0
  248. package/vendor/raylib/src/raudio.c +359 -201
  249. package/vendor/raylib/src/raylib.dll.rc +5 -5
  250. package/vendor/raylib/src/raylib.dll.rc.data +0 -0
  251. package/vendor/raylib/src/raylib.h +95 -63
  252. package/vendor/raylib/src/raylib.rc +5 -5
  253. package/vendor/raylib/src/raylib.rc.data +0 -0
  254. package/vendor/raylib/src/raymath.h +391 -133
  255. package/vendor/raylib/src/rcamera.h +32 -41
  256. package/vendor/raylib/src/rcore.c +775 -471
  257. package/vendor/raylib/src/rgestures.h +5 -5
  258. package/vendor/raylib/src/rglfw.c +3 -3
  259. package/vendor/raylib/src/rlgl.h +184 -144
  260. package/vendor/raylib/src/rmodels.c +207 -144
  261. package/vendor/raylib/src/rshapes.c +105 -47
  262. package/vendor/raylib/src/rtext.c +255 -38
  263. package/vendor/raylib/src/rtextures.c +167 -71
  264. package/vendor/raylib/src/shell.html +63 -63
  265. package/vendor/raylib/src/utils.c +49 -3
  266. package/vendor/raylib/src/utils.h +3 -3
  267. package/build/qemu/2.1.0/koffi_darwin_arm64.tar.gz +0 -0
  268. package/build/qemu/2.1.0/koffi_darwin_x64.tar.gz +0 -0
  269. package/build/qemu/2.1.0/koffi_freebsd_arm64.tar.gz +0 -0
  270. package/build/qemu/2.1.0/koffi_freebsd_ia32.tar.gz +0 -0
  271. package/build/qemu/2.1.0/koffi_freebsd_x64.tar.gz +0 -0
  272. package/build/qemu/2.1.0/koffi_linux_arm32hf.tar.gz +0 -0
  273. package/build/qemu/2.1.0/koffi_linux_arm64.tar.gz +0 -0
  274. package/build/qemu/2.1.0/koffi_linux_ia32.tar.gz +0 -0
  275. package/build/qemu/2.1.0/koffi_linux_riscv64hf64.tar.gz +0 -0
  276. package/build/qemu/2.1.0/koffi_linux_x64.tar.gz +0 -0
  277. package/build/qemu/2.1.0/koffi_openbsd_ia32.tar.gz +0 -0
  278. package/build/qemu/2.1.0/koffi_openbsd_x64.tar.gz +0 -0
  279. package/build/qemu/2.1.0/koffi_win32_arm64.tar.gz +0 -0
  280. package/build/qemu/2.1.0/koffi_win32_ia32.tar.gz +0 -0
  281. package/build/qemu/2.1.0/koffi_win32_x64.tar.gz +0 -0
  282. package/vendor/raylib/CONTRIBUTORS.md +0 -63
  283. package/vendor/raylib/SPONSORS.md +0 -68
  284. package/vendor/raylib/examples/core/core_quat_conversion.c +0 -132
  285. package/vendor/raylib/examples/core/core_quat_conversion.png +0 -0
  286. package/vendor/raylib/examples/models/resources/models/gltf/AnimatedMorphCube.glb +0 -0
  287. package/vendor/raylib/examples/models/resources/models/gltf/AnimatedTriangle.gltf +0 -118
  288. package/vendor/raylib/examples/models/resources/models/gltf/BoxAnimated.glb +0 -0
  289. package/vendor/raylib/examples/models/resources/models/gltf/girl.glb +0 -0
  290. package/vendor/raylib/examples/models/resources/models/gltf/rigged_figure.glb +0 -0
  291. package/vendor/raylib/examples/models/resources/models/gltf/vertex_colored_object.glb +0 -0
  292. package/vendor/raylib/examples/models/resources/models/iqm/vertex_colored_object.iqm +0 -0
  293. package/vendor/raylib/examples/models/rlights.h +0 -183
  294. package/vendor/raylib/examples/others/raudio_standalone.c +0 -152
  295. package/vendor/raylib/examples/others/resources/audio/country.mp3 +0 -0
  296. package/vendor/raylib/examples/others/resources/audio/target.ogg +0 -0
  297. package/vendor/raylib/examples/others/resources/audio/weird.wav +0 -0
  298. package/vendor/raylib/examples/physics/physics_demo.c +0 -128
  299. package/vendor/raylib/examples/physics/physics_demo.png +0 -0
  300. package/vendor/raylib/examples/physics/physics_friction.c +0 -142
  301. package/vendor/raylib/examples/physics/physics_friction.png +0 -0
  302. package/vendor/raylib/examples/physics/physics_movement.c +0 -128
  303. package/vendor/raylib/examples/physics/physics_movement.png +0 -0
  304. package/vendor/raylib/examples/physics/physics_restitution.c +0 -129
  305. package/vendor/raylib/examples/physics/physics_restitution.png +0 -0
  306. package/vendor/raylib/examples/physics/physics_shatter.c +0 -111
  307. package/vendor/raylib/examples/physics/physics_shatter.png +0 -0
  308. package/vendor/raylib/parser/raylib_api.json +0 -6668
  309. package/vendor/raylib/projects/VS2019/raylib/raylib.rc +0 -0
  310. package/vendor/raylib/projects/VS2019/raylib/resource.h +0 -14
  311. package/vendor/raylib/src/extras/physac.h +0 -1977
  312. package/vendor/raylib/src/extras/rmem.h +0 -751
  313. package/vendor/raylib/src/raudio.h +0 -198
@@ -2,10 +2,14 @@
2
2
  *
3
3
  * raylib [textures] example - Draw part of the texture tiled
4
4
  *
5
- * This example has been created using raylib 3.0 (www.raylib.com)
6
- * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
5
+ * Example originally created with raylib 3.0, last time updated with raylib 4.2
7
6
  *
8
- * Copyright (c) 2020 Vlad Adrian (@demizdor) and Ramon Santamaria (@raysan5)
7
+ * Example contributed by Vlad Adrian (@demizdor) and reviewed by Ramon Santamaria (@raysan5)
8
+ *
9
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
10
+ * BSD-like license that allows static linking with closed source software
11
+ *
12
+ * Copyright (c) 2020-2022 Vlad Adrian (@demizdor) and Ramon Santamaria (@raysan5)
9
13
  *
10
14
  ********************************************************************************************/
11
15
  #include "raylib.h"
@@ -15,12 +19,15 @@
15
19
  #define MARGIN_SIZE 8 // Size for the margins
16
20
  #define COLOR_SIZE 16 // Size of the color select buttons
17
21
 
22
+ //------------------------------------------------------------------------------------
23
+ // Program main entry point
24
+ //------------------------------------------------------------------------------------
18
25
  int main(int argc, char **argv)
19
26
  {
20
27
  // Initialization
21
28
  //--------------------------------------------------------------------------------------
22
- int screenWidth = 800;
23
- int screenHeight = 450;
29
+ const int screenWidth = 800;
30
+ const int screenHeight = 450;
24
31
 
25
32
  SetConfigFlags(FLAG_WINDOW_RESIZABLE); // Make the window resizable
26
33
  InitWindow(screenWidth, screenHeight, "raylib [textures] example - Draw part of a texture tiled");
@@ -71,9 +78,6 @@ int main(int argc, char **argv)
71
78
  {
72
79
  // Update
73
80
  //----------------------------------------------------------------------------------
74
- screenWidth = GetScreenWidth();
75
- screenHeight = GetScreenHeight();
76
-
77
81
  // Handle mouse
78
82
  if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT))
79
83
  {
@@ -122,11 +126,11 @@ int main(int argc, char **argv)
122
126
  ClearBackground(RAYWHITE);
123
127
 
124
128
  // Draw the tiled area
125
- DrawTextureTiled(texPattern, recPattern[activePattern], (Rectangle){(float)OPT_WIDTH+MARGIN_SIZE, (float)MARGIN_SIZE, screenWidth - OPT_WIDTH - 2.0f*MARGIN_SIZE, screenHeight - 2.0f*MARGIN_SIZE},
129
+ DrawTextureTiled(texPattern, recPattern[activePattern], (Rectangle){(float)OPT_WIDTH+MARGIN_SIZE, (float)MARGIN_SIZE, GetScreenWidth() - OPT_WIDTH - 2.0f*MARGIN_SIZE, GetScreenHeight() - 2.0f*MARGIN_SIZE},
126
130
  (Vector2){0.0f, 0.0f}, rotation, scale, colors[activeCol]);
127
131
 
128
132
  // Draw options
129
- DrawRectangle(MARGIN_SIZE, MARGIN_SIZE, OPT_WIDTH - MARGIN_SIZE, screenHeight - 2*MARGIN_SIZE, ColorAlpha(LIGHTGRAY, 0.5f));
133
+ DrawRectangle(MARGIN_SIZE, MARGIN_SIZE, OPT_WIDTH - MARGIN_SIZE, GetScreenHeight() - 2*MARGIN_SIZE, ColorAlpha(LIGHTGRAY, 0.5f));
130
134
 
131
135
  DrawText("Select Pattern", 2 + MARGIN_SIZE, 30 + MARGIN_SIZE, 10, BLACK);
132
136
  DrawTexture(texPattern, 2 + MARGIN_SIZE, 40 + MARGIN_SIZE, BLACK);
@@ -0,0 +1,154 @@
1
+ /*******************************************************************************************
2
+ *
3
+ * raylib [textures] example - Fog of war
4
+ *
5
+ * Example originally created with raylib 4.2, last time updated with raylib 4.2
6
+ *
7
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
8
+ * BSD-like license that allows static linking with closed source software
9
+ *
10
+ * Copyright (c) 2018-2022 Ramon Santamaria (@raysan5)
11
+ *
12
+ ********************************************************************************************/
13
+
14
+ #include "raylib.h"
15
+
16
+ #include <stdlib.h> // Required for: calloc(), free()
17
+
18
+ #define MAP_TILE_SIZE 32 // Tiles size 32x32 pixels
19
+ #define PLAYER_SIZE 16 // Player size
20
+ #define PLAYER_TILE_VISIBILITY 2 // Player can see 2 tiles around its position
21
+
22
+ // Map data type
23
+ typedef struct Map {
24
+ unsigned int tilesX; // Number of tiles in X axis
25
+ unsigned int tilesY; // Number of tiles in Y axis
26
+ unsigned char *tileIds; // Tile ids (tilesX*tilesY), defines type of tile to draw
27
+ unsigned char *tileFog; // Tile fog state (tilesX*tilesY), defines if a tile has fog or half-fog
28
+ } Map;
29
+
30
+ //------------------------------------------------------------------------------------
31
+ // Program main entry point
32
+ //------------------------------------------------------------------------------------
33
+ int main(void)
34
+ {
35
+ // Initialization
36
+ //--------------------------------------------------------------------------------------
37
+ int screenWidth = 800;
38
+ int screenHeight = 450;
39
+
40
+ InitWindow(screenWidth, screenHeight, "raylib [textures] example - fog of war");
41
+
42
+ Map map = { 0 };
43
+ map.tilesX = 25;
44
+ map.tilesY = 15;
45
+
46
+ // NOTE: We can have up to 256 values for tile ids and for tile fog state,
47
+ // probably we don't need that many values for fog state, it can be optimized
48
+ // to use only 2 bits per fog state (reducing size by 4) but logic will be a bit more complex
49
+ map.tileIds = (unsigned char *)calloc(map.tilesX*map.tilesY, sizeof(unsigned char));
50
+ map.tileFog = (unsigned char *)calloc(map.tilesX*map.tilesY, sizeof(unsigned char));
51
+
52
+ // Load map tiles (generating 2 random tile ids for testing)
53
+ // NOTE: Map tile ids should be probably loaded from an external map file
54
+ for (int i = 0; i < map.tilesY*map.tilesX; i++) map.tileIds[i] = GetRandomValue(0, 1);
55
+
56
+ // Player position on the screen (pixel coordinates, not tile coordinates)
57
+ Vector2 playerPosition = { 180, 130 };
58
+ int playerTileX = 0;
59
+ int playerTileY = 0;
60
+
61
+ // Render texture to render fog of war
62
+ // NOTE: To get an automatic smooth-fog effect we use a render texture to render fog
63
+ // at a smaller size (one pixel per tile) and scale it on drawing with bilinear filtering
64
+ RenderTexture2D fogOfWar = LoadRenderTexture(map.tilesX, map.tilesY);
65
+ SetTextureFilter(fogOfWar.texture, TEXTURE_FILTER_BILINEAR);
66
+
67
+ SetTargetFPS(60); // Set our game to run at 60 frames-per-second
68
+ //--------------------------------------------------------------------------------------
69
+
70
+ // Main game loop
71
+ while (!WindowShouldClose()) // Detect window close button or ESC key
72
+ {
73
+ // Update
74
+ //----------------------------------------------------------------------------------
75
+ // Move player around
76
+ if (IsKeyDown(KEY_RIGHT)) playerPosition.x += 5;
77
+ if (IsKeyDown(KEY_LEFT)) playerPosition.x -= 5;
78
+ if (IsKeyDown(KEY_DOWN)) playerPosition.y += 5;
79
+ if (IsKeyDown(KEY_UP)) playerPosition.y -= 5;
80
+
81
+ // Check player position to avoid moving outside tilemap limits
82
+ if (playerPosition.x < 0) playerPosition.x = 0;
83
+ else if ((playerPosition.x + PLAYER_SIZE) > (map.tilesX*MAP_TILE_SIZE)) playerPosition.x = map.tilesX*MAP_TILE_SIZE - PLAYER_SIZE;
84
+ if (playerPosition.y < 0) playerPosition.y = 0;
85
+ else if ((playerPosition.y + PLAYER_SIZE) > (map.tilesY*MAP_TILE_SIZE)) playerPosition.y = map.tilesY*MAP_TILE_SIZE - PLAYER_SIZE;
86
+
87
+ // Previous visited tiles are set to partial fog
88
+ for (int i = 0; i < map.tilesX*map.tilesY; i++) if (map.tileFog[i] == 1) map.tileFog[i] = 2;
89
+
90
+ // Get current tile position from player pixel position
91
+ playerTileX = (int)((playerPosition.x + MAP_TILE_SIZE/2)/MAP_TILE_SIZE);
92
+ playerTileY = (int)((playerPosition.y + MAP_TILE_SIZE/2)/MAP_TILE_SIZE);
93
+
94
+ // Check visibility and update fog
95
+ // NOTE: We check tilemap limits to avoid processing tiles out-of-array-bounds (it could crash program)
96
+ for (int y = (playerTileY - PLAYER_TILE_VISIBILITY); y < (playerTileY + PLAYER_TILE_VISIBILITY); y++)
97
+ for (int x = (playerTileX - PLAYER_TILE_VISIBILITY); x < (playerTileX + PLAYER_TILE_VISIBILITY); x++)
98
+ if ((x >= 0) && (x < map.tilesX) && (y >= 0) && (y < map.tilesY)) map.tileFog[y*map.tilesX + x] = 1;
99
+ //----------------------------------------------------------------------------------
100
+
101
+ // Draw
102
+ //----------------------------------------------------------------------------------
103
+ // Draw fog of war to a small render texture for automatic smoothing on scaling
104
+ BeginTextureMode(fogOfWar);
105
+ ClearBackground(BLANK);
106
+ for (int y = 0; y < map.tilesY; y++)
107
+ for (int x = 0; x < map.tilesX; x++)
108
+ if (map.tileFog[y*map.tilesX + x] == 0) DrawRectangle(x, y, 1, 1, BLACK);
109
+ else if (map.tileFog[y*map.tilesX + x] == 2) DrawRectangle(x, y, 1, 1, Fade(BLACK, 0.8f));
110
+ EndTextureMode();
111
+
112
+ BeginDrawing();
113
+
114
+ ClearBackground(RAYWHITE);
115
+
116
+ for (int y = 0; y < map.tilesY; y++)
117
+ {
118
+ for (int x = 0; x < map.tilesX; x++)
119
+ {
120
+ // Draw tiles from id (and tile borders)
121
+ DrawRectangle(x*MAP_TILE_SIZE, y*MAP_TILE_SIZE, MAP_TILE_SIZE, MAP_TILE_SIZE,
122
+ (map.tileIds[y*map.tilesX + x] == 0)? BLUE : Fade(BLUE, 0.9f));
123
+ DrawRectangleLines(x*MAP_TILE_SIZE, y*MAP_TILE_SIZE, MAP_TILE_SIZE, MAP_TILE_SIZE, Fade(DARKBLUE, 0.5f));
124
+ }
125
+ }
126
+
127
+ // Draw player
128
+ DrawRectangleV(playerPosition, (Vector2){ PLAYER_SIZE, PLAYER_SIZE }, RED);
129
+
130
+
131
+ // Draw fog of war (scaled to full map, bilinear filtering)
132
+ DrawTexturePro(fogOfWar.texture, (Rectangle){ 0, 0, fogOfWar.texture.width, -fogOfWar.texture.height },
133
+ (Rectangle){ 0, 0, map.tilesX*MAP_TILE_SIZE, map.tilesY*MAP_TILE_SIZE },
134
+ (Vector2){ 0, 0 }, 0.0f, WHITE);
135
+
136
+ // Draw player current tile
137
+ DrawText(TextFormat("Current tile: [%i,%i]", playerTileX, playerTileY), 10, 10, 20, LIME);
138
+
139
+ EndDrawing();
140
+ //----------------------------------------------------------------------------------
141
+ }
142
+
143
+ // De-Initialization
144
+ //--------------------------------------------------------------------------------------
145
+ free(map.tileIds); // Free allocated map tile ids
146
+ free(map.tileFog); // Free allocated map tile fog state
147
+
148
+ UnloadRenderTexture(fogOfWar); // Unload render texture
149
+
150
+ CloseWindow(); // Close window and OpenGL context
151
+ //--------------------------------------------------------------------------------------
152
+
153
+ return 0;
154
+ }
@@ -0,0 +1,121 @@
1
+ /*******************************************************************************************
2
+ *
3
+ * raylib [textures] example - gif playing
4
+ *
5
+ * Example originally created with raylib 4.2, last time updated with raylib 4.2
6
+ *
7
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
8
+ * BSD-like license that allows static linking with closed source software
9
+ *
10
+ * Copyright (c) 2021-2022 Ramon Santamaria (@raysan5)
11
+ *
12
+ ********************************************************************************************/
13
+
14
+ #include "raylib.h"
15
+
16
+ #define MAX_FRAME_DELAY 20
17
+ #define MIN_FRAME_DELAY 1
18
+
19
+ //------------------------------------------------------------------------------------
20
+ // Program main entry point
21
+ //------------------------------------------------------------------------------------
22
+ int main(void)
23
+ {
24
+ // Initialization
25
+ //--------------------------------------------------------------------------------------
26
+ const int screenWidth = 800;
27
+ const int screenHeight = 450;
28
+
29
+ InitWindow(screenWidth, screenHeight, "raylib [textures] example - gif playing");
30
+
31
+ int animFrames = 0;
32
+
33
+ // Load all GIF animation frames into a single Image
34
+ // NOTE: GIF data is always loaded as RGBA (32bit) by default
35
+ // NOTE: Frames are just appended one after another in image.data memory
36
+ Image imScarfyAnim = LoadImageAnim("resources/scarfy_run.gif", &animFrames);
37
+
38
+ // Load texture from image
39
+ // NOTE: We will update this texture when required with next frame data
40
+ // WARNING: It's not recommended to use this technique for sprites animation,
41
+ // use spritesheets instead, like illustrated in textures_sprite_anim example
42
+ Texture2D texScarfyAnim = LoadTextureFromImage(imScarfyAnim);
43
+
44
+ unsigned int nextFrameDataOffset = 0; // Current byte offset to next frame in image.data
45
+
46
+ int currentAnimFrame = 0; // Current animation frame to load and draw
47
+ int frameDelay = 8; // Frame delay to switch between animation frames
48
+ int frameCounter = 0; // General frames counter
49
+
50
+ SetTargetFPS(60); // Set our game to run at 60 frames-per-second
51
+ //--------------------------------------------------------------------------------------
52
+
53
+ // Main game loop
54
+ while (!WindowShouldClose()) // Detect window close button or ESC key
55
+ {
56
+ // Update
57
+ //----------------------------------------------------------------------------------
58
+ frameCounter++;
59
+ if (frameCounter >= frameDelay)
60
+ {
61
+ // Move to next frame
62
+ // NOTE: If final frame is reached we return to first frame
63
+ currentAnimFrame++;
64
+ if (currentAnimFrame >= animFrames) currentAnimFrame = 0;
65
+
66
+ // Get memory offset position for next frame data in image.data
67
+ nextFrameDataOffset = imScarfyAnim.width*imScarfyAnim.height*4*currentAnimFrame;
68
+
69
+ // Update GPU texture data with next frame image data
70
+ // WARNING: Data size (frame size) and pixel format must match already created texture
71
+ UpdateTexture(texScarfyAnim, ((unsigned char *)imScarfyAnim.data) + nextFrameDataOffset);
72
+
73
+ frameCounter = 0;
74
+ }
75
+
76
+ // Control frames delay
77
+ if (IsKeyPressed(KEY_RIGHT)) frameDelay++;
78
+ else if (IsKeyPressed(KEY_LEFT)) frameDelay--;
79
+
80
+ if (frameDelay > MAX_FRAME_DELAY) frameDelay = MAX_FRAME_DELAY;
81
+ else if (frameDelay < MIN_FRAME_DELAY) frameDelay = MIN_FRAME_DELAY;
82
+ //----------------------------------------------------------------------------------
83
+
84
+ // Draw
85
+ //----------------------------------------------------------------------------------
86
+ BeginDrawing();
87
+
88
+ ClearBackground(RAYWHITE);
89
+
90
+ DrawText(TextFormat("TOTAL GIF FRAMES: %02i", animFrames), 50, 30, 20, LIGHTGRAY);
91
+ DrawText(TextFormat("CURRENT FRAME: %02i", currentAnimFrame), 50, 60, 20, GRAY);
92
+ DrawText(TextFormat("CURRENT FRAME IMAGE.DATA OFFSET: %02i", nextFrameDataOffset), 50, 90, 20, GRAY);
93
+
94
+ DrawText("FRAMES DELAY: ", 100, 305, 10, DARKGRAY);
95
+ DrawText(TextFormat("%02i frames", frameDelay), 620, 305, 10, DARKGRAY);
96
+ DrawText("PRESS RIGHT/LEFT KEYS to CHANGE SPEED!", 290, 350, 10, DARKGRAY);
97
+
98
+ for (int i = 0; i < MAX_FRAME_DELAY; i++)
99
+ {
100
+ if (i < frameDelay) DrawRectangle(190 + 21*i, 300, 20, 20, RED);
101
+ DrawRectangleLines(190 + 21*i, 300, 20, 20, MAROON);
102
+ }
103
+
104
+ DrawTexture(texScarfyAnim, GetScreenWidth()/2 - texScarfyAnim.width/2, 140, WHITE);
105
+
106
+ DrawText("(c) Scarfy sprite by Eiden Marsal", screenWidth - 200, screenHeight - 20, 10, GRAY);
107
+
108
+ EndDrawing();
109
+ //----------------------------------------------------------------------------------
110
+ }
111
+
112
+ // De-Initialization
113
+ //--------------------------------------------------------------------------------------
114
+ UnloadTexture(texScarfyAnim); // Unload texture
115
+ UnloadImage(imScarfyAnim); // Unload image (contains all frames)
116
+
117
+ CloseWindow(); // Close window and OpenGL context
118
+ //--------------------------------------------------------------------------------------
119
+
120
+ return 0;
121
+ }
@@ -4,15 +4,20 @@
4
4
  *
5
5
  * NOTE: Images are loaded in CPU memory (RAM); textures are loaded in GPU memory (VRAM)
6
6
  *
7
- * This example has been created using raylib 1.4 (www.raylib.com)
8
- * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
7
+ * Example originally created with raylib 1.4, last time updated with raylib 1.4
9
8
  *
10
- * Copyright (c) 2016 Ramon Santamaria (@raysan5)
9
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
10
+ * BSD-like license that allows static linking with closed source software
11
+ *
12
+ * Copyright (c) 2016-2022 Ramon Santamaria (@raysan5)
11
13
  *
12
14
  ********************************************************************************************/
13
15
 
14
16
  #include "raylib.h"
15
17
 
18
+ //------------------------------------------------------------------------------------
19
+ // Program main entry point
20
+ //------------------------------------------------------------------------------------
16
21
  int main(void)
17
22
  {
18
23
  // Initialization
@@ -2,10 +2,12 @@
2
2
  *
3
3
  * raylib [textures] example - Procedural images generation
4
4
  *
5
- * This example has been created using raylib 1.8 (www.raylib.com)
6
- * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
5
+ * Example originally created with raylib 1.8, last time updated with raylib 1.8
7
6
  *
8
- * Copyright (c) 2O17-2021 Wilhem Barbier (@nounoursheureux) and Ramon Santamaria (@raysan5)
7
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
8
+ * BSD-like license that allows static linking with closed source software
9
+ *
10
+ * Copyright (c) 2O17-2022 Wilhem Barbier (@nounoursheureux) and Ramon Santamaria (@raysan5)
9
11
  *
10
12
  ********************************************************************************************/
11
13
 
@@ -13,6 +15,9 @@
13
15
 
14
16
  #define NUM_TEXTURES 6 // Currently we have 7 generation algorithms
15
17
 
18
+ //------------------------------------------------------------------------------------
19
+ // Program main entry point
20
+ //------------------------------------------------------------------------------------
16
21
  int main(void)
17
22
  {
18
23
  // Initialization
@@ -4,15 +4,20 @@
4
4
  *
5
5
  * NOTE: Images are loaded in CPU memory (RAM); textures are loaded in GPU memory (VRAM)
6
6
  *
7
- * This example has been created using raylib 1.3 (www.raylib.com)
8
- * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
7
+ * Example originally created with raylib 1.3, last time updated with raylib 1.3
9
8
  *
10
- * Copyright (c) 2015 Ramon Santamaria (@raysan5)
9
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
10
+ * BSD-like license that allows static linking with closed source software
11
+ *
12
+ * Copyright (c) 2015-2022 Ramon Santamaria (@raysan5)
11
13
  *
12
14
  ********************************************************************************************/
13
15
 
14
16
  #include "raylib.h"
15
17
 
18
+ //------------------------------------------------------------------------------------
19
+ // Program main entry point
20
+ //------------------------------------------------------------------------------------
16
21
  int main(void)
17
22
  {
18
23
  // Initialization
@@ -4,10 +4,12 @@
4
4
  *
5
5
  * NOTE: Images are loaded in CPU memory (RAM); textures are loaded in GPU memory (VRAM)
6
6
  *
7
- * This example has been created using raylib 3.5 (www.raylib.com)
8
- * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
7
+ * Example originally created with raylib 1.4, last time updated with raylib 3.5
9
8
  *
10
- * Copyright (c) 2016 Ramon Santamaria (@raysan5)
9
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
10
+ * BSD-like license that allows static linking with closed source software
11
+ *
12
+ * Copyright (c) 2016-2022 Ramon Santamaria (@raysan5)
11
13
  *
12
14
  ********************************************************************************************/
13
15
 
@@ -39,6 +41,9 @@ static const char *processText[] = {
39
41
  "FLIP HORIZONTAL"
40
42
  };
41
43
 
44
+ //------------------------------------------------------------------------------------
45
+ // Program main entry point
46
+ //------------------------------------------------------------------------------------
42
47
  int main(void)
43
48
  {
44
49
  // Initialization
@@ -2,15 +2,20 @@
2
2
  *
3
3
  * raylib [texture] example - Image text drawing using TTF generated font
4
4
  *
5
- * This example has been created using raylib 1.8 (www.raylib.com)
6
- * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
5
+ * Example originally created with raylib 1.8, last time updated with raylib 4.0
7
6
  *
8
- * Copyright (c) 2017 Ramon Santamaria (@raysan5)
7
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
8
+ * BSD-like license that allows static linking with closed source software
9
+ *
10
+ * Copyright (c) 2017-2022 Ramon Santamaria (@raysan5)
9
11
  *
10
12
  ********************************************************************************************/
11
13
 
12
14
  #include "raylib.h"
13
15
 
16
+ //------------------------------------------------------------------------------------
17
+ // Program main entry point
18
+ //------------------------------------------------------------------------------------
14
19
  int main(void)
15
20
  {
16
21
  // Initialization
@@ -2,15 +2,20 @@
2
2
  *
3
3
  * raylib [textures] example - Texture loading and drawing
4
4
  *
5
- * This example has been created using raylib 1.0 (www.raylib.com)
6
- * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
5
+ * Example originally created with raylib 1.0, last time updated with raylib 1.0
7
6
  *
8
- * Copyright (c) 2014 Ramon Santamaria (@raysan5)
7
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
8
+ * BSD-like license that allows static linking with closed source software
9
+ *
10
+ * Copyright (c) 2014-2022 Ramon Santamaria (@raysan5)
9
11
  *
10
12
  ********************************************************************************************/
11
13
 
12
14
  #include "raylib.h"
13
15
 
16
+ //------------------------------------------------------------------------------------
17
+ // Program main entry point
18
+ //------------------------------------------------------------------------------------
14
19
  int main(void)
15
20
  {
16
21
  // Initialization
@@ -2,12 +2,14 @@
2
2
  *
3
3
  * raylib [textures] example - Mouse painting
4
4
  *
5
- * This example has been created using raylib 2.5 (www.raylib.com)
6
- * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
5
+ * Example originally created with raylib 3.0, last time updated with raylib 3.0
7
6
  *
8
7
  * Example contributed by Chris Dill (@MysteriousSpace) and reviewed by Ramon Santamaria (@raysan5)
9
8
  *
10
- * Copyright (c) 2019 Chris Dill (@MysteriousSpace) and Ramon Santamaria (@raysan5)
9
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
10
+ * BSD-like license that allows static linking with closed source software
11
+ *
12
+ * Copyright (c) 2019-2022 Chris Dill (@MysteriousSpace) and Ramon Santamaria (@raysan5)
11
13
  *
12
14
  ********************************************************************************************/
13
15
 
@@ -15,6 +17,9 @@
15
17
 
16
18
  #define MAX_COLORS_COUNT 23 // Number of colors available
17
19
 
20
+ //------------------------------------------------------------------------------------
21
+ // Program main entry point
22
+ //------------------------------------------------------------------------------------
18
23
  int main(void)
19
24
  {
20
25
  // Initialization
@@ -24,7 +29,7 @@ int main(void)
24
29
 
25
30
  InitWindow(screenWidth, screenHeight, "raylib [textures] example - mouse painting");
26
31
 
27
- // Colours to choose from
32
+ // Colors to choose from
28
33
  Color colors[MAX_COLORS_COUNT] = {
29
34
  RAYWHITE, YELLOW, GOLD, ORANGE, PINK, RED, MAROON, GREEN, LIME, DARKGREEN,
30
35
  SKYBLUE, BLUE, DARKBLUE, PURPLE, VIOLET, DARKPURPLE, BEIGE, BROWN, DARKBROWN,
@@ -4,17 +4,22 @@
4
4
  *
5
5
  * NOTE: Images are loaded in CPU memory (RAM); textures are loaded in GPU memory (VRAM)
6
6
  *
7
- * This example has been created using raylib 2.0 (www.raylib.com)
8
- * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
7
+ * Example originally created with raylib 2.0, last time updated with raylib 2.5
9
8
  *
10
9
  * Example contributed by Jorge A. Gomes (@overdev) and reviewed by Ramon Santamaria (@raysan5)
11
10
  *
12
- * Copyright (c) 2018 Jorge A. Gomes (@overdev) and Ramon Santamaria (@raysan5)
11
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
12
+ * BSD-like license that allows static linking with closed source software
13
+ *
14
+ * Copyright (c) 2018-2022 Jorge A. Gomes (@overdev) and Ramon Santamaria (@raysan5)
13
15
  *
14
16
  ********************************************************************************************/
15
17
 
16
18
  #include "raylib.h"
17
19
 
20
+ //------------------------------------------------------------------------------------
21
+ // Program main entry point
22
+ //------------------------------------------------------------------------------------
18
23
  int main(void)
19
24
  {
20
25
  // Initialization
@@ -2,10 +2,12 @@
2
2
  *
3
3
  * raylib example - particles blending
4
4
  *
5
- * This example has been created using raylib 1.7 (www.raylib.com)
6
- * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
5
+ * Example originally created with raylib 1.7, last time updated with raylib 3.5
7
6
  *
8
- * Copyright (c) 2017 Ramon Santamaria (@raysan5)
7
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
8
+ * BSD-like license that allows static linking with closed source software
9
+ *
10
+ * Copyright (c) 2017-2022 Ramon Santamaria (@raysan5)
9
11
  *
10
12
  ********************************************************************************************/
11
13
 
@@ -23,6 +25,9 @@ typedef struct {
23
25
  bool active; // NOTE: Use it to activate/deactive particle
24
26
  } Particle;
25
27
 
28
+ //------------------------------------------------------------------------------------
29
+ // Program main entry point
30
+ //------------------------------------------------------------------------------------
26
31
  int main(void)
27
32
  {
28
33
  // Initialization
@@ -2,13 +2,14 @@
2
2
  *
3
3
  * raylib [shapes] example - Draw Textured Polygon
4
4
  *
5
- * This example has been created using raylib 3.7 (www.raylib.com)
6
- * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
5
+ * Example originally created with raylib 3.7, last time updated with raylib 3.7
7
6
  *
8
- * Example contributed by Chris Camacho (@codifies - bedroomcoders.co.uk) and
9
- * reviewed by Ramon Santamaria (@raysan5)
7
+ * Example contributed by Chris Camacho (@codifies) and reviewed by Ramon Santamaria (@raysan5)
10
8
  *
11
- * Copyright (c) 2021 Chris Camacho (@codifies) and Ramon Santamaria (@raysan5)
9
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
10
+ * BSD-like license that allows static linking with closed source software
11
+ *
12
+ * Copyright (c) 2021-2022 Chris Camacho (@codifies) and Ramon Santamaria (@raysan5)
12
13
  *
13
14
  ********************************************************************************************/
14
15
 
@@ -17,6 +18,9 @@
17
18
 
18
19
  #define MAX_POINTS 11 // 10 points and back to the start
19
20
 
21
+ //------------------------------------------------------------------------------------
22
+ // Program main entry point
23
+ //------------------------------------------------------------------------------------
20
24
  int main(void)
21
25
  {
22
26
  // Initialization
@@ -4,10 +4,12 @@
4
4
  *
5
5
  * NOTE: Images are loaded in CPU memory (RAM); textures are loaded in GPU memory (VRAM)
6
6
  *
7
- * This example has been created using raylib 1.3 (www.raylib.com)
8
- * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
7
+ * Example originally created with raylib 1.3, last time updated with raylib 3.5
9
8
  *
10
- * Copyright (c) 2015 Ramon Santamaria (@raysan5)
9
+ * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
10
+ * BSD-like license that allows static linking with closed source software
11
+ *
12
+ * Copyright (c) 2015-2022 Ramon Santamaria (@raysan5)
11
13
  *
12
14
  ********************************************************************************************/
13
15
 
@@ -15,6 +17,9 @@
15
17
 
16
18
  #include <stdlib.h> // Required for: malloc() and free()
17
19
 
20
+ //------------------------------------------------------------------------------------
21
+ // Program main entry point
22
+ //------------------------------------------------------------------------------------
18
23
  int main(void)
19
24
  {
20
25
  // Initialization