Ada bindings for Raylib 5.1 library.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4584 lines
136KB

  1. ------------------------------------------------------------------------
  2. --
  3. -- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
  4. --
  5. -- This program is free software; you can redistribute it and/or modify
  6. -- it under the terms of the GNU General Public License as published by
  7. -- the Free Software Foundation; either version 3 of the License, or
  8. -- (at your option) any later version.
  9. --
  10. -- This file was made by altering original Raylib 5.1 C header file. I
  11. -- used few formatting programs of mine, tho sadly most of the editing
  12. -- was done manually. Contact me if there are license issues.
  13. --
  14. -- Raylib is great game programming library written by 'raysan5', you
  15. -- can check out original C source code here below, it's under zlib
  16. -- license. I wrote this because of the lack of good Ada bindings.
  17. --
  18. -- There are minor name changes, and this binding was adapted to Ada
  19. -- programming language. That means that you can't replace few keywords
  20. -- in your C example, and everything works. Aim are new Ada projects.
  21. --
  22. -- https://github.com/raysan5/raylib
  23. --
  24. ------------------------------------------------------------------------
  25. with System;
  26. package Raylib is
  27. ------------------------------------------------------------------------
  28. type Logical is new Boolean;
  29. --
  30. for Logical'Size use 32;
  31. type Config_Flags is (
  32. Flag_None,
  33. Flag_Fullscreen_Mode,
  34. Flag_Window_Resizable,
  35. Flag_Window_Undecorated,
  36. Flag_Window_Transparent,
  37. Flag_MSAA_x4_Hint,
  38. Flag_VSync_Hint,
  39. Flag_Window_Hidden,
  40. Flag_Window_Always_Run,
  41. Flag_Window_Minimized,
  42. Flag_Window_Maximized,
  43. Flag_Window_Unfocused,
  44. Flag_Window_Topmost,
  45. Flag_Window_High_DPI,
  46. Flag_Window_Mouse_Passthrough,
  47. Flag_Borderless_Windowed_Mode,
  48. Flag_Interlaced_Hint
  49. ) with Convention => C;
  50. for Config_Flags use (
  51. Flag_None => 16#00000000#, -- 0
  52. Flag_Fullscreen_Mode => 16#00000002#, -- 2
  53. Flag_Window_Resizable => 16#00000004#, -- 4
  54. Flag_Window_Undecorated => 16#00000008#, -- 8
  55. Flag_Window_Transparent => 16#00000010#, -- 16
  56. Flag_MSAA_x4_Hint => 16#00000020#, -- 32
  57. Flag_VSync_Hint => 16#00000040#, -- 64
  58. Flag_Window_Hidden => 16#00000080#, -- 128
  59. Flag_Window_Always_Run => 16#00000100#, -- 256
  60. Flag_Window_Minimized => 16#00000200#, -- 512
  61. Flag_Window_Maximized => 16#00000400#, -- 1024
  62. Flag_Window_Unfocused => 16#00000800#, -- 2048
  63. Flag_Window_Topmost => 16#00001000#, -- 4096
  64. Flag_Window_High_DPI => 16#00002000#, -- 8192
  65. Flag_Window_Mouse_Passthrough => 16#00004000#, -- 16384
  66. Flag_Borderless_Windowed_Mode => 16#00008000#, -- 32768
  67. Flag_Interlaced_Hint => 16#00010000# -- 65536
  68. );
  69. type Trace_Log_Level is (
  70. Log_All,
  71. Log_Trace,
  72. Log_Debug,
  73. Log_Info,
  74. Log_Warning,
  75. Log_Error,
  76. Log_Fatal,
  77. Log_None
  78. ) with Convention => C;
  79. type Keyboard_Key is (
  80. Key_Null,
  81. Key_Space,
  82. Key_Apostrophe,
  83. Key_Comma,
  84. Key_Minus,
  85. Key_Period,
  86. Key_Slash,
  87. Key_0,
  88. Key_1,
  89. Key_2,
  90. Key_3,
  91. Key_4,
  92. Key_5,
  93. Key_6,
  94. Key_7,
  95. Key_8,
  96. Key_9,
  97. Key_Semicolon,
  98. Key_Equal,
  99. Key_A,
  100. Key_B,
  101. Key_C,
  102. Key_D,
  103. Key_E,
  104. Key_F,
  105. Key_G,
  106. Key_H,
  107. Key_I,
  108. Key_J,
  109. Key_K,
  110. Key_L,
  111. Key_M,
  112. Key_N,
  113. Key_O,
  114. Key_P,
  115. Key_Q,
  116. Key_R,
  117. Key_S,
  118. Key_T,
  119. Key_U,
  120. Key_V,
  121. Key_W,
  122. Key_X,
  123. Key_Y,
  124. Key_Z,
  125. Key_Left_Bracket,
  126. Key_Backslash,
  127. Key_Right_Bracket,
  128. Key_Grave,
  129. Key_Escape,
  130. Key_Enter,
  131. Key_Tab,
  132. Key_Backspace,
  133. Key_Insert,
  134. Key_Delete,
  135. Key_Right,
  136. Key_Left,
  137. Key_Down,
  138. Key_Up,
  139. Key_Page_Up,
  140. Key_Page_Down,
  141. Key_Home,
  142. Key_End,
  143. Key_Caps_Lock,
  144. Key_Scroll_Lock,
  145. Key_Num_Lock,
  146. Key_Print_Screen,
  147. Key_Pause,
  148. Key_F1,
  149. Key_F2,
  150. Key_F3,
  151. Key_F4,
  152. Key_F5,
  153. Key_F6,
  154. Key_F7,
  155. Key_F8,
  156. Key_F9,
  157. Key_F10,
  158. Key_F11,
  159. Key_F12,
  160. Key_Pad_0,
  161. Key_Pad_1,
  162. Key_Pad_2,
  163. Key_Pad_3,
  164. Key_Pad_4,
  165. Key_Pad_5,
  166. Key_Pad_6,
  167. Key_Pad_7,
  168. Key_Pad_8,
  169. Key_Pad_9,
  170. Key_Pad_Decimal,
  171. Key_Pad_Divide,
  172. Key_Pad_Multiply,
  173. Key_Pad_Subtract,
  174. Key_Pad_Add,
  175. Key_Pad_Enter,
  176. Key_Pad_Equal,
  177. Key_Left_Shift,
  178. Key_Left_Control,
  179. Key_Left_Alt,
  180. Key_Left_Super,
  181. Key_Right_Shift,
  182. Key_Right_Control,
  183. Key_Right_Alt,
  184. Key_Right_Super,
  185. Key_KB_Menu
  186. ) with Convention => C;
  187. for Keyboard_Key use (
  188. Key_Null => 0,
  189. Key_Space => 32,
  190. Key_Apostrophe => 39,
  191. Key_Comma => 44,
  192. Key_Minus => 45,
  193. Key_Period => 46,
  194. Key_Slash => 47,
  195. Key_0 => 48,
  196. Key_1 => 49,
  197. Key_2 => 50,
  198. Key_3 => 51,
  199. Key_4 => 52,
  200. Key_5 => 53,
  201. Key_6 => 54,
  202. Key_7 => 55,
  203. Key_8 => 56,
  204. Key_9 => 57,
  205. Key_Semicolon => 59,
  206. Key_Equal => 61,
  207. Key_A => 65,
  208. Key_B => 66,
  209. Key_C => 67,
  210. Key_D => 68,
  211. Key_E => 69,
  212. Key_F => 70,
  213. Key_G => 71,
  214. Key_H => 72,
  215. Key_I => 73,
  216. Key_J => 74,
  217. Key_K => 75,
  218. Key_L => 76,
  219. Key_M => 77,
  220. Key_N => 78,
  221. Key_O => 79,
  222. Key_P => 80,
  223. Key_Q => 81,
  224. Key_R => 82,
  225. Key_S => 83,
  226. Key_T => 84,
  227. Key_U => 85,
  228. Key_V => 86,
  229. Key_W => 87,
  230. Key_X => 88,
  231. Key_Y => 89,
  232. Key_Z => 90,
  233. Key_Left_Bracket => 91,
  234. Key_Backslash => 92,
  235. Key_Right_Bracket => 93,
  236. Key_Grave => 96,
  237. Key_Escape => 256,
  238. Key_Enter => 257,
  239. Key_Tab => 258,
  240. Key_Backspace => 259,
  241. Key_Insert => 260,
  242. Key_Delete => 261,
  243. Key_Right => 262,
  244. Key_Left => 263,
  245. Key_Down => 264,
  246. Key_Up => 265,
  247. Key_Page_Up => 266,
  248. Key_Page_Down => 267,
  249. Key_Home => 268,
  250. Key_End => 269,
  251. Key_Caps_Lock => 280,
  252. Key_Scroll_Lock => 281,
  253. Key_Num_Lock => 282,
  254. Key_Print_Screen => 283,
  255. Key_Pause => 284,
  256. Key_F1 => 290,
  257. Key_F2 => 291,
  258. Key_F3 => 292,
  259. Key_F4 => 293,
  260. Key_F5 => 294,
  261. Key_F6 => 295,
  262. Key_F7 => 296,
  263. Key_F8 => 297,
  264. Key_F9 => 298,
  265. Key_F10 => 299,
  266. Key_F11 => 300,
  267. Key_F12 => 301,
  268. Key_Pad_0 => 320,
  269. Key_Pad_1 => 321,
  270. Key_Pad_2 => 322,
  271. Key_Pad_3 => 323,
  272. Key_Pad_4 => 324,
  273. Key_Pad_5 => 325,
  274. Key_Pad_6 => 326,
  275. Key_Pad_7 => 327,
  276. Key_Pad_8 => 328,
  277. Key_Pad_9 => 329,
  278. Key_Pad_Decimal => 330,
  279. Key_Pad_Divide => 331,
  280. Key_Pad_Multiply => 332,
  281. Key_Pad_Subtract => 333,
  282. Key_Pad_Add => 334,
  283. Key_Pad_Enter => 335,
  284. Key_Pad_Equal => 336,
  285. Key_Left_Shift => 340,
  286. Key_Left_Control => 341,
  287. Key_Left_Alt => 342,
  288. Key_Left_Super => 343,
  289. Key_Right_Shift => 344,
  290. Key_Right_Control => 345,
  291. Key_Right_Alt => 346,
  292. Key_Right_Super => 347,
  293. Key_KB_Menu => 348
  294. );
  295. type Mouse_Button is (
  296. Mouse_Button_Left,
  297. Mouse_Button_Right,
  298. Mouse_Button_Middle,
  299. Mouse_Button_Side,
  300. Mouse_Button_Extra,
  301. Mouse_Button_Forward,
  302. Mouse_Button_Back
  303. ) with Convention => C;
  304. type Mouse_Cursor is (
  305. Mouse_Cursor_Default,
  306. Mouse_Cursor_Arrow,
  307. Mouse_Cursor_Ibeam,
  308. Mouse_Cursor_Crosshair,
  309. Mouse_Cursor_Pointing_Hand,
  310. Mouse_Cursor_Resize_EW,
  311. Mouse_Cursor_Resize_NS,
  312. Mouse_Cursor_Resize_NWSE,
  313. Mouse_Cursor_Resize_NESW,
  314. Mouse_Cursor_Resize_All,
  315. Mouse_Cursor_Not_Allowed
  316. ) with Convention => C;
  317. type Gamepad_Button is (
  318. Gamepad_Button_Unknown,
  319. Gamepad_Button_Left_Face_Up,
  320. Gamepad_Button_Left_Face_Right,
  321. Gamepad_Button_Left_Face_Down,
  322. Gamepad_Button_Left_Face_Left,
  323. Gamepad_Button_Right_Face_Up,
  324. Gamepad_Button_Right_Face_Right,
  325. Gamepad_Button_Right_Face_Down,
  326. Gamepad_Button_Right_Face_Left,
  327. Gamepad_Button_Left_Trigger_1,
  328. Gamepad_Button_Left_Trigger_2,
  329. Gamepad_Button_Right_Trigger_1,
  330. Gamepad_Button_Right_Trigger_2,
  331. Gamepad_Button_Middle_Left,
  332. Gamepad_Button_Middle,
  333. Gamepad_Button_Middle_Right,
  334. Gamepad_Button_Left_Thumb,
  335. Gamepad_Button_Right_Thumb
  336. ) with Convention => C;
  337. type Gamepad_Axis is (
  338. Gamepad_Axis_Left_X,
  339. Gamepad_Axis_Left_Y,
  340. Gamepad_Axis_Right_X,
  341. Gamepad_Axis_Right_Y,
  342. Gamepad_Axis_Left_Trigger,
  343. Gamepad_Axis_Right_Trigger
  344. ) with Convention => C;
  345. type Material_Map_Index is (
  346. Material_Map_Diffuse,
  347. Material_Map_Specular,
  348. Material_Map_Normal,
  349. Material_Map_Roughness,
  350. Material_Map_Occlusion,
  351. Material_Map_Emission,
  352. Material_Map_Height,
  353. Material_Map_Cubemap,
  354. Material_Map_Irradiance,
  355. Material_Map_Prefilter,
  356. Material_Map_BRDF
  357. ) with Convention => C;
  358. type Shader_Location_Index is (
  359. Shader_Location_Vertex_Position,
  360. Shader_Location_Vertex_Texcoord_1,
  361. Shader_Location_Vertex_Texcoord_2,
  362. Shader_Location_Vertex_Normal,
  363. Shader_Location_Vertex_Tangent,
  364. Shader_Location_Vertex_Color,
  365. Shader_Location_Matrix_MVP,
  366. Shader_Location_Matrix_View,
  367. Shader_Location_Matrix_Projection,
  368. Shader_Location_Matrix_Model,
  369. Shader_Location_Matrix_Normal,
  370. Shader_Location_Vector_View,
  371. Shader_Location_Color_Diffuse,
  372. Shader_Location_Color_Specular,
  373. Shader_Location_Color_Ambient,
  374. Shader_Location_Map_Diffuse,
  375. Shader_Location_Map_Specular,
  376. Shader_Location_Map_Normal,
  377. Shader_Location_Map_Roughness,
  378. Shader_Location_Map_Occlusion,
  379. Shader_Location_Map_Emission,
  380. Shader_Location_Map_Height,
  381. Shader_Location_Map_Cubemap,
  382. Shader_Location_Map_Irradiance,
  383. Shader_Location_Map_Prefilter,
  384. Shader_Location_Map_BRDF
  385. ) with Convention => C;
  386. type Shader_Uniform_Data_Type is (
  387. Shader_Uniform_FLOAT,
  388. Shader_Uniform_VEC2,
  389. Shader_Uniform_VEC3,
  390. Shader_Uniform_VEC4,
  391. Shader_Uniform_INT,
  392. Shader_Uniform_IVEC2,
  393. Shader_Uniform_IVEC3,
  394. Shader_Uniform_IVEC4,
  395. Shader_Uniform_SAMPLER2D
  396. ) with Convention => C;
  397. type Shader_Attribute_Data_Type is (
  398. Shader_Attribute_FLOAT,
  399. Shader_Attribute_VEC2,
  400. Shader_Attribute_VEC3,
  401. Shader_Attribute_VEC4
  402. ) with Convention => C;
  403. type Pixel_Format is (
  404. Pixel_Format_None,
  405. Pixel_Format_Uncompressed_Grayscale,
  406. Pixel_Format_Uncompressed_Gray_Alpha,
  407. Pixel_Format_Uncompressed_R5G6B5,
  408. Pixel_Format_Uncompressed_R8G8B8,
  409. Pixel_Format_Uncompressed_R5G5B5A1,
  410. Pixel_Format_Uncompressed_R4G4B4A4,
  411. Pixel_Format_Uncompressed_R8G8B8A8,
  412. Pixel_Format_Uncompressed_R32,
  413. Pixel_Format_Uncompressed_R32G32B32,
  414. Pixel_Format_Uncompressed_R32G32B32A32,
  415. Pixel_Format_Uncompressed_R16,
  416. Pixel_Format_Uncompressed_R16G16B16,
  417. Pixel_Format_Uncompressed_R16G16B16A16,
  418. Pixel_Format_Compressed_DXT1_RGB,
  419. Pixel_Format_Compressed_DXT1_RGBA,
  420. Pixel_Format_Compressed_DXT3_RGBA,
  421. Pixel_Format_Compressed_DXT5_RGBA,
  422. Pixel_Format_Compressed_ETC1_RGB,
  423. Pixel_Format_Compressed_ETC2_RGB,
  424. Pixel_Format_Compressed_ETC2_EAC_RGBA,
  425. Pixel_Format_Compressed_PVRT_RGB,
  426. Pixel_Format_Compressed_PVRT_RGBA,
  427. Pixel_Format_Compressed_ASTC_4x4_RGBA,
  428. Pixel_Format_Compressed_ASTC_8x8_RGBA
  429. ) with Convention => C;
  430. type Texture_Filter is (
  431. Texture_Filter_Point,
  432. Texture_Filter_Bilinear,
  433. Texture_Filter_Trilinear,
  434. Texture_Filter_Anisotropic_x4,
  435. Texture_Filter_Anisotropic_x8,
  436. Texture_Filter_Anisotropic_x16
  437. ) with Convention => C;
  438. type Texture_Wrap is (
  439. Texture_Wrap_Repeat,
  440. Texture_Wrap_Clamp,
  441. Texture_Wrap_Mirror_Repeat,
  442. Texture_Wrap_Mirror_Clamp
  443. ) with Convention => C;
  444. type Cubemap_Layout is (
  445. Cubemap_Layout_Auto_Detect,
  446. Cubemap_Layout_Line_Vertical,
  447. Cubemap_Layout_Line_Horizontal,
  448. Cubemap_Layout_Cross_3_By_4,
  449. Cubemap_Layout_Cross_4_By_3,
  450. Cubemap_Layout_Panorama
  451. ) with Convention => C;
  452. type Font_Type is (
  453. Font_Default,
  454. Font_Bitmap,
  455. Font_SDF
  456. ) with Convention => C;
  457. type Blend_Mode is (
  458. Blend_Alpha,
  459. Blend_Additive,
  460. Blend_Multiplied,
  461. Blend_Add_Colors,
  462. Blend_Subtract_Colors,
  463. Blend_Alpha_Premultiply,
  464. Blend_Custom,
  465. Blend_Custom_Separate
  466. ) with Convention => C;
  467. type Gesture is (
  468. Gesture_None,
  469. Gesture_Tap,
  470. Gesture_Doubletap,
  471. Gesture_Hold,
  472. Gesture_Drag,
  473. Gesture_Swipe_Right,
  474. Gesture_Swipe_Left,
  475. Gesture_Swipe_Up,
  476. Gesture_Swipe_Down,
  477. Gesture_Pinch_In,
  478. Gesture_Pinch_Out
  479. ) with Convention => C;
  480. for Gesture use (
  481. Gesture_None => 2#0000000000#, -- 0
  482. Gesture_Tap => 2#0000000001#, -- 1
  483. Gesture_Doubletap => 2#0000000010#, -- 2
  484. Gesture_Hold => 2#0000000100#, -- 4
  485. Gesture_Drag => 2#0000001000#, -- 8
  486. Gesture_Swipe_Right => 2#0000010000#, -- 16
  487. Gesture_Swipe_Left => 2#0000100000#, -- 32
  488. Gesture_Swipe_Up => 2#0001000000#, -- 64
  489. Gesture_Swipe_Down => 2#0010000000#, -- 128
  490. Gesture_Pinch_In => 2#0100000000#, -- 256
  491. Gesture_Pinch_Out => 2#1000000000# -- 512
  492. );
  493. type Camera_Mode is (
  494. Camera_Custom,
  495. Camera_Free,
  496. Camera_Orbital,
  497. Camera_First_Person,
  498. Camera_Third_Person
  499. ) with Convention => C;
  500. type Camera_Projection is (
  501. Camera_Perspective,
  502. Camera_Orthographic
  503. ) with Convention => C;
  504. type NPatch_Layout is (
  505. NPatch_Nine_Patch,
  506. NPatch_Three_Patch_Vertical,
  507. NPatch_Three_Patch_Horizontal
  508. ) with Convention => C;
  509. ------------------------------------------------------------------------
  510. type Color_Range is range 0 .. 2**8 - 1;
  511. type Index_Range is range 0 .. 2**16 - 1;
  512. for Color_Range'Size use 8;
  513. for Index_Range'Size use 16;
  514. type Pointer is access all System.Address;
  515. type Strings is access all Character;
  516. type Vector_2D is record
  517. X : Float := 0.0;
  518. Y : Float := 0.0;
  519. end record with Convention => C_Pass_By_Copy;
  520. type Vector_3D is record
  521. X : Float := 0.0;
  522. Y : Float := 0.0;
  523. Z : Float := 0.0;
  524. end record with Convention => C_Pass_By_Copy;
  525. type Vector_4D is record
  526. X : Float := 0.0;
  527. Y : Float := 0.0;
  528. Z : Float := 0.0;
  529. W : Float := 0.0;
  530. end record with Convention => C_Pass_By_Copy;
  531. type Quaternion is new Vector_4D;
  532. type Matrix_4D is record
  533. M00 : Float := 1.0;
  534. M10 : Float := 0.0;
  535. M20 : Float := 0.0;
  536. M30 : Float := 0.0;
  537. M01 : Float := 0.0;
  538. M11 : Float := 1.0;
  539. M21 : Float := 0.0;
  540. M31 : Float := 0.0;
  541. M02 : Float := 0.0;
  542. M12 : Float := 0.0;
  543. M22 : Float := 1.0;
  544. M32 : Float := 0.0;
  545. M03 : Float := 0.0;
  546. M13 : Float := 0.0;
  547. M23 : Float := 0.0;
  548. M33 : Float := 1.0;
  549. end record with Convention => C_Pass_By_Copy;
  550. Id_Matrix : Matrix_4D;
  551. type Color is record
  552. R : Color_Range := 255;
  553. G : Color_Range := 255;
  554. B : Color_Range := 255;
  555. A : Color_Range := 255;
  556. end record with Convention => C_Pass_By_Copy;
  557. No_Color : Color;
  558. type Rectangle is record
  559. X : Float := 0.0;
  560. Y : Float := 0.0;
  561. Width : Float := 0.0;
  562. Height : Float := 0.0;
  563. end record with Convention => C_Pass_By_Copy;
  564. No_Rectangle : Rectangle;
  565. type Image is record
  566. Data : Pointer := null;
  567. Width : Integer := 0;
  568. Height : Integer := 0;
  569. Mipmaps : Integer := 1;
  570. Format : Pixel_Format := Pixel_Format_None;
  571. end record with Convention => C_Pass_By_Copy;
  572. No_Image : Image;
  573. type Texture is record
  574. Id : Natural := 0;
  575. Width : Integer := 0;
  576. Height : Integer := 0;
  577. Mipmaps : Integer := 1;
  578. Format : Pixel_Format := Pixel_Format_None;
  579. end record with Convention => C_Pass_By_Copy;
  580. No_Texture : Texture;
  581. type Render_Texture is record
  582. Id : Natural := 0;
  583. Data : Texture := No_Texture;
  584. Depth : Texture := No_Texture;
  585. end record with Convention => C_Pass_By_Copy;
  586. No_Render_Texture : Render_Texture;
  587. type NPatch_Info is record
  588. Source : Rectangle := No_Rectangle;
  589. Left : Integer := 0;
  590. Top : Integer := 0;
  591. Right : Integer := 0;
  592. Bottom : Integer := 0;
  593. Layout : NPatch_Layout := NPatch_Nine_Patch;
  594. end record with Convention => C_Pass_By_Copy;
  595. No_NPatch_Info : NPatch_Info;
  596. type Glyph_Info is record
  597. Value : Integer := 0;
  598. Offset_X : Integer := 0;
  599. Offset_Y : Integer := 0;
  600. Advance_X : Integer := 0;
  601. Data : Image := No_Image;
  602. end record with Convention => C_Pass_By_Copy;
  603. No_Glyph_Info : Glyph_Info;
  604. type Font is record
  605. Base_Size : Integer := 0;
  606. Glyph_Count : Integer := 0;
  607. Glyph_Padding : Integer := 0;
  608. Data : Texture := No_Texture;
  609. Rectangles : access Rectangle := null;
  610. Glyphs : access Glyph_Info := null;
  611. end record with Convention => C_Pass_By_Copy;
  612. No_Font : Font;
  613. type Camera_3D is record
  614. Position : Vector_3D := (others => 0.0);
  615. Target : Vector_3D := (others => 0.0);
  616. Up : Vector_3D := (others => 0.0);
  617. Field_Of_View : Float := 0.0;
  618. Projection : Camera_Projection := Camera_Perspective;
  619. end record with Convention => C_Pass_By_Copy;
  620. No_Camera_3D : Camera_3D;
  621. type Camera_2D is record
  622. Offset : Vector_2D := (others => 0.0);
  623. Target : Vector_2D := (others => 0.0);
  624. Rotation : Float := 0.0;
  625. Zoom : Float := 0.0;
  626. end record with Convention => C_Pass_By_Copy;
  627. No_Camera_2D : Camera_2D;
  628. type Mesh is record
  629. Vertex_Count : Integer := 0;
  630. Triangle_Count : Integer := 0;
  631. Vertices : access Float := null;
  632. Texture_Coordinates : access Float := null;
  633. Texture_Coordinates_2 : access Float := null;
  634. Normals : access Float := null;
  635. Tangents : access Float := null;
  636. Colors : access Color_Range := null;
  637. Indices : access Index_Range := null;
  638. Animation_Vertices : access Float := null;
  639. Animation_Normals : access Float := null;
  640. Bone_Ids : access Color_Range := null;
  641. Bone_Weights : access Float := null;
  642. VAO_Id : Natural := 0;
  643. VBO_Id : access Natural := null;
  644. end record with Convention => C_Pass_By_Copy;
  645. No_Mesh : Mesh;
  646. type Shader is record
  647. Id : Natural := 0;
  648. Locations : access Integer := null;
  649. end record with Convention => C_Pass_By_Copy;
  650. No_Shader : Shader;
  651. type Material_Map is record
  652. Data : Texture := No_Texture;
  653. Tint : Color := No_Color;
  654. Value : Float := 0.0;
  655. end record with Convention => C_Pass_By_Copy;
  656. No_Material_Map : Material_Map;
  657. type Float_Array_4 is array (0 .. 3) of Float;
  658. type Material_Map_Array_4 is array (0 .. 3) of Material_Map;
  659. type Material_Map_Array is array (Natural range <>) of Material_Map;
  660. type Material is record
  661. Data : Shader := No_Shader;
  662. Maps : access Material_Map_Array := null;
  663. Parameter : Float_Array_4 := (0.0, 0.0, 0.0, 1.0);
  664. end record with Convention => C_Pass_By_Copy;
  665. No_Material : Material;
  666. type Transform is record
  667. Translation : Vector_3D := (others => 0.0);
  668. Rotation : Vector_4D := (others => 0.0);
  669. Scale : Vector_3D := (others => 0.0);
  670. end record with Convention => C_Pass_By_Copy;
  671. No_Transform : Transform;
  672. type Character_Array_32 is array (0 .. 31) of Character;
  673. Empty : Character_Array_32 := (others => Character'Val (0));
  674. type Bone_Info is record
  675. Name : Character_Array_32 := Empty;
  676. Parent : Integer := 0;
  677. end record with Convention => C_Pass_By_Copy;
  678. No_Bone_Info : Bone_Info;
  679. type Material_Array_4 is array (0 .. 3) of Material;
  680. type Material_Array is array (Natural range <>) of Material;
  681. type Model is record
  682. Transform : Matrix_4D := Id_Matrix;
  683. Mesh_Count : Integer := 0;
  684. Material_Count : Integer := 0;
  685. Meshes : access Mesh := null;
  686. Materials : access Material_Array := null;
  687. Mesh_Materials : access Integer := null;
  688. Bone_Count : Integer := 0;
  689. Bones : access Bone_Info := null;
  690. --ERRORBind_Post : access Transform := null;
  691. end record with Convention => C_Pass_By_Copy;
  692. No_Model : Model;
  693. type Model_Animation is record
  694. Bone_Count : Integer := 0;
  695. Frame_Count : Integer := 0;
  696. Bones : access Bone_Info := null;
  697. Frame_Poses : access Transform := null;
  698. Name : Character_Array_32 := Empty;
  699. end record with Convention => C_Pass_By_Copy;
  700. No_Model_Animation : Model_Animation;
  701. type Ray is record
  702. Position : Vector_3D := (others => 0.0);
  703. Direction : Vector_3D := (others => 0.0);
  704. end record with Convention => C_Pass_By_Copy;
  705. No_Ray : Ray;
  706. type Ray_Collision is record
  707. Hit : Logical := False;
  708. Distance : Float := 0.0;
  709. Point : Vector_3D := (others => 0.0);
  710. Normal : Vector_3D := (others => 0.0);
  711. end record with Convention => C_Pass_By_Copy;
  712. No_Ray_Collision : Ray_Collision;
  713. type Bounding_Box is record
  714. Min : Vector_3D := (others => 0.0);
  715. Max : Vector_3D := (others => 0.0);
  716. end record with Convention => C_Pass_By_Copy;
  717. No_Bounding_Box : Bounding_Box;
  718. type Wave is record
  719. Frame_Count : Natural := 0;
  720. Sample_Rate : Natural := 0;
  721. Sample_Size : Natural := 0;
  722. Channels : Natural := 0;
  723. Data : Pointer := null;
  724. end record with Convention => C_Pass_By_Copy;
  725. No_Wave : Wave;
  726. type Audio_Stream is record
  727. Buffer : Pointer := null;
  728. Processor : Pointer := null;
  729. Sample_Rate : Natural := 0;
  730. Sample_Size : Natural := 0;
  731. Channels : Natural := 0;
  732. end record with Convention => C_Pass_By_Copy;
  733. No_Audio_Stream : Audio_Stream;
  734. type Sound is record
  735. Stream : Audio_Stream := No_Audio_Stream;
  736. Frame_Count : Natural := 0;
  737. end record with Convention => C_Pass_By_Copy;
  738. No_Sound : Sound;
  739. type Music is record
  740. Stream : Audio_Stream := No_Audio_Stream;
  741. Frame_Count : Natural := 0;
  742. Looping : Logical := False;
  743. Context_Type : Integer := 0;
  744. Context_Data : Pointer := null;
  745. end record with Convention => C_Pass_By_Copy;
  746. No_Music : Music;
  747. type VR_Device_Info is record
  748. Horizontal_Resoultion : Integer := 0;
  749. Vertical_Resoultion : Integer := 0;
  750. Horizontal_Screen_Size : Float := 0.0;
  751. Vertical_Screen_Size : Float := 0.0;
  752. Vertical_Screen_Center : Float := 0.0;
  753. Eye_To_Screen_Distance : Float := 0.0;
  754. Lens_Separate_Distance : Float := 0.0;
  755. Interpupillary_Distance : Float := 0.0;
  756. Lens_Distortion_Values : Float_Array_4 := (others => 0.0);
  757. Chroma_Abberation_Correction : Float_Array_4 := (others => 0.0);
  758. end record with Convention => C_Pass_By_Copy;
  759. No_VR_Device_Info : VR_Device_Info;
  760. type Matrix_4D_Array_2 is array (0 .. 1) of Matrix_4D;
  761. type Float_Array_2 is array (0 .. 1) of Float;
  762. type VR_Stereo_Config is record
  763. Projection : Matrix_4D_Array_2 := (Id_Matrix, Id_Matrix);
  764. View_Offset : Matrix_4D_Array_2 := (Id_Matrix, Id_Matrix);
  765. Left_Lens_Center : Float_Array_2 := (others => 0.0);
  766. Right_Lens_Center : Float_Array_2 := (others => 0.0);
  767. Left_Screen_Center : Float_Array_2 := (others => 0.0);
  768. Right_Screen_Center : Float_Array_2 := (others => 0.0);
  769. Scale : Float_Array_2 := (others => 0.0);
  770. Scale_In : Float_Array_2 := (others => 0.0);
  771. end record with Convention => C_Pass_By_Copy;
  772. No_VR_Stereo_Config : VR_Stereo_Config;
  773. type File_Path_List is record
  774. Capacity : Natural := 0;
  775. Count : Natural := 0;
  776. Paths : Pointer := null;
  777. end record with Convention => C_Pass_By_Copy;
  778. No_File_Path_List : File_Path_List;
  779. type Integer_Array_4 is array (0 .. 3) of Integer;
  780. type Automation_Event is record
  781. Frame : Natural := 0;
  782. Kind : Natural := 0;
  783. Parameters : Integer_Array_4 := (others => 0);
  784. end record with Convention => C_Pass_By_Copy;
  785. No_Automation_Event : Automation_Event;
  786. type Automation_Event_List is record
  787. Capacity : Natural := 0;
  788. Count : Natural := 0;
  789. Events : access Automation_Event := null;
  790. end record with Convention => C_Pass_By_Copy;
  791. No_Automation_Event_List : Automation_Event_List;
  792. ------------------------------------------------------------------------
  793. Version_Major : constant Integer := 5;
  794. Version_Minor : constant Integer := 1;
  795. Version_Patch : constant Integer := 0;
  796. Version : aliased constant String := "5.1-dev";
  797. Pi : constant Float := 3.14159265358979323846;
  798. Tau : constant Float := 2.0 * Pi;
  799. Degree_To_Radius : constant Float := Pi / 180.0;
  800. Radius_To_Degree : constant Float := 180.0 / Pi;
  801. Light_Gray : constant Color := (200, 200, 200, 255);
  802. Gray : constant Color := (130, 130, 130, 255);
  803. Dark_Gray : constant Color := (80, 80, 80, 255);
  804. Yellow : constant Color := (253, 249, 0, 255);
  805. Gold : constant Color := (255, 203, 0, 255);
  806. Orange : constant Color := (255, 161, 0, 255);
  807. Pink : constant Color := (255, 109, 194, 255);
  808. Red : constant Color := (230, 41, 55, 255);
  809. Maroon : constant Color := (190, 33, 55, 255);
  810. Green : constant Color := (0, 228, 48, 255);
  811. Lime : constant Color := (0, 158, 47, 255);
  812. Dark_Green : constant Color := (0, 117, 44, 255);
  813. Sky_Blue : constant Color := (102, 191, 255, 255);
  814. Blue : constant Color := (0, 121, 241, 255);
  815. Dark_Blue : constant Color := (0, 82, 172, 255);
  816. Purple : constant Color := (200, 122, 255, 255);
  817. Violet : constant Color := (135, 60, 190, 255);
  818. Dark_Purple : constant Color := (112, 31, 126, 255);
  819. Beige : constant Color := (211, 176, 131, 255);
  820. Brown : constant Color := (127, 106, 79, 255);
  821. Dark_Brown : constant Color := (76, 63, 47, 255);
  822. White : constant Color := (255, 255, 255, 255);
  823. Black : constant Color := (0, 0, 0, 255);
  824. Blank : constant Color := (0, 0, 0, 0 );
  825. Magenta : constant Color := (255, 0, 255, 255);
  826. Ray_White : constant Color := (245, 245, 245, 255);
  827. ------------------------------------------------------------------------
  828. procedure Open_Window (
  829. Width : Integer := 640;
  830. Height : Integer := 480;
  831. Title : String := "Raylib-Ada" & Character'Val (0)
  832. ) with
  833. Import => True,
  834. Convention => C,
  835. External_Name => "InitWindow";
  836. procedure Close_Window with
  837. Import => True,
  838. Convention => C,
  839. External_Name => "CloseWindow";
  840. function Window_Should_Close return Logical with
  841. Import => True,
  842. Convention => C,
  843. External_Name => "WindowShouldClose";
  844. function Is_Window_Ready return Logical with
  845. Import => True,
  846. Convention => C,
  847. External_Name => "IsWindowReady";
  848. function Is_Window_Fullscreen return Logical with
  849. Import => True,
  850. Convention => C,
  851. External_Name => "IsWindowFullscreen";
  852. function Is_Window_Hidden return Logical with
  853. Import => True,
  854. Convention => C,
  855. External_Name => "IsWindowHidden";
  856. function Is_Window_Minimized return Logical with
  857. Import => True,
  858. Convention => C,
  859. External_Name => "IsWindowMinimized";
  860. function Is_Window_Maximized return Logical with
  861. Import => True,
  862. Convention => C,
  863. External_Name => "IsWindowMaximized";
  864. function Is_Window_Focused return Logical with
  865. Import => True,
  866. Convention => C,
  867. External_Name => "IsWindowFocused";
  868. function Is_Window_Resized return Logical with
  869. Import => True,
  870. Convention => C,
  871. External_Name => "IsWindowResized";
  872. function Is_Window_State (
  873. Flags : Natural := 0
  874. ) return Logical with
  875. Import => True,
  876. Convention => C,
  877. External_Name => "IsWindowState";
  878. procedure Set_Window_State (
  879. Flags : Natural := 0
  880. ) with
  881. Import => True,
  882. Convention => C,
  883. External_Name => "SetWindowState";
  884. procedure Clear_Window_State (
  885. Flags : Natural := 0
  886. ) with
  887. Import => True,
  888. Convention => C,
  889. External_Name => "ClearWindowState";
  890. procedure Toggle_Fullscreen with
  891. Import => True,
  892. Convention => C,
  893. External_Name => "ToggleFullscreen";
  894. procedure Toggle_Borderless_Windowed with
  895. Import => True,
  896. Convention => C,
  897. External_Name => "ToggleBorderlessWindowed";
  898. procedure Maximize_Window with
  899. Import => True,
  900. Convention => C,
  901. External_Name => "MaximizeWindow";
  902. procedure Minimize_Window with
  903. Import => True,
  904. Convention => C,
  905. External_Name => "MinimizeWindow";
  906. procedure Restore_Window with
  907. Import => True,
  908. Convention => C,
  909. External_Name => "RestoreWindow";
  910. procedure Set_Window_Icon (
  911. Icon : Image := No_Image
  912. ) with
  913. Import => True,
  914. Convention => C,
  915. External_Name => "SetWindowIcon";
  916. procedure Set_Window_Icons (
  917. Icons : access Image := null;
  918. Count : Integer := 0
  919. ) with
  920. Import => True,
  921. Convention => C,
  922. External_Name => "SetWindowIcons";
  923. procedure Set_Window_Title (
  924. Title : String := ""
  925. ) with
  926. Import => True,
  927. Convention => C,
  928. External_Name => "SetWindowTitle";
  929. procedure Set_Window_Position (
  930. X : Integer := 0;
  931. Y : Integer := 0
  932. ) with
  933. Import => True,
  934. Convention => C,
  935. External_Name => "SetWindowPosition";
  936. procedure Set_Window_Monitor (
  937. Monitor : Integer := 0
  938. ) with
  939. Import => True,
  940. Convention => C,
  941. External_Name => "SetWindowMonitor";
  942. procedure Set_Window_Min_Size (
  943. Width : Integer := 0;
  944. Height : Integer := 0
  945. ) with
  946. Import => True,
  947. Convention => C,
  948. External_Name => "SetWindowMinSize";
  949. procedure Set_Window_Max_Size (
  950. Width : Integer := 0;
  951. Height : Integer := 0
  952. ) with
  953. Import => True,
  954. Convention => C,
  955. External_Name => "SetWindowMaxSize";
  956. procedure Set_Window_Size (
  957. Width : Integer := 0;
  958. Height : Integer := 0
  959. ) with
  960. Import => True,
  961. Convention => C,
  962. External_Name => "SetWindowSize";
  963. procedure Set_WindowZ_Opacity (
  964. Opacity : Float := 0.0
  965. ) with
  966. Import => True,
  967. Convention => C,
  968. External_Name => "SetWindowOpacity";
  969. procedure Set_Window_Focused with
  970. Import => True,
  971. Convention => C,
  972. External_Name => "SetWindowFocused";
  973. function Get_Window_Handle return Pointer with
  974. Import => True,
  975. Convention => C,
  976. External_Name => "GetWindowHandle";
  977. function Get_Screen_Width return Integer with
  978. Import => True,
  979. Convention => C,
  980. External_Name => "GetScreenWidth";
  981. function Get_Screen_Height return Integer with
  982. Import => True,
  983. Convention => C,
  984. External_Name => "GetScreenHeight";
  985. function Get_Render_Width return Integer with
  986. Import => True,
  987. Convention => C,
  988. External_Name => "GetRenderWidth";
  989. function Get_Render_Height return Integer with
  990. Import => True,
  991. Convention => C,
  992. External_Name => "GetRenderHeight";
  993. function Get_Monitor_Count return Integer with
  994. Import => True,
  995. Convention => C,
  996. External_Name => "GetMonitorCount";
  997. function Get_Current_Monitor return Integer with
  998. Import => True,
  999. Convention => C,
  1000. External_Name => "GetCurrentMonitor";
  1001. function Get_Monitor_Position (
  1002. Monitor : Integer := 0
  1003. ) return Vector_2D with
  1004. Import => True,
  1005. Convention => C,
  1006. External_Name => "GetMonitorPosition";
  1007. function Get_Monitor_Width (
  1008. Monitor : Integer := 0
  1009. ) return Integer with
  1010. Import => True,
  1011. Convention => C,
  1012. External_Name => "GetMonitorWidth";
  1013. function Get_Monitor_Height (
  1014. Monitor : Integer := 0
  1015. ) return Integer with
  1016. Import => True,
  1017. Convention => C,
  1018. External_Name => "GetMonitorHeight";
  1019. function Get_Monitor_Physical_Width (
  1020. Monitor : Integer := 0
  1021. ) return Integer with
  1022. Import => True,
  1023. Convention => C,
  1024. External_Name => "GetMonitorPhysicalWidth";
  1025. function Get_Monitor_Physical_Height (
  1026. Monitor : Integer := 0
  1027. ) return Integer with
  1028. Import => True,
  1029. Convention => C,
  1030. External_Name => "GetMonitorPhysicalHeight";
  1031. function Get_Monitor_Refresh_Rate (
  1032. Monitor : Integer := 0
  1033. ) return Integer with
  1034. Import => True,
  1035. Convention => C,
  1036. External_Name => "GetMonitorRefreshRate";
  1037. function Get_Window_Position return Vector_2D with
  1038. Import => True,
  1039. Convention => C,
  1040. External_Name => "GetWindowPosition";
  1041. function Get_Window_Scale_DPI return Vector_2D with
  1042. Import => True,
  1043. Convention => C,
  1044. External_Name => "GetWindowScaleDPI";
  1045. function Get_Monitor_Name (
  1046. Monitor : Integer := 0
  1047. ) return Strings with
  1048. Import => True,
  1049. Convention => C,
  1050. External_Name => "GetMonitorName";
  1051. procedure Set_Clipboard_Text (
  1052. Text : String := ""
  1053. ) with
  1054. Import => True,
  1055. Convention => C,
  1056. External_Name => "SetClipboardText";
  1057. function Get_Clipboard_Text return Strings with
  1058. Import => True,
  1059. Convention => C,
  1060. External_Name => "GetClipboardText";
  1061. procedure Enable_Event_Waiting with
  1062. Import => True,
  1063. Convention => C,
  1064. External_Name => "EnableEventWaiting";
  1065. procedure Disable_Event_Waiting with
  1066. Import => True,
  1067. Convention => C,
  1068. External_Name => "DisableEventWaiting";
  1069. procedure Show_Cursor with
  1070. Import => True,
  1071. Convention => C,
  1072. External_Name => "ShowCursor";
  1073. procedure Hide_Cursor with
  1074. Import => True,
  1075. Convention => C,
  1076. External_Name => "HideCursor";
  1077. function Is_Cursor_Hidden return Logical with
  1078. Import => True,
  1079. Convention => C,
  1080. External_Name => "IsCursorHidden";
  1081. procedure Enable_Cursor with
  1082. Import => True,
  1083. Convention => C,
  1084. External_Name => "EnableCursor";
  1085. procedure Disable_Cursor with
  1086. Import => True,
  1087. Convention => C,
  1088. External_Name => "DisableCursor";
  1089. function Is_Cursor_On_Screen return Logical with
  1090. Import => True,
  1091. Convention => C,
  1092. External_Name => "IsCursorOnScreen";
  1093. procedure Clear_Background (
  1094. Tint : Color := Ray_White
  1095. ) with
  1096. Import => True,
  1097. Convention => C,
  1098. External_Name => "ClearBackground";
  1099. procedure Begin_Drawing with
  1100. Import => True,
  1101. Convention => C,
  1102. External_Name => "BeginDrawing";
  1103. procedure End_Drawing with
  1104. Import => True,
  1105. Convention => C,
  1106. External_Name => "EndDrawing";
  1107. procedure Begin_Mode_2D (
  1108. Camera : Camera_2D
  1109. ) with
  1110. Import => True,
  1111. Convention => C,
  1112. External_Name => "BeginMode2D";
  1113. procedure End_Mode_2D with
  1114. Import => True,
  1115. Convention => C,
  1116. External_Name => "EndMode2D";
  1117. procedure Begin_Mode_3D (
  1118. Camera : Camera_3D
  1119. ) with
  1120. Import => True,
  1121. Convention => C,
  1122. External_Name => "BeginMode3D";
  1123. procedure End_Mode_3D with
  1124. Import => True,
  1125. Convention => C,
  1126. External_Name => "EndMode3D";
  1127. procedure Begin_Texture_Mode (
  1128. Data : Render_Texture := No_Render_Texture
  1129. ) with
  1130. Import => True,
  1131. Convention => C,
  1132. External_Name => "BeginTextureMode";
  1133. procedure End_Texture_Mode with
  1134. Import => True,
  1135. Convention => C,
  1136. External_Name => "EndTextureMode";
  1137. procedure Begin_Shader_Mode (
  1138. Data : Shader := No_Shader
  1139. ) with
  1140. Import => True,
  1141. Convention => C,
  1142. External_Name => "BeginShaderMode";
  1143. procedure End_Shader_Mode with
  1144. Import => True,
  1145. Convention => C,
  1146. External_Name => "EndShaderMode";
  1147. procedure Begin_Blend_Mode (
  1148. Mode : Blend_Mode := Blend_Alpha
  1149. ) with
  1150. Import => True,
  1151. Convention => C,
  1152. External_Name => "BeginBlendMode";
  1153. procedure End_Blend_Mode with
  1154. Import => True,
  1155. Convention => C,
  1156. External_Name => "EndBlendMode";
  1157. procedure Begin_Scissor_Mode (
  1158. X : Integer := 0;
  1159. Y : Integer := 0;
  1160. Width : Integer := 0;
  1161. Height : Integer := 0
  1162. ) with
  1163. Import => True,
  1164. Convention => C,
  1165. External_Name => "BeginScissorMode";
  1166. procedure End_Scissor_Mode with
  1167. Import => True,
  1168. Convention => C,
  1169. External_Name => "EndScissorMode";
  1170. procedure Begin_VR_Stereo_Mode (
  1171. Config : VR_Stereo_Config := No_VR_Stereo_Config
  1172. ) with
  1173. Import => True,
  1174. Convention => C,
  1175. External_Name => "BeginVrStereoMode";
  1176. procedure End_VR_Stereo_Mode with
  1177. Import => True,
  1178. Convention => C,
  1179. External_Name => "EndVrStereoMode";
  1180. function Load_VR_Stereo_Config (
  1181. Device : VR_Device_Info := No_VR_Device_Info
  1182. ) return VR_Stereo_Config with
  1183. Import => True,
  1184. Convention => C,
  1185. External_Name => "LoadVrStereoConfig";
  1186. procedure Unload_VR_Stereo_Config (
  1187. Config : VR_Stereo_Config := No_VR_Stereo_Config
  1188. ) with
  1189. Import => True,
  1190. Convention => C,
  1191. External_Name => "UnloadVrStereoConfig";
  1192. function Load_Shader (
  1193. Vertex_Shader_File_Path : String := "";
  1194. Fragment_Shader_File_Path : String := ""
  1195. ) return Shader with
  1196. Import => True,
  1197. Convention => C,
  1198. External_Name => "LoadShader";
  1199. function Load_Shader_From_Memory (
  1200. Vertex_Shader_Code_Path : String := "";
  1201. Fragment_Shader_Code_Path : String := ""
  1202. ) return Shader with
  1203. Import => True,
  1204. Convention => C,
  1205. External_Name => "LoadShaderFromMemory";
  1206. function Is_Shader_Ready (
  1207. Data : Shader := No_Shader
  1208. ) return Logical with
  1209. Import => True,
  1210. Convention => C,
  1211. External_Name => "IsShaderReady";
  1212. function Get_Shader_Location (
  1213. Data : Shader := No_Shader;
  1214. Name : String := ""
  1215. ) return Integer with
  1216. Import => True,
  1217. Convention => C,
  1218. External_Name => "GetShaderLocation";
  1219. function Get_Shader_Location_Attribute (
  1220. Data : Shader := No_Shader;
  1221. Name : String := ""
  1222. ) return Integer with
  1223. Import => True,
  1224. Convention => C,
  1225. External_Name => "GetShaderLocationAttrib";
  1226. procedure Set_Shader_Value (
  1227. Data : Shader := No_Shader;
  1228. Location_Index : Integer := 0;
  1229. Value : Pointer := null;
  1230. Uniform_Type : Integer := 0
  1231. ) with
  1232. Import => True,
  1233. Convention => C,
  1234. External_Name => "SetShaderValue";
  1235. procedure Set_Shader_Value_Vector (
  1236. Data : Shader := No_Shader;
  1237. Location_Index : Integer := 0;
  1238. Value : Pointer := null;
  1239. Uniform_Type : Integer := 0;
  1240. Count : Integer := 0
  1241. ) with
  1242. Import => True,
  1243. Convention => C,
  1244. External_Name => "SetShaderValueV";
  1245. procedure Set_Shader_Value_Matrix (
  1246. Data : Shader := No_Shader;
  1247. Location_Index : Integer := 0;
  1248. Value : Matrix_4D := Id_Matrix
  1249. ) with
  1250. Import => True,
  1251. Convention => C,
  1252. External_Name => "SetShaderValueMatrix";
  1253. procedure Set_Shader_Value_Texture (
  1254. Data : Shader := No_Shader;
  1255. Location_Index : Integer := 0;
  1256. Value : Texture := No_Texture
  1257. ) with
  1258. Import => True,
  1259. Convention => C,
  1260. External_Name => "SetShaderValueTexture";
  1261. procedure Unload_Shader (
  1262. Data : Shader := No_Shader
  1263. ) with
  1264. Import => True,
  1265. Convention => C,
  1266. External_Name => "UnloadShader";
  1267. function Get_Mouse_Ray (
  1268. Mouse_Position : Vector_2D := (others => 0.0);
  1269. Camera : Camera_3D := No_Camera_3D
  1270. ) return Ray with
  1271. Import => True,
  1272. Convention => C,
  1273. External_Name => "GetMouseRay";
  1274. function Get_Camera_Matrix_3D (
  1275. Camera : Camera_3D := No_Camera_3D
  1276. ) return Matrix_4D with
  1277. Import => True,
  1278. Convention => C,
  1279. External_Name => "GetCameraMatrix";
  1280. function Get_Camera_Matrix_2D (
  1281. Camera : Camera_2D := No_Camera_2D
  1282. ) return Matrix_4D with
  1283. Import => True,
  1284. Convention => C,
  1285. External_Name => "GetCameraMatrix2D";
  1286. function Get_World_To_Screen_3D (
  1287. Position : Vector_3D := (others => 0.0);
  1288. Camera : Camera_3D := No_Camera_3D
  1289. ) return Vector_2D with
  1290. Import => True,
  1291. Convention => C,
  1292. External_Name => "GetWorldToScreen";
  1293. function Get_Screen_To_World_2D (
  1294. Position : Vector_2D := (others => 0.0);
  1295. Camera : Camera_2D := No_Camera_2D
  1296. ) return Vector_2D with
  1297. Import => True,
  1298. Convention => C,
  1299. External_Name => "GetScreenToWorld2D";
  1300. function Get_World_To_Screen_Ex (
  1301. Position : Vector_3D := (others => 0.0);
  1302. Camera : Camera_3D := No_Camera_3D;
  1303. Width : Integer := 0;
  1304. Height : Integer := 0
  1305. ) return Vector_2D with
  1306. Import => True,
  1307. Convention => C,
  1308. External_Name => "GetWorldToScreenEx";
  1309. function Get_World_To_Screen_2D (
  1310. Position : Vector_2D := (others => 0.0);
  1311. Camera : Camera_2D := No_Camera_2D
  1312. ) return Vector_2D with
  1313. Import => True,
  1314. Convention => C,
  1315. External_Name => "GetWorldToScreen2D";
  1316. procedure Set_Target_FPS (
  1317. FPS : Integer := 60
  1318. ) with
  1319. Import => True,
  1320. Convention => C,
  1321. External_Name => "SetTargetFPS";
  1322. function Get_Frame_Time return Float with
  1323. Import => True,
  1324. Convention => C,
  1325. External_Name => "GetFrameTime";
  1326. function Get_Time return Long_Float with
  1327. Import => True,
  1328. Convention => C,
  1329. External_Name => "GetTime";
  1330. function Get_FPS return Integer with
  1331. Import => True,
  1332. Convention => C,
  1333. External_Name => "GetFPS";
  1334. procedure Swap_Screen_Buffer with
  1335. Import => True,
  1336. Convention => C,
  1337. External_Name => "SwapScreenBuffer";
  1338. procedure Poll_Input_Events with
  1339. Import => True,
  1340. Convention => C,
  1341. External_Name => "PollInputEvents";
  1342. procedure Wait_Time (
  1343. Seconds : Long_Float := 0.0
  1344. ) with
  1345. Import => True,
  1346. Convention => C,
  1347. External_Name => "WaitTime";
  1348. procedure Set_Random_Seed (
  1349. Seed : Natural := 16#0EADBEEF#
  1350. ) with
  1351. Import => True,
  1352. Convention => C,
  1353. External_Name => "SetRandomSeed";
  1354. function Get_Random_Value (
  1355. Min : Integer := 0;
  1356. Max : Integer := 255
  1357. ) return Integer with
  1358. Import => True,
  1359. Convention => C,
  1360. External_Name => "GetRandomValue";
  1361. function Load_Random_Sequence (
  1362. Count : Natural := 0;
  1363. Min : Integer := 0;
  1364. Max : Integer := 0
  1365. ) return access Integer with
  1366. Import => True,
  1367. Convention => C,
  1368. External_Name => "LoadRandomSequence";
  1369. procedure Unload_Random_Sequence (
  1370. Sequence : access Integer := null
  1371. ) with
  1372. Import => True,
  1373. Convention => C,
  1374. External_Name => "UnloadRandomSequence";
  1375. procedure Take_Screenshot (
  1376. File_Name : String := "Screenshot.png"
  1377. ) with
  1378. Import => True,
  1379. Convention => C,
  1380. External_Name => "TakeScreenshot";
  1381. procedure Set_Config_Flags (
  1382. Flags : Config_Flags := Flag_None
  1383. ) with
  1384. Import => True,
  1385. Convention => C,
  1386. External_Name => "SetConfigFlags";
  1387. procedure Open_URL (
  1388. URL : String := ""
  1389. ) with
  1390. Import => True,
  1391. Convention => C,
  1392. External_Name => "OpenURL";
  1393. procedure Set_Trace_Log_Level (
  1394. Level : Trace_Log_Level := Log_All
  1395. ) with
  1396. Import => True,
  1397. Convention => C,
  1398. External_Name => "SetTraceLogLevel";
  1399. function Allocate (
  1400. Size : Natural := 0
  1401. ) return Pointer with
  1402. Import => True,
  1403. Convention => C,
  1404. External_Name => "MemAlloc";
  1405. function Reallocate (
  1406. Data : Pointer := null;
  1407. Size : Natural := 0
  1408. ) return Pointer with
  1409. Import => True,
  1410. Convention => C,
  1411. External_Name => "MemRealloc";
  1412. procedure Deallocate (
  1413. Data : Pointer := null
  1414. ) with
  1415. Import => True,
  1416. Convention => C,
  1417. External_Name => "MemFree";
  1418. function Load_File_Data (
  1419. File_Name : String := "";
  1420. Data_Size : access Integer := null
  1421. ) return access Character with
  1422. Import => True,
  1423. Convention => C,
  1424. External_Name => "LoadFileData";
  1425. procedure Unload_File_Data (
  1426. Data : Pointer := null
  1427. ) with
  1428. Import => True,
  1429. Convention => C,
  1430. External_Name => "UnloadFileData";
  1431. --~function bool SaveFileData (const char *fileName, void *data, int dataSize) with
  1432. --~Import => True,
  1433. --~Convention => C,
  1434. --~External_Name => "SaveFileData";
  1435. --~function bool ExportDataAsCode (const unsigned char *data, int dataSize, const char *fileName) with
  1436. --~Import => True,
  1437. --~Convention => C,
  1438. --~External_Name => "ExportDataAsCode";
  1439. --~function char *LoadFileText (const char *fileName) with
  1440. --~Import => True,
  1441. --~Convention => C,
  1442. --~External_Name => "LoadFileText";
  1443. --~procedure UnloadFileText (char *text) with
  1444. --~Import => True,
  1445. --~Convention => C,
  1446. --~External_Name => "UnloadFileText";
  1447. --~function bool SaveFileText (const char *fileName, char *text) with
  1448. --~Import => True,
  1449. --~Convention => C,
  1450. --~External_Name => "SaveFileText";
  1451. --~function bool FileExists (const char *fileName) with
  1452. --~Import => True,
  1453. --~Convention => C,
  1454. --~External_Name => "FileExists";
  1455. --~function bool DirectoryExists (const char *dirPath) with
  1456. --~Import => True,
  1457. --~Convention => C,
  1458. --~External_Name => "DirectoryExists";
  1459. --~function bool IsFileExtension (const char *fileName, const char *ext) with
  1460. --~Import => True,
  1461. --~Convention => C,
  1462. --~External_Name => "IsFileExtension";
  1463. --~function int GetFileLength (const char *fileName) with
  1464. --~Import => True,
  1465. --~Convention => C,
  1466. --~External_Name => "GetFileLength";
  1467. --~function const char *GetFileExtension (const char *fileName) with
  1468. --~Import => True,
  1469. --~Convention => C,
  1470. --~External_Name => "GetFileExtension";
  1471. --~function const char *GetFileName (const char *filePath) with
  1472. --~Import => True,
  1473. --~Convention => C,
  1474. --~External_Name => "GetFileName";
  1475. --~function const char *GetFileNameWithoutExt (const char *filePath) with
  1476. --~Import => True,
  1477. --~Convention => C,
  1478. --~External_Name => "GetFileNameWithoutExt";
  1479. --~function const char *GetDirectoryPath (const char *filePath) with
  1480. --~Import => True,
  1481. --~Convention => C,
  1482. --~External_Name => "GetDirectoryPath";
  1483. --~function const char *GetPrevDirectoryPath (const char *dirPath) with
  1484. --~Import => True,
  1485. --~Convention => C,
  1486. --~External_Name => "GetPrevDirectoryPath";
  1487. --~function const char *GetWorkingDirectory (void) with
  1488. --~Import => True,
  1489. --~Convention => C,
  1490. --~External_Name => "GetWorkingDirectory";
  1491. --~function const char *GetApplicationDirectory (void) with
  1492. --~Import => True,
  1493. --~Convention => C,
  1494. --~External_Name => "GetApplicationDirectory";
  1495. --~function bool ChangeDirectory (const char *dir) with
  1496. --~Import => True,
  1497. --~Convention => C,
  1498. --~External_Name => "ChangeDirectory";
  1499. --~function bool IsPathFile (const char *path) with
  1500. --~Import => True,
  1501. --~Convention => C,
  1502. --~External_Name => "IsPathFile";
  1503. --~function FilePathList LoadDirectoryFiles (const char *dirPath) with
  1504. --~Import => True,
  1505. --~Convention => C,
  1506. --~External_Name => "LoadDirectoryFiles";
  1507. --~function FilePathList LoadDirectoryFilesEx (const char *basePath, const char *filter, bool scanSubdirs) with
  1508. --~Import => True,
  1509. --~Convention => C,
  1510. --~External_Name => "LoadDirectoryFilesEx";
  1511. --~procedure UnloadDirectoryFiles (FilePathList files) with
  1512. --~Import => True,
  1513. --~Convention => C,
  1514. --~External_Name => "UnloadDirectoryFiles";
  1515. --~function bool IsFileDropped (void) with
  1516. --~Import => True,
  1517. --~Convention => C,
  1518. --~External_Name => "IsFileDropped";
  1519. --~function FilePathList LoadDroppedFiles (void) with
  1520. --~Import => True,
  1521. --~Convention => C,
  1522. --~External_Name => "LoadDroppedFiles";
  1523. --~procedure UnloadDroppedFiles (FilePathList files) with
  1524. --~Import => True,
  1525. --~Convention => C,
  1526. --~External_Name => "UnloadDroppedFiles";
  1527. --~function long GetFileModTime (const char *fileName) with
  1528. --~Import => True,
  1529. --~Convention => C,
  1530. --~External_Name => "GetFileModTime";
  1531. --~function unsigned char *CompressData (const unsigned char *data, int dataSize, int *compDataSize) with
  1532. --~Import => True,
  1533. --~Convention => C,
  1534. --~External_Name => "CompressData";
  1535. --~function unsigned char *DecompressData (const unsigned char *compData, int compDataSize, int *dataSize) with
  1536. --~Import => True,
  1537. --~Convention => C,
  1538. --~External_Name => "DecompressData";
  1539. --~function char *EncodeDataBase64 (const unsigned char *data, int dataSize, int *outputSize) with
  1540. --~Import => True,
  1541. --~Convention => C,
  1542. --~External_Name => "EncodeDataBase64";
  1543. --~function unsigned char *DecodeDataBase64 (const unsigned char *data, int *outputSize) with
  1544. --~Import => True,
  1545. --~Convention => C,
  1546. --~External_Name => "DecodeDataBase64";
  1547. function Load_Automation_Event_List (
  1548. File_Name : String := ""
  1549. ) return Automation_Event_List with
  1550. Import => True,
  1551. Convention => C,
  1552. External_Name => "LoadAutomationEventList";
  1553. procedure Unload_Automation_Event_List (
  1554. Data : access Automation_Event_List := null
  1555. ) with
  1556. Import => True,
  1557. Convention => C,
  1558. External_Name => "UnloadAutomationEventList";
  1559. function Export_Automation_Event_List (
  1560. Data : Automation_Event_List := No_Automation_Event_List;
  1561. File_Name : String := ""
  1562. ) return Logical with
  1563. Import => True,
  1564. Convention => C,
  1565. External_Name => "ExportAutomationEventList";
  1566. procedure Set_Automation_Event_List (
  1567. Data : access Automation_Event_List := null
  1568. ) with
  1569. Import => True,
  1570. Convention => C,
  1571. External_Name => "SetAutomationEventList";
  1572. procedure Set_Automation_Event_Base_Frame (
  1573. Frame : Integer := 0
  1574. ) with
  1575. Import => True,
  1576. Convention => C,
  1577. External_Name => "SetAutomationEventBaseFrame";
  1578. procedure Start_Automation_Event_Recording with
  1579. Import => True,
  1580. Convention => C,
  1581. External_Name => "StartAutomationEventRecording";
  1582. procedure Stop_Automation_Event_Recording with
  1583. Import => True,
  1584. Convention => C,
  1585. External_Name => "StopAutomationEventRecording";
  1586. procedure Play_Automation_Event (
  1587. Event : Automation_Event := No_Automation_Event
  1588. ) with
  1589. Import => True,
  1590. Convention => C,
  1591. External_Name => "PlayAutomationEvent";
  1592. function Is_Key_Pressed (
  1593. Key : Keyboard_Key := Key_Null
  1594. ) return Logical with
  1595. Import => True,
  1596. Convention => C,
  1597. External_Name => "IsKeyPressed";
  1598. function Is_Key_Pressed_Repeat (
  1599. Key : Keyboard_Key := Key_Null
  1600. ) return Logical with
  1601. Import => True,
  1602. Convention => C,
  1603. External_Name => "IsKeyPressedRepeat";
  1604. function Is_Key_Down (
  1605. Key : Keyboard_Key := Key_Null
  1606. ) return Logical with
  1607. Import => True,
  1608. Convention => C,
  1609. External_Name => "IsKeyDown";
  1610. function Is_Key_Released (
  1611. Key : Keyboard_Key := Key_Null
  1612. ) return Logical with
  1613. Import => True,
  1614. Convention => C,
  1615. External_Name => "IsKeyReleased";
  1616. function Is_Key_Up (
  1617. Key : Keyboard_Key := Key_Null
  1618. ) return Logical with
  1619. Import => True,
  1620. Convention => C,
  1621. External_Name => "IsKeyUp";
  1622. function Get_Key_Pressed return Keyboard_Key with
  1623. Import => True,
  1624. Convention => C,
  1625. External_Name => "GetKeyPressed";
  1626. function Get_Character_Pressed return Character with
  1627. Import => True,
  1628. Convention => C,
  1629. External_Name => "GetCharPressed";
  1630. procedure Set_Exit_Key (
  1631. Key : Keyboard_Key := Key_Escape
  1632. ) with
  1633. Import => True,
  1634. Convention => C,
  1635. External_Name => "SetExitKey";
  1636. function Is_Gamepad_Available (
  1637. Gamepad : Integer := 0
  1638. ) return Logical with
  1639. Import => True,
  1640. Convention => C,
  1641. External_Name => "IsGamepadAvailable";
  1642. function Get_Gamepad_Name (
  1643. Gamepad : Integer := 0
  1644. ) return Strings with
  1645. Import => True,
  1646. Convention => C,
  1647. External_Name => "GetGamepadName";
  1648. function Is_Gamepad_Button_Pressed (
  1649. Gamepad : Integer := 0;
  1650. Button : Gamepad_Button := Gamepad_Button_Left_Thumb
  1651. ) return Logical with
  1652. Import => True,
  1653. Convention => C,
  1654. External_Name => "IsGamepadButtonPressed";
  1655. function Is_Gamepad_Button_Down (
  1656. Gamepad : Integer := 0;
  1657. Button : Gamepad_Button := Gamepad_Button_Left_Thumb
  1658. ) return Logical with
  1659. Import => True,
  1660. Convention => C,
  1661. External_Name => "IsGamepadButtonDown";
  1662. function Is_Gamepad_Button_Released (
  1663. Gamepad : Integer := 0;
  1664. Button : Gamepad_Button := Gamepad_Button_Left_Thumb
  1665. ) return Logical with
  1666. Import => True,
  1667. Convention => C,
  1668. External_Name => "IsGamepadButtonReleased";
  1669. function Is_Gamepad_Button_Up (
  1670. Gamepad : Integer := 0;
  1671. Button : Gamepad_Button := Gamepad_Button_Left_Thumb
  1672. ) return Logical with
  1673. Import => True,
  1674. Convention => C,
  1675. External_Name => "IsGamepadButtonUp";
  1676. function Get_Gamepad_Button_Pressed return Integer with
  1677. Import => True,
  1678. Convention => C,
  1679. External_Name => "GetGamepadButtonPressed";
  1680. function Get_Gamepad_Axis_Count (
  1681. Gamepad : Integer := 0
  1682. ) return Integer with
  1683. Import => True,
  1684. Convention => C,
  1685. External_Name => "GetGamepadAxisCount";
  1686. function Get_Gamepad_Axis_Movement (
  1687. Gamepad : Integer := 0;
  1688. Axis : Gamepad_Axis := Gamepad_Axis_Left_Trigger
  1689. ) return Float with
  1690. Import => True,
  1691. Convention => C,
  1692. External_Name => "GetGamepadAxisMovement";
  1693. function Set_Gamepad_Mappings (
  1694. Mappings : String := ""
  1695. ) return Integer with
  1696. Import => True,
  1697. Convention => C,
  1698. External_Name => "SetGamepadMappings";
  1699. function Is_Mouse_Button_Pressed (
  1700. Button : Mouse_Button := Mouse_Button_Left
  1701. ) return Logical with
  1702. Import => True,
  1703. Convention => C,
  1704. External_Name => "IsMouseButtonPressed";
  1705. function Is_Mouse_Button_Down (
  1706. Button : Mouse_Button := Mouse_Button_Left
  1707. ) return Logical with
  1708. Import => True,
  1709. Convention => C,
  1710. External_Name => "IsMouseButtonDown";
  1711. function Is_Mouse_Button_Released (
  1712. Button : Mouse_Button := Mouse_Button_Left
  1713. ) return Logical with
  1714. Import => True,
  1715. Convention => C,
  1716. External_Name => "IsMouseButtonReleased";
  1717. function Is_Mouse_Button_Up (
  1718. Button : Mouse_Button := Mouse_Button_Left
  1719. ) return Logical with
  1720. Import => True,
  1721. Convention => C,
  1722. External_Name => "IsMouseButtonUp";
  1723. function Get_Mouse_X return Integer with
  1724. Import => True,
  1725. Convention => C,
  1726. External_Name => "GetMouseX";
  1727. function Get_Mouse_Y return Integer with
  1728. Import => True,
  1729. Convention => C,
  1730. External_Name => "GetMouseY";
  1731. function Get_Mouse_Position return Vector_2D with
  1732. Import => True,
  1733. Convention => C,
  1734. External_Name => "GetMousePosition";
  1735. function Get_Mouse_Delta return Vector_2D with
  1736. Import => True,
  1737. Convention => C,
  1738. External_Name => "GetMouseDelta";
  1739. procedure Set_Mouse_Position (
  1740. X : Integer := 0;
  1741. Y : Integer := 0
  1742. ) with
  1743. Import => True,
  1744. Convention => C,
  1745. External_Name => "SetMousePosition";
  1746. procedure Set_Mouse_Offset (
  1747. X : Integer := 0;
  1748. Y : Integer := 0
  1749. ) with
  1750. Import => True,
  1751. Convention => C,
  1752. External_Name => "SetMouseOffset";
  1753. procedure Set_Mouse_Scale (
  1754. X : Float := 0.0;
  1755. Y : Float := 0.0
  1756. ) with
  1757. Import => True,
  1758. Convention => C,
  1759. External_Name => "SetMouseScale";
  1760. function Get_Mouse_Wheel_Move return Float with
  1761. Import => True,
  1762. Convention => C,
  1763. External_Name => "GetMouseWheelMove";
  1764. function Get_Mouse_Wheel_Move_V return Vector_2D with
  1765. Import => True,
  1766. Convention => C,
  1767. External_Name => "GetMouseWheelMoveV";
  1768. procedure Set_Mouse_Cursor (
  1769. Cursor : Mouse_Cursor := Mouse_Cursor_Default
  1770. ) with
  1771. Import => True,
  1772. Convention => C,
  1773. External_Name => "SetMouseCursor";
  1774. function Get_Touch_X return Integer with
  1775. Import => True,
  1776. Convention => C,
  1777. External_Name => "GetTouchX";
  1778. function Get_Touch_Y return Integer with
  1779. Import => True,
  1780. Convention => C,
  1781. External_Name => "GetTouchY";
  1782. function Get_Touch_Position (
  1783. Index : Integer := 0
  1784. ) return Vector_2D with
  1785. Import => True,
  1786. Convention => C,
  1787. External_Name => "GetTouchPosition";
  1788. function Get_Touch_Point_Id (
  1789. Index : Integer := 0
  1790. ) return Integer with
  1791. Import => True,
  1792. Convention => C,
  1793. External_Name => "GetTouchPointId";
  1794. function Get_Touch_Point_Count return Integer with
  1795. Import => True,
  1796. Convention => C,
  1797. External_Name => "GetTouchPointCount";
  1798. procedure Set_Gestures_Enabled (
  1799. Data : Gesture := Gesture_None
  1800. ) with
  1801. Import => True,
  1802. Convention => C,
  1803. External_Name => "SetGesturesEnabled";
  1804. function Is_Gesture_Detected (
  1805. Data : Gesture := Gesture_None
  1806. ) return Logical with
  1807. Import => True,
  1808. Convention => C,
  1809. External_Name => "IsGestureDetected";
  1810. function Get_Gesture_Detected return Integer with
  1811. Import => True,
  1812. Convention => C,
  1813. External_Name => "GetGestureDetected";
  1814. function Get_Gesture_Hold_Duration return Float with
  1815. Import => True,
  1816. Convention => C,
  1817. External_Name => "GetGestureHoldDuration";
  1818. function Get_Gesture_Drag_Vector return Vector_2D with
  1819. Import => True,
  1820. Convention => C,
  1821. External_Name => "GetGestureDragVector";
  1822. function Get_Gesture_Drag_Angle return Float with
  1823. Import => True,
  1824. Convention => C,
  1825. External_Name => "GetGestureDragAngle";
  1826. function Get_Gesture_Pinch_Vector return Vector_2D with
  1827. Import => True,
  1828. Convention => C,
  1829. External_Name => "GetGesturePinchVector";
  1830. function Get_Gesture_Pinch_Angle return Float with
  1831. Import => True,
  1832. Convention => C,
  1833. External_Name => "GetGesturePinchAngle";
  1834. procedure Update_Camera (
  1835. Data : access Camera_3D := null;
  1836. Mode : Camera_Mode := Camera_First_Person
  1837. ) with
  1838. Import => True,
  1839. Convention => C,
  1840. External_Name => "UpdateCamera";
  1841. procedure Update_Camera_Pro (
  1842. Data : access Camera_3D := null;
  1843. Movement : Vector_3D := (others => 0.0);
  1844. Rotation : Vector_3D := (others => 0.0);
  1845. Zoom : Float := 0.0
  1846. ) with
  1847. Import => True,
  1848. Convention => C,
  1849. External_Name => "UpdateCameraPro";
  1850. procedure Set_Shapes_Texture (
  1851. Data : Texture := No_Texture;
  1852. Source : Rectangle := No_Rectangle
  1853. ) with
  1854. Import => True,
  1855. Convention => C,
  1856. External_Name => "SetShapesTexture";
  1857. procedure Draw_Pixel (
  1858. X : Integer := 0;
  1859. Y : Integer := 0;
  1860. Tint : Color := White
  1861. ) with
  1862. Import => True,
  1863. Convention => C,
  1864. External_Name => "DrawPixel";
  1865. procedure Draw_Pixel_V (
  1866. Position : Vector_2D := (others => 0.0);
  1867. Tint : Color := White
  1868. ) with
  1869. Import => True,
  1870. Convention => C,
  1871. External_Name => "DrawPixelV";
  1872. procedure Draw_Line (
  1873. X0 : Integer := 0;
  1874. Y0 : Integer := 0;
  1875. X1 : Integer := 0;
  1876. Y1 : Integer := 0;
  1877. Tint : Color := Black
  1878. ) with
  1879. Import => True,
  1880. Convention => C,
  1881. External_Name => "DrawLine";
  1882. procedure Draw_Line_V (
  1883. From : Vector_2D := (others => 0.0);
  1884. To : Vector_2D := (others => 0.0);
  1885. Tint : Color := Black
  1886. ) with
  1887. Import => True,
  1888. Convention => C,
  1889. External_Name => "DrawLineV";
  1890. procedure Draw_Line_Ex (
  1891. From : Vector_2D := (others => 0.0);
  1892. To : Vector_2D := (others => 0.0);
  1893. Thick : Float := 0.0;
  1894. Tint : Color := Black
  1895. ) with
  1896. Import => True,
  1897. Convention => C,
  1898. External_Name => "DrawLineEx";
  1899. procedure Draw_Line_Strip (
  1900. Points : access Vector_2D := null;
  1901. Point_Count : Natural := 0;
  1902. Tint : Color := Black
  1903. ) with
  1904. Import => True,
  1905. Convention => C,
  1906. External_Name => "DrawLineStrip";
  1907. procedure Draw_Line_Bezier (
  1908. From : Vector_2D := (others => 0.0);
  1909. To : Vector_2D := (others => 0.0);
  1910. Thick : Float := 0.0;
  1911. Tint : Color := Black
  1912. ) with
  1913. Import => True,
  1914. Convention => C,
  1915. External_Name => "DrawLineBezier";
  1916. procedure Draw_Circle (
  1917. X : Integer := 0;
  1918. Y : Integer := 0;
  1919. Radius : Float := 0.0;
  1920. Tint : Color := Black
  1921. ) with
  1922. Import => True,
  1923. Convention => C,
  1924. External_Name => "DrawCircle";
  1925. procedure Draw_Circle_Sector (
  1926. Center : Vector_2D := (others => 0.0);
  1927. Radius : Float := 0.0;
  1928. From : Float := 0.0;
  1929. To : Float := 0.0;
  1930. Segments : Integer := 0;
  1931. Tint : Color := Black
  1932. ) with
  1933. Import => True,
  1934. Convention => C,
  1935. External_Name => "DrawCircleSector";
  1936. procedure Draw_Circle_Sector_Lines (
  1937. Center : Vector_2D := (others => 0.0);
  1938. Radius : Float := 0.0;
  1939. From : Float := 0.0;
  1940. To : Float := 0.0;
  1941. Segments : Integer := 0;
  1942. Tint : Color := Black
  1943. ) with
  1944. Import => True,
  1945. Convention => C,
  1946. External_Name => "DrawCircleSectorLines";
  1947. procedure Draw_Circle_Gradient (
  1948. X : Integer := 0;
  1949. Y : Integer := 0;
  1950. Radius : Float := 0.0;
  1951. Tint_1 : Color := Black;
  1952. Tint_2 : Color := White
  1953. ) with
  1954. Import => True,
  1955. Convention => C,
  1956. External_Name => "DrawCircleGradient";
  1957. procedure Draw_Circle_V (
  1958. Center : Vector_2D := (others => 0.0);
  1959. Radius : Float := 0.0;
  1960. Tint : Color := Black
  1961. ) with
  1962. Import => True,
  1963. Convention => C,
  1964. External_Name => "DrawCircleV";
  1965. procedure Draw_Circle_Lines (
  1966. X : Integer := 0;
  1967. Y : Integer := 0;
  1968. Radius : Float := 0.0;
  1969. Tint : Color := Black
  1970. ) with
  1971. Import => True,
  1972. Convention => C,
  1973. External_Name => "DrawCircleLines";
  1974. procedure Draw_Circle_Lines_V (
  1975. Center : Vector_2D := (others => 0.0);
  1976. Radius : Float := 0.0;
  1977. Tint : Color := Black
  1978. ) with
  1979. Import => True,
  1980. Convention => C,
  1981. External_Name => "DrawCircleLinesV";
  1982. procedure Draw_Ellipse (
  1983. X : Integer := 0;
  1984. Y : Integer := 0;
  1985. Horizontal : Float := 0.0;
  1986. Vertical : Float := 0.0;
  1987. Tint : Color := Black
  1988. ) with
  1989. Import => True,
  1990. Convention => C,
  1991. External_Name => "DrawEllipse";
  1992. procedure Draw_Ellipse_Lines (
  1993. X : Integer := 0;
  1994. Y : Integer := 0;
  1995. Horizontal : Float := 0.0;
  1996. Vertical : Float := 0.0;
  1997. Tint : Color := Black
  1998. ) with
  1999. Import => True,
  2000. Convention => C,
  2001. External_Name => "DrawEllipseLines";
  2002. procedure Draw_Ring (
  2003. Center : Vector_2D := (others => 0.0);
  2004. Inner_Radius : Float := 0.0;
  2005. Outer_Radius : Float := 0.0;
  2006. From : Float := 0.0;
  2007. To : Float := 0.0;
  2008. Segments : Integer := 0;
  2009. Tint : Color := Black
  2010. ) with
  2011. Import => True,
  2012. Convention => C,
  2013. External_Name => "DrawRing";
  2014. procedure Draw_Ring_Lines (
  2015. Center : Vector_2D := (others => 0.0);
  2016. Inner_Radius : Float := 0.0;
  2017. Outer_Radius : Float := 0.0;
  2018. From : Float := 0.0;
  2019. To : Float := 0.0;
  2020. Segments : Integer := 0;
  2021. Tint : Color := Black
  2022. ) with
  2023. Import => True,
  2024. Convention => C,
  2025. External_Name => "DrawRingLines";
  2026. procedure Draw_Rectangle (
  2027. X : Integer := 0;
  2028. Y : Integer := 0;
  2029. Width : Integer := 0;
  2030. Height : Integer := 0;
  2031. Tint : Color := Black
  2032. ) with
  2033. Import => True,
  2034. Convention => C,
  2035. External_Name => "DrawRectangle";
  2036. procedure Draw_Rectangle_V (
  2037. Position : Vector_2D := (others => 0.0);
  2038. Size : Vector_2D := (others => 0.0);
  2039. Tint : Color := Black
  2040. ) with
  2041. Import => True,
  2042. Convention => C,
  2043. External_Name => "DrawRectangleV";
  2044. procedure Draw_Rectangle_Rec (
  2045. Data : Rectangle := No_Rectangle;
  2046. Tint : Color := Black
  2047. ) with
  2048. Import => True,
  2049. Convention => C,
  2050. External_Name => "DrawRectangleRec";
  2051. procedure Draw_Rectangle_Pro (
  2052. Data : Rectangle := No_Rectangle;
  2053. Origin : Vector_2D := (others => 0.0);
  2054. Rotation : Float := 0.0;
  2055. Tint : Color := Black
  2056. ) with
  2057. Import => True,
  2058. Convention => C,
  2059. External_Name => "DrawRectanglePro";
  2060. procedure Draw_Rectangle_Gradient_V (
  2061. X : Integer := 0;
  2062. Y : Integer := 0;
  2063. Width : Integer := 0;
  2064. Height : Integer := 0;
  2065. Color_1 : Color := Black;
  2066. Color_2 : Color := White
  2067. ) with
  2068. Import => True,
  2069. Convention => C,
  2070. External_Name => "DrawRectangleGradientV";
  2071. procedure Draw_Rectangle_Gradient_H (
  2072. X : Integer := 0;
  2073. Y : Integer := 0;
  2074. Width : Integer := 0;
  2075. Height : Integer := 0;
  2076. Color_1 : Color := Black;
  2077. Color_2 : Color := White
  2078. ) with
  2079. Import => True,
  2080. Convention => C,
  2081. External_Name => "DrawRectangleGradientH";
  2082. procedure Draw_Rectangle_Gradient_Ex (
  2083. Data : Rectangle := No_Rectangle;
  2084. Color_1 : Color := Red;
  2085. Color_2 : Color := Green;
  2086. Color_3 : Color := Blue;
  2087. Color_4 : Color := Black
  2088. ) with
  2089. Import => True,
  2090. Convention => C,
  2091. External_Name => "DrawRectangleGradientEx";
  2092. procedure Draw_Rectangle_Lines (
  2093. X : Integer := 0;
  2094. Y : Integer := 0;
  2095. Width : Integer := 0;
  2096. Height : Integer := 0;
  2097. Tint : Color := Black
  2098. ) with
  2099. Import => True,
  2100. Convention => C,
  2101. External_Name => "DrawRectangleLines";
  2102. procedure Draw_Rectangle_Lines_Ex (
  2103. Data : Rectangle := No_Rectangle;
  2104. Thickness : Float := 1.0;
  2105. Tint : Color := Black
  2106. ) with
  2107. Import => True,
  2108. Convention => C,
  2109. External_Name => "DrawRectangleLinesEx";
  2110. procedure Draw_Rectangle_Rounded (
  2111. Data : Rectangle := No_Rectangle;
  2112. Roundness : Float := 1.0;
  2113. Segments : Integer := 1;
  2114. Tint : Color := Black
  2115. ) with
  2116. Import => True,
  2117. Convention => C,
  2118. External_Name => "DrawRectangleRounded";
  2119. procedure Draw_Rectangle_Rounded_Lines (
  2120. Data : Rectangle := No_Rectangle;
  2121. Roundness : Float := 1.0;
  2122. Segments : Integer := 1;
  2123. Thickness : Float := 1.0;
  2124. Tint : Color := Black
  2125. ) with
  2126. Import => True,
  2127. Convention => C,
  2128. External_Name => "DrawRectangleRoundedLines";
  2129. --~procedure DrawTriangle (Vector2 v1, Vector2 v2, Vector2 v3, Color color) with
  2130. --~Import => True,
  2131. --~Convention => C,
  2132. --~External_Name => "";
  2133. --~procedure DrawTriangleLines (Vector2 v1, Vector2 v2, Vector2 v3, Color color) with
  2134. --~Import => True,
  2135. --~Convention => C,
  2136. --~External_Name => "";
  2137. --~procedure DrawTriangleFan (Vector2 *points, int pointCount, Color color) with
  2138. --~Import => True,
  2139. --~Convention => C,
  2140. --~External_Name => "";
  2141. --~procedure DrawTriangleStrip (Vector2 *points, int pointCount, Color color) with
  2142. --~Import => True,
  2143. --~Convention => C,
  2144. --~External_Name => "";
  2145. --~procedure DrawPoly (Vector2 center, int sides, float radius, float rotation, Color color) with
  2146. --~Import => True,
  2147. --~Convention => C,
  2148. --~External_Name => "";
  2149. --~procedure DrawPolyLines (Vector2 center, int sides, float radius, float rotation, Color color) with
  2150. --~Import => True,
  2151. --~Convention => C,
  2152. --~External_Name => "";
  2153. --~procedure DrawPolyLinesEx (Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) with
  2154. --~Import => True,
  2155. --~Convention => C,
  2156. --~External_Name => "";
  2157. --~procedure DrawSplineLinear (Vector2 *points, int pointCount, float thick, Color color) with
  2158. --~Import => True,
  2159. --~Convention => C,
  2160. --~External_Name => "";
  2161. --~procedure DrawSplineBasis (Vector2 *points, int pointCount, float thick, Color color) with
  2162. --~Import => True,
  2163. --~Convention => C,
  2164. --~External_Name => "";
  2165. --~procedure DrawSplineCatmullRom (Vector2 *points, int pointCount, float thick, Color color) with
  2166. --~Import => True,
  2167. --~Convention => C,
  2168. --~External_Name => "";
  2169. --~procedure DrawSplineBezierQuadratic (Vector2 *points, int pointCount, float thick, Color color) with
  2170. --~Import => True,
  2171. --~Convention => C,
  2172. --~External_Name => "";
  2173. --~procedure DrawSplineBezierCubic (Vector2 *points, int pointCount, float thick, Color color) with
  2174. --~Import => True,
  2175. --~Convention => C,
  2176. --~External_Name => "";
  2177. --~procedure DrawSplineSegmentLinear (Vector2 p1, Vector2 p2, float thick, Color color) with
  2178. --~Import => True,
  2179. --~Convention => C,
  2180. --~External_Name => "";
  2181. --~procedure DrawSplineSegmentBasis (Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) with
  2182. --~Import => True,
  2183. --~Convention => C,
  2184. --~External_Name => "";
  2185. --~procedure DrawSplineSegmentCatmullRom (Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) with
  2186. --~Import => True,
  2187. --~Convention => C,
  2188. --~External_Name => "";
  2189. --~procedure DrawSplineSegmentBezierQuadratic (Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) with
  2190. --~Import => True,
  2191. --~Convention => C,
  2192. --~External_Name => "";
  2193. --~procedure DrawSplineSegmentBezierCubic (Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) with
  2194. --~Import => True,
  2195. --~Convention => C,
  2196. --~External_Name => "";
  2197. --~function Vector2 GetSplinePointLinear (Vector2 startPos, Vector2 endPos, float t) with
  2198. --~Import => True,
  2199. --~Convention => C,
  2200. --~External_Name => "";
  2201. --~function Vector2 GetSplinePointBasis (Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) with
  2202. --~Import => True,
  2203. --~Convention => C,
  2204. --~External_Name => "";
  2205. --~function Vector2 GetSplinePointCatmullRom (Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) with
  2206. --~Import => True,
  2207. --~Convention => C,
  2208. --~External_Name => "";
  2209. --~function Vector2 GetSplinePointBezierQuad (Vector2 p1, Vector2 c2, Vector2 p3, float t) with
  2210. --~Import => True,
  2211. --~Convention => C,
  2212. --~External_Name => "";
  2213. --~function Vector2 GetSplinePointBezierCubic (Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) with
  2214. --~Import => True,
  2215. --~Convention => C,
  2216. --~External_Name => "";
  2217. --~function bool CheckCollisionRecs (Rectangle rec1, Rectangle rec2) with
  2218. --~Import => True,
  2219. --~Convention => C,
  2220. --~External_Name => "";
  2221. --~function bool CheckCollisionCircles (Vector2 center1, float radius1, Vector2 center2, float radius2) with
  2222. --~Import => True,
  2223. --~Convention => C,
  2224. --~External_Name => "";
  2225. --~function bool CheckCollisionCircleRec (Vector2 center, float radius, Rectangle rec) with
  2226. --~Import => True,
  2227. --~Convention => C,
  2228. --~External_Name => "";
  2229. --~function bool CheckCollisionPointRec (Vector2 point, Rectangle rec) with
  2230. --~Import => True,
  2231. --~Convention => C,
  2232. --~External_Name => "";
  2233. --~function bool CheckCollisionPointCircle (Vector2 point, Vector2 center, float radius) with
  2234. --~Import => True,
  2235. --~Convention => C,
  2236. --~External_Name => "";
  2237. --~function bool CheckCollisionPointTriangle (Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) with
  2238. --~Import => True,
  2239. --~Convention => C,
  2240. --~External_Name => "";
  2241. --~function bool CheckCollisionPointPoly (Vector2 point, Vector2 *points, int pointCount) with
  2242. --~Import => True,
  2243. --~Convention => C,
  2244. --~External_Name => "";
  2245. --~function bool CheckCollisionLines (Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint) with
  2246. --~Import => True,
  2247. --~Convention => C,
  2248. --~External_Name => "";
  2249. --~function bool CheckCollisionPointLine (Vector2 point, Vector2 p1, Vector2 p2, int threshold) with
  2250. --~Import => True,
  2251. --~Convention => C,
  2252. --~External_Name => "";
  2253. --~function Rectangle GetCollisionRec (Rectangle rec1, Rectangle rec2) with
  2254. --~Import => True,
  2255. --~Convention => C,
  2256. --~External_Name => "";
  2257. --~function Image LoadImage (const char *fileName) with
  2258. --~Import => True,
  2259. --~Convention => C,
  2260. --~External_Name => "";
  2261. --~function Image LoadImageRaw (const char *fileName, int width, int height, int format, int headerSize) with
  2262. --~Import => True,
  2263. --~Convention => C,
  2264. --~External_Name => "";
  2265. --~function Image LoadImageSvg (const char *fileNameOrString, int width, int height) with
  2266. --~Import => True,
  2267. --~Convention => C,
  2268. --~External_Name => "";
  2269. --~function Image LoadImageAnim (const char *fileName, int *frames) with
  2270. --~Import => True,
  2271. --~Convention => C,
  2272. --~External_Name => "";
  2273. --~function Image LoadImageFromMemory (const char *fileType, const unsigned char *fileData, int dataSize) with
  2274. --~Import => True,
  2275. --~Convention => C,
  2276. --~External_Name => "";
  2277. --~function Image LoadImageFromTexture (Texture2D texture) with
  2278. --~Import => True,
  2279. --~Convention => C,
  2280. --~External_Name => "";
  2281. --~function Image LoadImageFromScreen (void) with
  2282. --~Import => True,
  2283. --~Convention => C,
  2284. --~External_Name => "";
  2285. --~function bool IsImageReady (Image image) with
  2286. --~Import => True,
  2287. --~Convention => C,
  2288. --~External_Name => "";
  2289. --~procedure UnloadImage (Image image) with
  2290. --~Import => True,
  2291. --~Convention => C,
  2292. --~External_Name => "";
  2293. --~function bool ExportImage (Image image, const char *fileName) with
  2294. --~Import => True,
  2295. --~Convention => C,
  2296. --~External_Name => "";
  2297. --~function unsigned char *ExportImageToMemory (Image image, const char *fileType, int *fileSize) with
  2298. --~Import => True,
  2299. --~Convention => C,
  2300. --~External_Name => "";
  2301. --~function bool ExportImageAsCode (Image image, const char *fileName) with
  2302. --~Import => True,
  2303. --~Convention => C,
  2304. --~External_Name => "";
  2305. --~function Image GenImageColor (int width, int height, Color color) with
  2306. --~Import => True,
  2307. --~Convention => C,
  2308. --~External_Name => "";
  2309. --~function Image GenImageGradientLinear (int width, int height, int direction, Color start, Color end) with
  2310. --~Import => True,
  2311. --~Convention => C,
  2312. --~External_Name => "";
  2313. --~function Image GenImageGradientRadial (int width, int height, float density, Color inner, Color outer) with
  2314. --~Import => True,
  2315. --~Convention => C,
  2316. --~External_Name => "";
  2317. --~function Image GenImageGradientSquare (int width, int height, float density, Color inner, Color outer) with
  2318. --~Import => True,
  2319. --~Convention => C,
  2320. --~External_Name => "";
  2321. --~function Image GenImageChecked (int width, int height, int checksX, int checksY, Color col1, Color col2) with
  2322. --~Import => True,
  2323. --~Convention => C,
  2324. --~External_Name => "";
  2325. --~function Image GenImageWhiteNoise (int width, int height, float factor) with
  2326. --~Import => True,
  2327. --~Convention => C,
  2328. --~External_Name => "";
  2329. --~function Image GenImagePerlinNoise (int width, int height, int offsetX, int offsetY, float scale) with
  2330. --~Import => True,
  2331. --~Convention => C,
  2332. --~External_Name => "";
  2333. --~function Image GenImageCellular (int width, int height, int tileSize) with
  2334. --~Import => True,
  2335. --~Convention => C,
  2336. --~External_Name => "";
  2337. --~function Image GenImageText (int width, int height, const char *text) with
  2338. --~Import => True,
  2339. --~Convention => C,
  2340. --~External_Name => "";
  2341. --~function Image ImageCopy (Image image) with
  2342. --~Import => True,
  2343. --~Convention => C,
  2344. --~External_Name => "";
  2345. --~function Image ImageFromImage (Image image, Rectangle rec) with
  2346. --~Import => True,
  2347. --~Convention => C,
  2348. --~External_Name => "";
  2349. --~function Image ImageText (const char *text, int fontSize, Color color) with
  2350. --~Import => True,
  2351. --~Convention => C,
  2352. --~External_Name => "";
  2353. --~function Image ImageTextEx (Font font, const char *text, float fontSize, float spacing, Color tint) with
  2354. --~Import => True,
  2355. --~Convention => C,
  2356. --~External_Name => "";
  2357. --~procedure ImageFormat (Image *image, int newFormat) with
  2358. --~Import => True,
  2359. --~Convention => C,
  2360. --~External_Name => "";
  2361. --~procedure ImageToPOT (Image *image, Color fill) with
  2362. --~Import => True,
  2363. --~Convention => C,
  2364. --~External_Name => "";
  2365. --~procedure ImageCrop (Image *image, Rectangle crop) with
  2366. --~Import => True,
  2367. --~Convention => C,
  2368. --~External_Name => "";
  2369. --~procedure ImageAlphaCrop (Image *image, float threshold) with
  2370. --~Import => True,
  2371. --~Convention => C,
  2372. --~External_Name => "";
  2373. --~procedure ImageAlphaClear (Image *image, Color color, float threshold) with
  2374. --~Import => True,
  2375. --~Convention => C,
  2376. --~External_Name => "";
  2377. --~procedure ImageAlphaMask (Image *image, Image alphaMask) with
  2378. --~Import => True,
  2379. --~Convention => C,
  2380. --~External_Name => "";
  2381. --~procedure ImageAlphaPremultiply (Image *image) with
  2382. --~Import => True,
  2383. --~Convention => C,
  2384. --~External_Name => "";
  2385. --~procedure ImageBlurGaussian (Image *image, int blurSize) with
  2386. --~Import => True,
  2387. --~Convention => C,
  2388. --~External_Name => "";
  2389. --~procedure ImageKernelConvolution (Image *image, float* kernel, int kernelSize) with
  2390. --~Import => True,
  2391. --~Convention => C,
  2392. --~External_Name => "";
  2393. --~procedure ImageResize (Image *image, int newWidth, int newHeight) with
  2394. --~Import => True,
  2395. --~Convention => C,
  2396. --~External_Name => "";
  2397. --~procedure ImageResizeNN (Image *image, int newWidth,int newHeight) with
  2398. --~Import => True,
  2399. --~Convention => C,
  2400. --~External_Name => "";
  2401. --~procedure ImageResizeCanvas (Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) with
  2402. --~Import => True,
  2403. --~Convention => C,
  2404. --~External_Name => "";
  2405. --~procedure ImageMipmaps (Image *image) with
  2406. --~Import => True,
  2407. --~Convention => C,
  2408. --~External_Name => "";
  2409. --~procedure ImageDither (Image *image, int rBpp, int gBpp, int bBpp, int aBpp) with
  2410. --~Import => True,
  2411. --~Convention => C,
  2412. --~External_Name => "";
  2413. --~procedure ImageFlipVertical (Image *image) with
  2414. --~Import => True,
  2415. --~Convention => C,
  2416. --~External_Name => "";
  2417. --~procedure ImageFlipHorizontal (Image *image) with
  2418. --~Import => True,
  2419. --~Convention => C,
  2420. --~External_Name => "";
  2421. --~procedure ImageRotate (Image *image, int degrees) with
  2422. --~Import => True,
  2423. --~Convention => C,
  2424. --~External_Name => "";
  2425. --~procedure ImageRotateCW (Image *image) with
  2426. --~Import => True,
  2427. --~Convention => C,
  2428. --~External_Name => "";
  2429. --~procedure ImageRotateCCW (Image *image) with
  2430. --~Import => True,
  2431. --~Convention => C,
  2432. --~External_Name => "";
  2433. --~procedure ImageColorTint (Image *image, Color color) with
  2434. --~Import => True,
  2435. --~Convention => C,
  2436. --~External_Name => "";
  2437. --~procedure ImageColorInvert (Image *image) with
  2438. --~Import => True,
  2439. --~Convention => C,
  2440. --~External_Name => "";
  2441. --~procedure ImageColorGrayscale (Image *image) with
  2442. --~Import => True,
  2443. --~Convention => C,
  2444. --~External_Name => "";
  2445. --~procedure ImageColorContrast (Image *image, float contrast) with
  2446. --~Import => True,
  2447. --~Convention => C,
  2448. --~External_Name => "";
  2449. --~procedure ImageColorBrightness (Image *image, int brightness) with
  2450. --~Import => True,
  2451. --~Convention => C,
  2452. --~External_Name => "";
  2453. --~procedure ImageColorReplace (Image *image, Color color, Color replace) with
  2454. --~Import => True,
  2455. --~Convention => C,
  2456. --~External_Name => "";
  2457. --~function Color *LoadImageColors (Image image) with
  2458. --~Import => True,
  2459. --~Convention => C,
  2460. --~External_Name => "";
  2461. --~function Color *LoadImagePalette (Image image, int maxPaletteSize, int *colorCount) with
  2462. --~Import => True,
  2463. --~Convention => C,
  2464. --~External_Name => "";
  2465. --~procedure UnloadImageColors (Color *colors) with
  2466. --~Import => True,
  2467. --~Convention => C,
  2468. --~External_Name => "";
  2469. --~procedure UnloadImagePalette (Color *colors) with
  2470. --~Import => True,
  2471. --~Convention => C,
  2472. --~External_Name => "";
  2473. --~function Rectangle GetImageAlphaBorder (Image image, float threshold) with
  2474. --~Import => True,
  2475. --~Convention => C,
  2476. --~External_Name => "";
  2477. --~function Color GetImageColor (Image image, int x, int y) with
  2478. --~Import => True,
  2479. --~Convention => C,
  2480. --~External_Name => "";
  2481. --~procedure ImageClearBackground (Image *dst, Color color) with
  2482. --~Import => True,
  2483. --~Convention => C,
  2484. --~External_Name => "";
  2485. --~procedure ImageDrawPixel (Image *dst, int posX, int posY, Color color) with
  2486. --~Import => True,
  2487. --~Convention => C,
  2488. --~External_Name => "";
  2489. --~procedure ImageDrawPixelV (Image *dst, Vector2 position, Color color) with
  2490. --~Import => True,
  2491. --~Convention => C,
  2492. --~External_Name => "";
  2493. --~procedure ImageDrawLine (Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) with
  2494. --~Import => True,
  2495. --~Convention => C,
  2496. --~External_Name => "";
  2497. --~procedure ImageDrawLineV (Image *dst, Vector2 start, Vector2 end, Color color) with
  2498. --~Import => True,
  2499. --~Convention => C,
  2500. --~External_Name => "";
  2501. --~procedure ImageDrawCircle (Image *dst, int centerX, int centerY, int radius, Color color) with
  2502. --~Import => True,
  2503. --~Convention => C,
  2504. --~External_Name => "";
  2505. --~procedure ImageDrawCircleV (Image *dst, Vector2 center, int radius, Color color) with
  2506. --~Import => True,
  2507. --~Convention => C,
  2508. --~External_Name => "";
  2509. --~procedure ImageDrawCircleLines (Image *dst, int centerX, int centerY, int radius, Color color) with
  2510. --~Import => True,
  2511. --~Convention => C,
  2512. --~External_Name => "";
  2513. --~procedure ImageDrawCircleLinesV (Image *dst, Vector2 center, int radius, Color color) with
  2514. --~Import => True,
  2515. --~Convention => C,
  2516. --~External_Name => "";
  2517. --~procedure ImageDrawRectangle (Image *dst, int posX, int posY, int width, int height, Color color) with
  2518. --~Import => True,
  2519. --~Convention => C,
  2520. --~External_Name => "";
  2521. --~procedure ImageDrawRectangleV (Image *dst, Vector2 position, Vector2 size, Color color) with
  2522. --~Import => True,
  2523. --~Convention => C,
  2524. --~External_Name => "";
  2525. --~procedure ImageDrawRectangleRec (Image *dst, Rectangle rec, Color color) with
  2526. --~Import => True,
  2527. --~Convention => C,
  2528. --~External_Name => "";
  2529. --~procedure ImageDrawRectangleLines (Image *dst, Rectangle rec, int thick, Color color) with
  2530. --~Import => True,
  2531. --~Convention => C,
  2532. --~External_Name => "";
  2533. --~procedure ImageDraw (Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint) with
  2534. --~Import => True,
  2535. --~Convention => C,
  2536. --~External_Name => "";
  2537. --~procedure ImageDrawText (Image *dst, const char *text, int posX, int posY, int fontSize, Color color) with
  2538. --~Import => True,
  2539. --~Convention => C,
  2540. --~External_Name => "";
  2541. --~procedure ImageDrawTextEx (Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) with
  2542. --~Import => True,
  2543. --~Convention => C,
  2544. --~External_Name => "";
  2545. function Load_Texture (
  2546. File_Path : String := ""
  2547. ) return Texture with
  2548. Import => True,
  2549. Convention => C,
  2550. External_Name => "LoadTexture";
  2551. --~function Texture2D LoadTextureFromImage (Image image) with
  2552. --~Import => True,
  2553. --~Convention => C,
  2554. --~External_Name => "";
  2555. --~function TextureCubemap LoadTextureCubemap (Image image, int layout) with
  2556. --~Import => True,
  2557. --~Convention => C,
  2558. --~External_Name => "";
  2559. --~function RenderTexture2D LoadRenderTexture (int width, int height) with
  2560. --~Import => True,
  2561. --~Convention => C,
  2562. --~External_Name => "";
  2563. --~function bool IsTextureReady (Texture2D texture) with
  2564. --~Import => True,
  2565. --~Convention => C,
  2566. --~External_Name => "";
  2567. procedure Unload_Texture (
  2568. Data : Texture := No_Texture
  2569. ) with
  2570. Import => True,
  2571. Convention => C,
  2572. External_Name => "UnloadTexture";
  2573. function Is_Render_Texture_Ready (
  2574. Target : Render_Texture := No_Render_Texture
  2575. ) return Logical with
  2576. Import => True,
  2577. Convention => C,
  2578. External_Name => "IsRenderTextureReady";
  2579. procedure Unload_Render_Texture (
  2580. Target : Render_Texture := No_Render_Texture
  2581. ) with
  2582. Import => True,
  2583. Convention => C,
  2584. External_Name => "UnloadRenderTexture";
  2585. procedure Update_Texture (
  2586. Data : Texture := No_Texture;
  2587. Pixels : Pointer := null
  2588. ) with
  2589. Import => True,
  2590. Convention => C,
  2591. External_Name => "UpdateTexture";
  2592. procedure Update_Texture_Rec (
  2593. Data : Texture := No_Texture;
  2594. Source : Rectangle := No_Rectangle;
  2595. Pixels : Pointer := null
  2596. ) with
  2597. Import => True,
  2598. Convention => C,
  2599. External_Name => "UpdateTextureRec";
  2600. procedure Gen_Texture_Mipmaps (
  2601. Data : Texture := No_Texture
  2602. ) with
  2603. Import => True,
  2604. Convention => C,
  2605. External_Name => "GenTextureMipmaps";
  2606. procedure Set_Texture_Filter (
  2607. Data : Texture := No_Texture;
  2608. Filter : Texture_Filter := Texture_Filter_Point
  2609. ) with
  2610. Import => True,
  2611. Convention => C,
  2612. External_Name => "SetTextureFilter";
  2613. procedure Set_Texture_Wrap (
  2614. Data : Texture := No_Texture;
  2615. Wrap : Texture_Wrap := Texture_Wrap_Repeat
  2616. ) with
  2617. Import => True,
  2618. Convention => C,
  2619. External_Name => "SetTextureWrap";
  2620. procedure Draw_Texture (
  2621. Data : Texture := No_Texture;
  2622. X : Integer := 0;
  2623. Y : Integer := 0;
  2624. Tint : Color := White
  2625. ) with
  2626. Import => True,
  2627. Convention => C,
  2628. External_Name => "DrawTexture";
  2629. procedure Draw_Texture_V (
  2630. Data : Texture := No_Texture;
  2631. Position : Vector_2D := (others => 0.0);
  2632. Tint : Color := White
  2633. ) with
  2634. Import => True,
  2635. Convention => C,
  2636. External_Name => "DrawTextureV";
  2637. procedure Draw_Texture_Ex (
  2638. Data : Texture := No_Texture;
  2639. Position : Vector_2D := (others => 0.0);
  2640. Rotation : Float := 0.0;
  2641. Scale : Float := 0.0;
  2642. Tint : Color := White
  2643. ) with
  2644. Import => True,
  2645. Convention => C,
  2646. External_Name => "DrawTextureEx";
  2647. procedure Draw_Texture_Rec (
  2648. Data : Texture := No_Texture;
  2649. Source : Rectangle := No_Rectangle;
  2650. Position : Vector_2D := (others => 0.0);
  2651. Tint : Color := White
  2652. ) with
  2653. Import => True,
  2654. Convention => C,
  2655. External_Name => "DrawTextureRec";
  2656. procedure Draw_Texture_Pro (
  2657. Data : Texture := No_Texture;
  2658. Source : Rectangle := No_Rectangle;
  2659. Destination : Rectangle := No_Rectangle;
  2660. Origin : Vector_2D := (others => 0.0);
  2661. Rotation : Float := 0.0;
  2662. Tint : Color := White
  2663. ) with
  2664. Import => True,
  2665. Convention => C,
  2666. External_Name => "DrawTexturePro";
  2667. --~procedure DrawTextureNPatch (Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) with
  2668. --~Import => True,
  2669. --~Convention => C,
  2670. --~External_Name => "";
  2671. --~function Color Fade (Color color, float alpha) with
  2672. --~Import => True,
  2673. --~Convention => C,
  2674. --~External_Name => "";
  2675. --~function int ColorToInt (Color color) with
  2676. --~Import => True,
  2677. --~Convention => C,
  2678. --~External_Name => "";
  2679. --~function Vector4 ColorNormalize (Color color) with
  2680. --~Import => True,
  2681. --~Convention => C,
  2682. --~External_Name => "";
  2683. --~function Color ColorFromNormalized (Vector4 normalized) with
  2684. --~Import => True,
  2685. --~Convention => C,
  2686. --~External_Name => "";
  2687. --~function Vector3 ColorToHSV (Color color) with
  2688. --~Import => True,
  2689. --~Convention => C,
  2690. --~External_Name => "";
  2691. --~function Color ColorFromHSV (float hue, float saturation, float value) with
  2692. --~Import => True,
  2693. --~Convention => C,
  2694. --~External_Name => "";
  2695. --~function Color ColorTint (Color color, Color tint) with
  2696. --~Import => True,
  2697. --~Convention => C,
  2698. --~External_Name => "";
  2699. --~function Color ColorBrightness (Color color, float factor) with
  2700. --~Import => True,
  2701. --~Convention => C,
  2702. --~External_Name => "";
  2703. --~function Color ColorContrast (Color color, float contrast) with
  2704. --~Import => True,
  2705. --~Convention => C,
  2706. --~External_Name => "";
  2707. --~function Color ColorAlpha (Color color, float alpha) with
  2708. --~Import => True,
  2709. --~Convention => C,
  2710. --~External_Name => "";
  2711. --~function Color ColorAlphaBlend (Color dst, Color src, Color tint) with
  2712. --~Import => True,
  2713. --~Convention => C,
  2714. --~External_Name => "";
  2715. --~function Color GetColor (unsigned int hexValue) with
  2716. --~Import => True,
  2717. --~Convention => C,
  2718. --~External_Name => "";
  2719. --~function Color GetPixelColor (void *srcPtr, int format) with
  2720. --~Import => True,
  2721. --~Convention => C,
  2722. --~External_Name => "";
  2723. --~procedure SetPixelColor (void *dstPtr, Color color, int format) with
  2724. --~Import => True,
  2725. --~Convention => C,
  2726. --~External_Name => "";
  2727. --~function int GetPixelDataSize (int width, int height, int format) with
  2728. --~Import => True,
  2729. --~Convention => C,
  2730. --~External_Name => "";
  2731. function Get_Font_Default return Font with
  2732. Import => True,
  2733. Convention => C,
  2734. External_Name => "GetFontDefault";
  2735. function Load_Font (
  2736. File_Name : String := ""
  2737. ) return Font with
  2738. Import => True,
  2739. Convention => C,
  2740. External_Name => "LoadFont";
  2741. function Load_Font_Ex (
  2742. File_Name : String := "";
  2743. Font_Size : Integer := 32;
  2744. Code_Points : access Integer := null;
  2745. Code_Point_Count : Natural := 0
  2746. ) return Font with
  2747. Import => True,
  2748. Convention => C,
  2749. External_Name => "LoadFontEx";
  2750. function Load_Font_From_Image (
  2751. Data : Image := No_Image;
  2752. Key : Color := White;
  2753. First_Character : Integer := 0
  2754. ) return Font with
  2755. Import => True,
  2756. Convention => C,
  2757. External_Name => "LoadFontFromImage";
  2758. function Load_Font_From_Memory (
  2759. File_Type : String := "";
  2760. File_Data : Pointer := null;
  2761. Data_Size : Natural := 0;
  2762. Font_Size : Integer := 32;
  2763. Code_Points : access Integer := null;
  2764. Code_Point_Count : Natural := 0
  2765. ) return Font with
  2766. Import => True,
  2767. Convention => C,
  2768. External_Name => "LoadFontFromMemory";
  2769. function Is_Font_Ready (
  2770. Data : Font := No_Font
  2771. ) return Logical with
  2772. Import => True,
  2773. Convention => C,
  2774. External_Name => "IsFontReady";
  2775. function Load_Font_Data (
  2776. File_Data : Pointer := null;
  2777. Data_Size : Natural := 0;
  2778. Font_Size : Integer := 32;
  2779. Code_Points : access Integer := null;
  2780. Code_Point_Count : Natural := 0;
  2781. Kind : Integer := 0
  2782. ) return access Glyph_Info with
  2783. Import => True,
  2784. Convention => C,
  2785. External_Name => "LoadFontData";
  2786. function Gen_Image_Font_Atlas (
  2787. Glyphs : access Glyph_Info := null;
  2788. Glyph_Rectangles : access Rectangle := null;
  2789. Glyph_Count : Integer := 0;
  2790. Font_Size : Integer := 32;
  2791. Padding : Integer := 0;
  2792. Pack_Method : Integer := 0
  2793. ) return Image with
  2794. Import => True,
  2795. Convention => C,
  2796. External_Name => "GenImageFontAtlas";
  2797. procedure Unload_Font_Data (
  2798. Glyphs : access Glyph_Info := null;
  2799. Glyph_Count : Integer := 0
  2800. ) with
  2801. Import => True,
  2802. Convention => C,
  2803. External_Name => "UnloadFontData";
  2804. procedure Unload_Font (
  2805. Data : Font := No_Font
  2806. ) with
  2807. Import => True,
  2808. Convention => C,
  2809. External_Name => "UnloadFont";
  2810. function Export_Font_As_Code (
  2811. Data : Font := No_Font;
  2812. File_Name : String := ""
  2813. ) return Logical with
  2814. Import => True,
  2815. Convention => C,
  2816. External_Name => "ExportFontAsCode";
  2817. procedure Draw_FPS (
  2818. X : Integer := 0;
  2819. Y : Integer := 0
  2820. ) with
  2821. Import => True,
  2822. Convention => C,
  2823. External_Name => "DrawFPS";
  2824. procedure Draw_Text (
  2825. Text : String := "";
  2826. X : Integer := 0;
  2827. Y : Integer := 0;
  2828. Size : Integer := 32;
  2829. Tint : Color := White
  2830. ) with
  2831. Import => True,
  2832. Convention => C,
  2833. External_Name => "DrawText";
  2834. procedure Draw_Text_Ex (
  2835. Data : Font := Get_Font_Default;
  2836. Text : String := "";
  2837. Position : Vector_2D := (others => 0.0);
  2838. Font_Size : Float := 0.0;
  2839. Spacing : Float := 0.0;
  2840. Tint : Color := White
  2841. ) with
  2842. Import => True,
  2843. Convention => C,
  2844. External_Name => "DrawTextEx";
  2845. procedure Draw_Text_Pro (
  2846. Data : Font := Get_Font_Default;
  2847. Text : String := "";
  2848. Position : Vector_2D := (others => 0.0);
  2849. Origin : Vector_2D := (others => 0.0);
  2850. Rotation : Float := 0.0;
  2851. Font_Size : Float := 0.0;
  2852. Spacing : Float := 0.0;
  2853. Tint : Color := White
  2854. ) with
  2855. Import => True,
  2856. Convention => C,
  2857. External_Name => "DrawTextPro";
  2858. --~procedure DrawTextCodepoint (Font font, int codepoint, Vector2 position, float fontSize, Color tint) with
  2859. --~Import => True,
  2860. --~Convention => C,
  2861. --~External_Name => "";
  2862. --~procedure DrawTextCodepoints (Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) with
  2863. --~Import => True,
  2864. --~Convention => C,
  2865. --~External_Name => "";
  2866. procedure Set_Text_Line_Spacing (
  2867. Spacing : Integer := 0
  2868. ) with
  2869. Import => True,
  2870. Convention => C,
  2871. External_Name => "SetTextLineSpacing";
  2872. function Measure_Text (
  2873. Text : String := "";
  2874. Font_Size : Integer := 0
  2875. ) return Integer with
  2876. Import => True,
  2877. Convention => C,
  2878. External_Name => "MeasureText";
  2879. function Measure_Text_Ex (
  2880. Data : Font := Get_Font_Default;
  2881. Text : String := "";
  2882. Font_Size : Float := 0.0;
  2883. Spacing : Float := 0.0
  2884. ) return Vector_2D with
  2885. Import => True,
  2886. Convention => C,
  2887. External_Name => "MeasureTextEx";
  2888. function Get_Glyph_Index (
  2889. Data : Font := Get_Font_Default;
  2890. Code_Point : Integer := 0
  2891. ) return Integer with
  2892. Import => True,
  2893. Convention => C,
  2894. External_Name => "GetGlyphIndex";
  2895. function Get_Glyph_Info (
  2896. Data : Font := Get_Font_Default;
  2897. Code_Point : Integer := 0
  2898. ) return Glyph_Info with
  2899. Import => True,
  2900. Convention => C,
  2901. External_Name => "GetGlyphInfo";
  2902. function Get_Glyph_Atlas_Rec (
  2903. Data : Font := Get_Font_Default;
  2904. Code_Point : Integer := 0
  2905. ) return Rectangle with
  2906. Import => True,
  2907. Convention => C,
  2908. External_Name => "GetGlyphAtlasRec";
  2909. function Load_UTF8 (
  2910. Code_Points : access Integer := null;
  2911. Length : Integer := 0
  2912. ) return access Character with
  2913. Import => True,
  2914. Convention => C,
  2915. External_Name => "LoadUTF8";
  2916. procedure Unload_UTF8 (
  2917. Text : access Character := null
  2918. ) with
  2919. Import => True,
  2920. Convention => C,
  2921. External_Name => "UnloadUTF8";
  2922. --~function int *LoadCodepoints (const char *text, int *count) with
  2923. --~Import => True,
  2924. --~Convention => C,
  2925. --~External_Name => "";
  2926. --~procedure UnloadCodepoints (int *codepoints) with
  2927. --~Import => True,
  2928. --~Convention => C,
  2929. --~External_Name => "";
  2930. --~function int GetCodepointCount (const char *text) with
  2931. --~Import => True,
  2932. --~Convention => C,
  2933. --~External_Name => "";
  2934. --~function int GetCodepoint (const char *text, int *codepointSize) with
  2935. --~Import => True,
  2936. --~Convention => C,
  2937. --~External_Name => "";
  2938. --~function int GetCodepointNext (const char *text, int *codepointSize) with
  2939. --~Import => True,
  2940. --~Convention => C,
  2941. --~External_Name => "";
  2942. --~function int GetCodepointPrevious (const char *text, int *codepointSize) with
  2943. --~Import => True,
  2944. --~Convention => C,
  2945. --~External_Name => "";
  2946. --~function const char *CodepointToUTF8 (int codepoint, int *utf8Size) with
  2947. --~Import => True,
  2948. --~Convention => C,
  2949. --~External_Name => "";
  2950. --~function int TextCopy (char *dst, const char *src) with
  2951. --~Import => True,
  2952. --~Convention => C,
  2953. --~External_Name => "";
  2954. --~function bool TextIsEqual (const char *text1, const char *text2) with
  2955. --~Import => True,
  2956. --~Convention => C,
  2957. --~External_Name => "";
  2958. --~function unsigned int TextLength (const char *text) with
  2959. --~Import => True,
  2960. --~Convention => C,
  2961. --~External_Name => "";
  2962. --~function const char *TextFormat (const char *text, ...) with
  2963. --~Import => True,
  2964. --~Convention => C,
  2965. --~External_Name => "";
  2966. --~function const char *TextSubtext (const char *text, int position, int length) with
  2967. --~Import => True,
  2968. --~Convention => C,
  2969. --~External_Name => "";
  2970. --~function char *TextReplace (char *text, const char *replace, const char *by) with
  2971. --~Import => True,
  2972. --~Convention => C,
  2973. --~External_Name => "";
  2974. --~function char *TextInsert (const char *text, const char *insert, int position) with
  2975. --~Import => True,
  2976. --~Convention => C,
  2977. --~External_Name => "";
  2978. --~function const char *TextJoin (const char **textList, int count, const char *delimiter) with
  2979. --~Import => True,
  2980. --~Convention => C,
  2981. --~External_Name => "";
  2982. --~function const char **TextSplit (const char *text, char delimiter, int *count) with
  2983. --~Import => True,
  2984. --~Convention => C,
  2985. --~External_Name => "";
  2986. --~procedure TextAppend (char *text, const char *append, int *position) with
  2987. --~Import => True,
  2988. --~Convention => C,
  2989. --~External_Name => "";
  2990. --~function int TextFindIndex (const char *text, const char *find) with
  2991. --~Import => True,
  2992. --~Convention => C,
  2993. --~External_Name => "";
  2994. --~function const char *TextToUpper (const char *text) with
  2995. --~Import => True,
  2996. --~Convention => C,
  2997. --~External_Name => "";
  2998. --~function const char *TextToLower (const char *text) with
  2999. --~Import => True,
  3000. --~Convention => C,
  3001. --~External_Name => "";
  3002. --~function const char *TextToPascal (const char *text) with
  3003. --~Import => True,
  3004. --~Convention => C,
  3005. --~External_Name => "";
  3006. --~function int TextToInteger (const char *text) with
  3007. --~Import => True,
  3008. --~Convention => C,
  3009. --~External_Name => "";
  3010. --~procedure DrawLine3D (Vector3 startPos, Vector3 endPos, Color color) with
  3011. --~Import => True,
  3012. --~Convention => C,
  3013. --~External_Name => "";
  3014. --~procedure DrawPoint3D (Vector3 position, Color color) with
  3015. --~Import => True,
  3016. --~Convention => C,
  3017. --~External_Name => "";
  3018. --~procedure DrawCircle3D (Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) with
  3019. --~Import => True,
  3020. --~Convention => C,
  3021. --~External_Name => "";
  3022. --~procedure DrawTriangle3D (Vector3 v1, Vector3 v2, Vector3 v3, Color color) with
  3023. --~Import => True,
  3024. --~Convention => C,
  3025. --~External_Name => "";
  3026. --~procedure DrawTriangleStrip3D (Vector3 *points, int pointCount, Color color) with
  3027. --~Import => True,
  3028. --~Convention => C,
  3029. --~External_Name => "";
  3030. procedure Draw_Cube (
  3031. Position : Vector_3D := (others => 0.0);
  3032. Width : Float := 0.0;
  3033. Height : Float := 0.0;
  3034. Length : Float := 0.0;
  3035. Tint : Color := White
  3036. ) with
  3037. Import => True,
  3038. Convention => C,
  3039. External_Name => "DrawCube";
  3040. --~procedure DrawCubeV (Vector3 position, Vector3 size, Color color) with
  3041. --~Import => True,
  3042. --~Convention => C,
  3043. --~External_Name => "";
  3044. procedure Draw_Cube_Wires (
  3045. Position : Vector_3D := (others => 0.0);
  3046. Width : Float := 0.0;
  3047. Height : Float := 0.0;
  3048. Length : Float := 0.0;
  3049. Tint : Color := Black
  3050. ) with
  3051. Import => True,
  3052. Convention => C,
  3053. External_Name => "DrawCubeWires";
  3054. --~procedure DrawCubeWiresV (Vector3 position, Vector3 size, Color color) with
  3055. --~Import => True,
  3056. --~Convention => C,
  3057. --~External_Name => "";
  3058. --~procedure DrawSphere (Vector3 centerPos, float radius, Color color) with
  3059. --~Import => True,
  3060. --~Convention => C,
  3061. --~External_Name => "";
  3062. --~procedure DrawSphereEx (Vector3 centerPos, float radius, int rings, int slices, Color color) with
  3063. --~Import => True,
  3064. --~Convention => C,
  3065. --~External_Name => "";
  3066. --~procedure DrawSphereWires (Vector3 centerPos, float radius, int rings, int slices, Color color) with
  3067. --~Import => True,
  3068. --~Convention => C,
  3069. --~External_Name => "";
  3070. --~procedure DrawCylinder (Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) with
  3071. --~Import => True,
  3072. --~Convention => C,
  3073. --~External_Name => "";
  3074. --~procedure DrawCylinderEx (Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) with
  3075. --~Import => True,
  3076. --~Convention => C,
  3077. --~External_Name => "";
  3078. --~procedure DrawCylinderWires (Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) with
  3079. --~Import => True,
  3080. --~Convention => C,
  3081. --~External_Name => "";
  3082. --~procedure DrawCylinderWiresEx (Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) with
  3083. --~Import => True,
  3084. --~Convention => C,
  3085. --~External_Name => "";
  3086. --~procedure DrawCapsule (Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) with
  3087. --~Import => True,
  3088. --~Convention => C,
  3089. --~External_Name => "";
  3090. --~procedure DrawCapsuleWires (Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) with
  3091. --~Import => True,
  3092. --~Convention => C,
  3093. --~External_Name => "";
  3094. procedure Draw_Plane (
  3095. Center : Vector_3D := (others => 0.0);
  3096. Size : Vector_2D := (others => 0.0);
  3097. Tint : Color := White
  3098. ) with
  3099. Import => True,
  3100. Convention => C,
  3101. External_Name => "DrawPlane";
  3102. --~procedure DrawRay (Ray ray, Color color) with
  3103. --~Import => True,
  3104. --~Convention => C,
  3105. --~External_Name => "";
  3106. --~procedure DrawGrid (int slices, float spacing) with
  3107. --~Import => True,
  3108. --~Convention => C,
  3109. --~External_Name => "";
  3110. function Load_Model (
  3111. File_Name : String := ""
  3112. ) return Model with
  3113. Import => True,
  3114. Convention => C,
  3115. External_Name => "LoadModel";
  3116. --~function Model LoadModelFromMesh (Mesh mesh) with
  3117. --~Import => True,
  3118. --~Convention => C,
  3119. --~External_Name => "";
  3120. --~function bool IsModelReady (Model model) with
  3121. --~Import => True,
  3122. --~Convention => C,
  3123. --~External_Name => "";
  3124. procedure Unload_Model (
  3125. Data : Model := No_Model
  3126. ) with
  3127. Import => True,
  3128. Convention => C,
  3129. External_Name => "UnloadModel";
  3130. function GetModelBoundingBox (
  3131. Data : Model := No_Model
  3132. ) return Bounding_Box with
  3133. Import => True,
  3134. Convention => C,
  3135. External_Name => "GetModelBoundingBox";
  3136. procedure Draw_Model (
  3137. Data : Model := No_Model;
  3138. Position : Vector_3D := (others => 0.0);
  3139. Scale : Float := 1.0;
  3140. Tint : Color := White
  3141. ) with
  3142. Import => True,
  3143. Convention => C,
  3144. External_Name => "DrawModel";
  3145. procedure Draw_Model_Ex (
  3146. Data : Model := No_Model;
  3147. Position : Vector_3D := (others => 0.0);
  3148. Axis : Vector_3D := (others => 0.0);
  3149. Angle : Float := 0.0;
  3150. Scale : Vector_3D := (1.0, 1.0, 1.0);
  3151. Tint : Color := White
  3152. ) with
  3153. Import => True,
  3154. Convention => C,
  3155. External_Name => "DrawModelEx";
  3156. procedure Draw_Model_Wires (
  3157. Data : Model := No_Model;
  3158. Position : Vector_3D := (others => 0.0);
  3159. Scale : Float := 0.0;
  3160. Tint : Color := White
  3161. ) with
  3162. Import => True,
  3163. Convention => C,
  3164. External_Name => "DrawModelWires";
  3165. procedure Draw_Model_Wires_Ex (
  3166. Data : Model := No_Model;
  3167. Position : Vector_3D := (others => 0.0);
  3168. Axis : Vector_3D := (others => 0.0);
  3169. Angle : Float := 0.0;
  3170. Scale : Vector_3D := (1.0, 1.0, 1.0);
  3171. Tint : Color := White
  3172. ) with
  3173. Import => True,
  3174. Convention => C,
  3175. External_Name => "DrawModelWiresEx";
  3176. procedure Draw_Bounding_Box (
  3177. Box : Bounding_Box := No_Bounding_Box;
  3178. Tint : Color := White
  3179. ) with
  3180. Import => True,
  3181. Convention => C,
  3182. External_Name => "DrawBoundingBox";
  3183. procedure Draw_Billboard (
  3184. Camera : Camera_3D := No_Camera_3D;
  3185. Billboard : Texture := No_Texture;
  3186. Position : Vector_3D := (others => 0.0);
  3187. Size : Float := 0.0;
  3188. Tint : Color := White
  3189. ) with
  3190. Import => True,
  3191. Convention => C,
  3192. External_Name => "DrawBillboard";
  3193. procedure Draw_Billboard_Rec (
  3194. Camera : Camera_3D := No_Camera_3D;
  3195. Billboard : Texture := No_Texture;
  3196. Source : Rectangle := No_Rectangle;
  3197. Position : Vector_3D := (others => 0.0);
  3198. Size : Vector_2D := (others => 0.0);
  3199. Tint : Color := White
  3200. ) with
  3201. Import => True,
  3202. Convention => C,
  3203. External_Name => "DrawBillboardRec";
  3204. procedure Draw_Billboard_Pro (
  3205. Camera : Camera_3D := No_Camera_3D;
  3206. Billboard : Texture := No_Texture;
  3207. Source : Rectangle := No_Rectangle;
  3208. Position : Vector_3D := (others => 0.0);
  3209. Up : Vector_3D := (others => 0.0);
  3210. Size : Vector_2D := (others => 0.0);
  3211. Origin : Vector_2D := (others => 0.0);
  3212. Rotation : Float := 0.0;
  3213. Tint : Color := White
  3214. ) with
  3215. Import => True,
  3216. Convention => C,
  3217. External_Name => "DrawBillboardPro";
  3218. procedure Upload_Mesh (
  3219. Data : access Mesh := null;
  3220. Dynamic : Logical := False
  3221. ) with
  3222. Import => True,
  3223. Convention => C,
  3224. External_Name => "UploadMesh";
  3225. procedure Update_Mesh_Buffer (
  3226. Data : Mesh := No_Mesh;
  3227. Index : Integer := 0;
  3228. This : Pointer := null;
  3229. Data_Size : Natural := 0;
  3230. Offset : Integer := 0
  3231. ) with
  3232. Import => True,
  3233. Convention => C,
  3234. External_Name => "UpdateMeshBuffer";
  3235. procedure Unload_Mesh (
  3236. Data : Mesh := No_Mesh
  3237. ) with
  3238. Import => True,
  3239. Convention => C,
  3240. External_Name => "UnloadMesh";
  3241. procedure Draw_Mesh (
  3242. Data : Mesh := No_Mesh;
  3243. Pixels : Material := No_Material;
  3244. Transform : Matrix_4D := (others => 0.0)
  3245. ) with
  3246. Import => True,
  3247. Convention => C,
  3248. External_Name => "DrawMesh";
  3249. procedure Draw_Mesh_Instanced (
  3250. Data : Mesh := No_Mesh;
  3251. Use_Material : Material := No_Material;
  3252. Transforms : access Matrix_4D := null;
  3253. Instances : Integer := 0
  3254. ) with
  3255. Import => True,
  3256. Convention => C,
  3257. External_Name => "DrawMeshInstanced";
  3258. function Get_Mesh_Bounding_Box (
  3259. Data : Mesh := No_Mesh
  3260. ) return Bounding_Box with
  3261. Import => True,
  3262. Convention => C,
  3263. External_Name => "GetMeshBoundingBox";
  3264. procedure Gen_Mesh_Tangents (
  3265. Data : access Mesh := null
  3266. ) with
  3267. Import => True,
  3268. Convention => C,
  3269. External_Name => "GenMeshTangents";
  3270. function Export_Mesh (
  3271. Data : Mesh := No_Mesh;
  3272. File_Name : String := ""
  3273. ) return Logical with
  3274. Import => True,
  3275. Convention => C,
  3276. External_Name => "ExportMesh";
  3277. function Export_Mesh_As_Code (
  3278. Data : Mesh := No_Mesh;
  3279. File_Name : String := ""
  3280. ) return Logical with
  3281. Import => True,
  3282. Convention => C,
  3283. External_Name => "ExportMeshAsCode";
  3284. function Gen_Mesh_Poly (
  3285. Sides : Integer := 0;
  3286. Radius : Float := 0.0
  3287. ) return Mesh with
  3288. Import => True,
  3289. Convention => C,
  3290. External_Name => "GenMeshPoly";
  3291. function Gen_Mesh_Plane (
  3292. Width : Float := 1.0;
  3293. Height : Float := 1.0;
  3294. X : Integer := 1;
  3295. Z : Integer := 1
  3296. ) return Mesh with
  3297. Import => True,
  3298. Convention => C,
  3299. External_Name => "GenMeshPlane";
  3300. function Gen_Mesh_Cube (
  3301. Width : Float := 0.0;
  3302. Height : Float := 0.0;
  3303. Length : Float := 0.0
  3304. ) return Mesh with
  3305. Import => True,
  3306. Convention => C,
  3307. External_Name => "GenMeshCube";
  3308. function Gen_Mesh_Sphere (
  3309. Radius : Float := 0.0;
  3310. Rings : Integer := 0;
  3311. Slices : Integer := 0
  3312. ) return Mesh with
  3313. Import => True,
  3314. Convention => C,
  3315. External_Name => "GenMeshSphere";
  3316. function Gen_Mesh_Hemisphere (
  3317. Radius : Float := 0.0;
  3318. Rings : Integer := 0;
  3319. Slices : Integer := 0
  3320. ) return Mesh with
  3321. Import => True,
  3322. Convention => C,
  3323. External_Name => "GenMeshHemiSphere";
  3324. function Gen_Mesh_Cylinder (
  3325. Radius : Float := 0.0;
  3326. Height : Float := 0.0;
  3327. Slices : Integer := 0
  3328. ) return Mesh with
  3329. Import => True,
  3330. Convention => C,
  3331. External_Name => "GenMeshCylinder";
  3332. function Gen_Mesh_Cone (
  3333. Radius : Float := 0.0;
  3334. Height : Float := 0.0;
  3335. Slices : Integer := 0
  3336. ) return Mesh with
  3337. Import => True,
  3338. Convention => C,
  3339. External_Name => "GenMeshCone";
  3340. function Gen_Mesh_Torus (
  3341. Radius : Float := 0.0;
  3342. Size : Float := 0.0;
  3343. Segments : Integer := 0;
  3344. Sides : Integer := 0
  3345. ) return Mesh with
  3346. Import => True,
  3347. Convention => C,
  3348. External_Name => "GenMeshTorus";
  3349. function Gen_Mesh_Knot (
  3350. Radius : Float := 0.0;
  3351. Size : Float := 0.0;
  3352. Segments : Integer := 0;
  3353. Sides : Integer := 0
  3354. ) return Mesh with
  3355. Import => True,
  3356. Convention => C,
  3357. External_Name => "GenMeshKnot";
  3358. function Gen_Mesh_Height_Map (
  3359. Height_Map : Image := No_Image;
  3360. Size : Vector_3D := (others => 0.0)
  3361. ) return Mesh with
  3362. Import => True,
  3363. Convention => C,
  3364. External_Name => "GenMeshHeightmap";
  3365. function Gen_Mesh_Cubic_Map (
  3366. Cubic_Map : Image := No_Image;
  3367. Size : Vector_3D := (others => 0.0)
  3368. ) return Mesh with
  3369. Import => True,
  3370. Convention => C,
  3371. External_Name => "GenMeshCubicmap";
  3372. function Load_Materials (
  3373. File_Name : String := "";
  3374. Counts : access Integer := null
  3375. ) return access Material with
  3376. Import => True,
  3377. Convention => C,
  3378. External_Name => "LoadMaterials";
  3379. function Load_Material_Default return Material with
  3380. Import => True,
  3381. Convention => C,
  3382. External_Name => "LoadMaterialDefault";
  3383. function Is_Material_Ready (
  3384. Data : Material := No_Material
  3385. ) return Logical with
  3386. Import => True,
  3387. Convention => C,
  3388. External_Name => "IsMaterialReady";
  3389. procedure Unload_Material (
  3390. Data : Material := No_Material
  3391. ) with
  3392. Import => True,
  3393. Convention => C,
  3394. External_Name => "UnloadMaterial";
  3395. procedure Set_Material_Texture (
  3396. Data : access Material := null;
  3397. Kind : Material_Map_Index := Material_Map_Height;
  3398. This : Texture := No_Texture
  3399. ) with
  3400. Import => True,
  3401. Convention => C,
  3402. External_Name => "SetMaterialTexture";
  3403. procedure Set_Model_Mesh_Material (
  3404. Data : access Model := null;
  3405. Mesh_Id : Integer := 0;
  3406. Material_Id : Integer := 0
  3407. ) with
  3408. Import => True,
  3409. Convention => C,
  3410. External_Name => "SetModelMeshMaterial";
  3411. function Load_Model_Animations (
  3412. File_Name : String := "";
  3413. Counts : access Integer := null
  3414. ) return access Model_Animation with
  3415. Import => True,
  3416. Convention => C,
  3417. External_Name => "LoadModelAnimations";
  3418. procedure Update_Model_Animation (
  3419. Data : Model := No_Model;
  3420. Animation : Model_Animation := No_Model_Animation;
  3421. Frame : Integer := 0
  3422. ) with
  3423. Import => True,
  3424. Convention => C,
  3425. External_Name => "UpdateModelAnimation";
  3426. procedure Unload_Model_Animation (
  3427. Animation : Model_Animation := No_Model_Animation
  3428. ) with
  3429. Import => True,
  3430. Convention => C,
  3431. External_Name => "UnloadModelAnimation";
  3432. procedure Unload_Model_Animations (
  3433. Animations : access Model_Animation := null;
  3434. Animation_Count : Natural := 0
  3435. ) with
  3436. Import => True,
  3437. Convention => C,
  3438. External_Name => "UnloadModelAnimations";
  3439. function Is_Model_Animation_Valid (
  3440. Data : Model := No_Model;
  3441. Animation : Model_Animation := No_Model_Animation
  3442. ) return Logical with
  3443. Import => True,
  3444. Convention => C,
  3445. External_Name => "IsModelAnimationValid";
  3446. function Check_Collision_Spheres (
  3447. Center_1 : Vector_3D := (others => 0.0);
  3448. Radius_1 : Float := 0.0;
  3449. Center_2 : Vector_3D := (others => 0.0);
  3450. Radius_2 : Float := 0.0
  3451. ) return Logical with
  3452. Import => True,
  3453. Convention => C,
  3454. External_Name => "CheckCollisionSpheres";
  3455. function Check_Collision_Boxes (
  3456. Box_1 : Bounding_Box := No_Bounding_Box;
  3457. Box_2 : Bounding_Box := No_Bounding_Box
  3458. ) return Logical with
  3459. Import => True,
  3460. Convention => C,
  3461. External_Name => "CheckCollisionBoxes";
  3462. function Check_Collision_Box_Sphere (
  3463. Box : Bounding_Box := No_Bounding_Box;
  3464. Center : Vector_3D := (others => 0.0);
  3465. Radius : Float := 0.0
  3466. ) return Logical with
  3467. Import => True,
  3468. Convention => C,
  3469. External_Name => "CheckCollisionBoxSphere";
  3470. function Get_Ray_Collision_Sphere (
  3471. Hit : Ray := No_Ray;
  3472. Center : Vector_3D := (others => 0.0);
  3473. Radius : Float := 0.0
  3474. ) return Ray_Collision with
  3475. Import => True,
  3476. Convention => C,
  3477. External_Name => "GetRayCollisionSphere";
  3478. function Get_Ray_Collision_Box (
  3479. Hit : Ray := No_Ray;
  3480. Box : Bounding_Box := No_Bounding_Box
  3481. ) return Ray_Collision with
  3482. Import => True,
  3483. Convention => C,
  3484. External_Name => "GetRayCollisionBox";
  3485. function Get_Ray_Collision_Mesh (
  3486. Hit : Ray := No_Ray;
  3487. Data : Mesh := No_Mesh;
  3488. Transform : Matrix_4D := Id_Matrix
  3489. ) return Ray_Collision with
  3490. Import => True,
  3491. Convention => C,
  3492. External_Name => "GetRayCollisionMesh";
  3493. function Get_Ray_Collision_Triangle (
  3494. Hit : Ray := No_Ray;
  3495. Point_1 : Vector_3D := (others => 0.0);
  3496. Point_2 : Vector_3D := (others => 0.0);
  3497. Point_3 : Vector_3D := (others => 0.0)
  3498. ) return Ray_Collision with
  3499. Import => True,
  3500. Convention => C,
  3501. External_Name => "GetRayCollisionTriangle";
  3502. function Get_Ray_Collision_Quad (
  3503. Hit : Ray := No_Ray;
  3504. Point_1 : Vector_3D := (others => 0.0);
  3505. Point_2 : Vector_3D := (others => 0.0);
  3506. Point_3 : Vector_3D := (others => 0.0);
  3507. Point_4 : Vector_3D := (others => 0.0)
  3508. ) return Ray_Collision with
  3509. Import => True,
  3510. Convention => C,
  3511. External_Name => "GetRayCollisionQuad";
  3512. procedure Open_Audio_Device with
  3513. Import => True,
  3514. Convention => C,
  3515. External_Name => "InitAudioDevice";
  3516. procedure Close_Audio_Device with
  3517. Import => True,
  3518. Convention => C,
  3519. External_Name => "CloseAudioDevice";
  3520. function Is_Audio_Device_Ready return Logical with
  3521. Import => True,
  3522. Convention => C,
  3523. External_Name => "IsAudioDeviceReady";
  3524. procedure Set_Master_Volume (
  3525. Volume : Float := 1.0
  3526. ) with
  3527. Import => True,
  3528. Convention => C,
  3529. External_Name => "SetMasterVolume";
  3530. function Get_Master_Volume return Float with
  3531. Import => True,
  3532. Convention => C,
  3533. External_Name => "GetMasterVolume";
  3534. function Load_Wave (
  3535. File_Name : String := ""
  3536. ) return Wave with
  3537. Import => True,
  3538. Convention => C,
  3539. External_Name => "LoadWave";
  3540. function Load_Wave_From_Memory (
  3541. File_Type : String := "";
  3542. File_Data : Pointer := null;
  3543. Data_Size : Natural := 0
  3544. ) return Wave with
  3545. Import => True,
  3546. Convention => C,
  3547. External_Name => "LoadWaveFromMemory";
  3548. function Is_Wave_Ready (
  3549. Data : Wave := No_Wave
  3550. ) return Logical with
  3551. Import => True,
  3552. Convention => C,
  3553. External_Name => "IsWaveReady";
  3554. function Load_Sound (
  3555. File_Name : String := ""
  3556. ) return Sound with
  3557. Import => True,
  3558. Convention => C,
  3559. External_Name => "LoadSound";
  3560. function Load_Sound_From_Wave (
  3561. Data : Wave := No_Wave
  3562. ) return Sound with
  3563. Import => True,
  3564. Convention => C,
  3565. External_Name => "LoadSoundFromWave";
  3566. function Load_Sound_Alias (
  3567. Source : Sound := No_Sound
  3568. ) return Sound with
  3569. Import => True,
  3570. Convention => C,
  3571. External_Name => "LoadSoundAlias";
  3572. function Is_Sound_Ready (
  3573. Source : Sound := No_Sound
  3574. ) return Logical with
  3575. Import => True,
  3576. Convention => C,
  3577. External_Name => "IsSoundReady";
  3578. procedure Update_Sound (
  3579. Source : Sound := No_Sound;
  3580. Data : Pointer := null;
  3581. Sample_Count : Integer := 0
  3582. ) with
  3583. Import => True,
  3584. Convention => C,
  3585. External_Name => "UpdateSound";
  3586. procedure Unload_Wave (
  3587. Data : Wave := No_Wave
  3588. ) with
  3589. Import => True,
  3590. Convention => C,
  3591. External_Name => "UnloadWave";
  3592. procedure Unload_Sound (
  3593. Data : Sound := No_Sound
  3594. ) with
  3595. Import => True,
  3596. Convention => C,
  3597. External_Name => "UnloadSound";
  3598. procedure Unload_Sound_Alias (
  3599. Alias : Sound := No_Sound
  3600. ) with
  3601. Import => True,
  3602. Convention => C,
  3603. External_Name => "UnloadSoundAlias";
  3604. function Export_Wave (
  3605. Data : Wave := No_Wave;
  3606. File_Name : String := ""
  3607. ) return Logical with
  3608. Import => True,
  3609. Convention => C,
  3610. External_Name => "ExportWave";
  3611. function Export_Wave_As_Code (
  3612. Data : Wave := No_Wave;
  3613. File_Name : String := ""
  3614. ) return Logical with
  3615. Import => True,
  3616. Convention => C,
  3617. External_Name => "ExportWaveAsCode";
  3618. procedure Play_Sound (
  3619. Data : Sound := No_Sound
  3620. ) with
  3621. Import => True,
  3622. Convention => C,
  3623. External_Name => "PlaySound";
  3624. procedure Stop_Sound (
  3625. Data : Sound := No_Sound
  3626. ) with
  3627. Import => True,
  3628. Convention => C,
  3629. External_Name => "StopSound";
  3630. procedure Pause_Sound (
  3631. Data : Sound := No_Sound
  3632. ) with
  3633. Import => True,
  3634. Convention => C,
  3635. External_Name => "PauseSound";
  3636. procedure Resume_Sound (
  3637. Data : Sound := No_Sound
  3638. ) with
  3639. Import => True,
  3640. Convention => C,
  3641. External_Name => "ResumeSound";
  3642. function Is_Sound_Playing (
  3643. Data : Sound := No_Sound
  3644. ) return Logical with
  3645. Import => True,
  3646. Convention => C,
  3647. External_Name => "IsSoundPlaying";
  3648. procedure Set_Sound_Volume (
  3649. Data : Sound := No_Sound;
  3650. Volume : Float := 0.0
  3651. ) with
  3652. Import => True,
  3653. Convention => C,
  3654. External_Name => "SetSoundVolume";
  3655. procedure Set_Sound_Pitch (
  3656. Data : Sound := No_Sound;
  3657. Pitch : Float := 0.0
  3658. ) with
  3659. Import => True,
  3660. Convention => C,
  3661. External_Name => "SetSoundPitch";
  3662. procedure Set_Sound_Pan (
  3663. Data : Sound := No_Sound;
  3664. Pan : Float := 0.0
  3665. ) with
  3666. Import => True,
  3667. Convention => C,
  3668. External_Name => "SetSoundPan";
  3669. function Wave_Copy (
  3670. Data : Wave := No_Wave
  3671. ) return Wave with
  3672. Import => True,
  3673. Convention => C,
  3674. External_Name => "WaveCopy";
  3675. procedure Wave_Crop (
  3676. Data : access Wave := null;
  3677. First_Sample : Integer := 0;
  3678. Final_Sample : Integer := 0
  3679. ) with
  3680. Import => True,
  3681. Convention => C,
  3682. External_Name => "WaveCrop";
  3683. procedure Wave_Format (
  3684. Data : access Wave := null;
  3685. Sample_Rate : Integer := 0;
  3686. Sample_Size : Integer := 0;
  3687. Channels : Integer := 0
  3688. ) with
  3689. Import => True,
  3690. Convention => C,
  3691. External_Name => "WaveFormat";
  3692. function Load_Wave_Samples (
  3693. Data : Wave := No_Wave
  3694. ) return access Float with
  3695. Import => True,
  3696. Convention => C,
  3697. External_Name => "LoadWaveSamples";
  3698. procedure Unload_Wave_Samples (
  3699. Samples : access Float := null
  3700. ) with
  3701. Import => True,
  3702. Convention => C,
  3703. External_Name => "UnloadWaveSamples";
  3704. function Load_Music_Stream (
  3705. File_Name : String := ""
  3706. ) return Music with
  3707. Import => True,
  3708. Convention => C,
  3709. External_Name => "LoadMusicStream";
  3710. function Load_Music_Stream_From_Memory (
  3711. File_Type : String := "";
  3712. Data : Pointer := null;
  3713. Data_Size : Integer := 0
  3714. ) return Music with
  3715. Import => True,
  3716. Convention => C,
  3717. External_Name => "LoadMusicStreamFromMemory";
  3718. function Is_Music_Ready (
  3719. Data : Music := No_Music
  3720. ) return Logical with
  3721. Import => True,
  3722. Convention => C,
  3723. External_Name => "IsMusicReady";
  3724. procedure Unload_Music_Stream (
  3725. Data : Music := No_Music
  3726. ) with
  3727. Import => True,
  3728. Convention => C,
  3729. External_Name => "UnloadMusicStream";
  3730. procedure Play_Music_Stream (
  3731. Data : Music := No_Music
  3732. ) with
  3733. Import => True,
  3734. Convention => C,
  3735. External_Name => "PlayMusicStream";
  3736. function Is_Music_Stream_Playing (
  3737. Data : Music := No_Music
  3738. ) return Logical with
  3739. Import => True,
  3740. Convention => C,
  3741. External_Name => "IsMusicStreamPlaying";
  3742. procedure Update_Music_Stream (
  3743. Data : Music := No_Music
  3744. ) with
  3745. Import => True,
  3746. Convention => C,
  3747. External_Name => "UpdateMusicStream";
  3748. procedure Stop_Music_Stream (
  3749. Data : Music := No_Music
  3750. ) with
  3751. Import => True,
  3752. Convention => C,
  3753. External_Name => "StopMusicStream";
  3754. procedure Pause_Music_Stream (
  3755. Data : Music := No_Music
  3756. ) with
  3757. Import => True,
  3758. Convention => C,
  3759. External_Name => "PauseMusicStream";
  3760. procedure Resume_Music_Stream (
  3761. Data : Music := No_Music
  3762. ) with
  3763. Import => True,
  3764. Convention => C,
  3765. External_Name => "ResumeMusicStream";
  3766. procedure Seek_Music_Stream (
  3767. Data : Music := No_Music;
  3768. Position : Float := 0.0
  3769. ) with
  3770. Import => True,
  3771. Convention => C,
  3772. External_Name => "SeekMusicStream";
  3773. procedure Set_Music_Volume (
  3774. Data : Music := No_Music;
  3775. Volume : Float := 0.0
  3776. ) with
  3777. Import => True,
  3778. Convention => C,
  3779. External_Name => "SetMusicVolume";
  3780. procedure Set_Music_Pitch (
  3781. Data : Music := No_Music;
  3782. Pitch : Float := 0.0
  3783. ) with
  3784. Import => True,
  3785. Convention => C,
  3786. External_Name => "SetMusicPitch";
  3787. procedure Set_Music_Pan (
  3788. Data : Music := No_Music;
  3789. Pan : Float := 0.0
  3790. ) with
  3791. Import => True,
  3792. Convention => C,
  3793. External_Name => "SetMusicPan";
  3794. function Get_Music_Time_Length (
  3795. Data : Music := No_Music
  3796. ) return Float with
  3797. Import => True,
  3798. Convention => C,
  3799. External_Name => "GetMusicTimeLength";
  3800. function Get_Music_Time_Played (
  3801. Data : Music := No_Music
  3802. ) return Float with
  3803. Import => True,
  3804. Convention => C,
  3805. External_Name => "GetMusicTimePlayed";
  3806. function Load_Audio_Stream (
  3807. Sample_Rate : Natural := 0;
  3808. Sample_Size : Natural := 0;
  3809. Channels : Natural := 0
  3810. ) return Audio_Stream with
  3811. Import => True,
  3812. Convention => C,
  3813. External_Name => "LoadAudioStream";
  3814. function Is_Audio_Stream_Ready (
  3815. Data : Audio_Stream := No_Audio_Stream
  3816. ) return Logical with
  3817. Import => True,
  3818. Convention => C,
  3819. External_Name => "IsAudioStreamReady";
  3820. procedure Unload_Audio_Stream (
  3821. Data : Audio_Stream := No_Audio_Stream
  3822. ) with
  3823. Import => True,
  3824. Convention => C,
  3825. External_Name => "UnloadAudioStream";
  3826. procedure Update_Audio_Stream (
  3827. Data : Audio_Stream := No_Audio_Stream;
  3828. Raw_Data : Pointer := null;
  3829. Frame_Count : Integer := 0
  3830. ) with
  3831. Import => True,
  3832. Convention => C,
  3833. External_Name => "UpdateAudioStream";
  3834. function Is_Audio_Stream_Processed (
  3835. Data : Audio_Stream := No_Audio_Stream
  3836. ) return Logical with
  3837. Import => True,
  3838. Convention => C,
  3839. External_Name => "IsAudioStreamProcessed";
  3840. procedure Play_Audio_Stream (
  3841. Data : Audio_Stream := No_Audio_Stream
  3842. ) with
  3843. Import => True,
  3844. Convention => C,
  3845. External_Name => "PlayAudioStream";
  3846. procedure Pause_Audio_Stream (
  3847. Data : Audio_Stream := No_Audio_Stream
  3848. ) with
  3849. Import => True,
  3850. Convention => C,
  3851. External_Name => "PauseAudioStream";
  3852. procedure Resume_Audio_Stream (
  3853. Data : Audio_Stream := No_Audio_Stream
  3854. ) with
  3855. Import => True,
  3856. Convention => C,
  3857. External_Name => "ResumeAudioStream";
  3858. function Is_Audio_Stream_Playing (
  3859. Data : Audio_Stream := No_Audio_Stream
  3860. ) return Logical with
  3861. Import => True,
  3862. Convention => C,
  3863. External_Name => "IsAudioStreamPlaying";
  3864. procedure Stop_Audio_Stream (
  3865. Data : Audio_Stream := No_Audio_Stream
  3866. ) with
  3867. Import => True,
  3868. Convention => C,
  3869. External_Name => "StopAudioStream";
  3870. procedure Set_Audio_Stream_Volume (
  3871. Data : Audio_Stream := No_Audio_Stream;
  3872. Volume : Float := 0.0
  3873. ) with
  3874. Import => True,
  3875. Convention => C,
  3876. External_Name => "SetAudioStreamVolume";
  3877. procedure Set_Audio_Stream_Pitch (
  3878. Data : Audio_Stream := No_Audio_Stream;
  3879. Pitch : Float := 0.0
  3880. ) with
  3881. Import => True,
  3882. Convention => C,
  3883. External_Name => "SetAudioStreamPitch";
  3884. procedure Set_Audio_Stream_Pan (
  3885. Data : Audio_Stream := No_Audio_Stream;
  3886. Pan : Float := 0.0
  3887. ) with
  3888. Import => True,
  3889. Convention => C,
  3890. External_Name => "SetAudioStreamPan";
  3891. procedure Set_Audio_Stream_Buffer_Size_Default (
  3892. Size : Integer := 0
  3893. ) with
  3894. Import => True,
  3895. Convention => C,
  3896. External_Name => "SetAudioStreamBufferSizeDefault";
  3897. procedure Attach_Audio_Stream_Processor (
  3898. Stream : Audio_Stream := No_Audio_Stream;
  3899. Processor : Pointer := null
  3900. ) with
  3901. Import => True,
  3902. Convention => C,
  3903. External_Name => "AttachAudioStreamProcessor";
  3904. procedure Detach_Audio_Stream_Processor (
  3905. Stream : Audio_Stream := No_Audio_Stream;
  3906. Processor : Pointer := null
  3907. ) with
  3908. Import => True,
  3909. Convention => C,
  3910. External_Name => "DetachAudioStreamProcessor";
  3911. procedure Attach_Audio_Mixed_Processor (
  3912. Processor : Pointer := null
  3913. ) with
  3914. Import => True,
  3915. Convention => C,
  3916. External_Name => "AttachAudioMixedProcessor";
  3917. procedure Detach_Audio_Mixed_Processor (
  3918. Processor : Pointer := null
  3919. ) with
  3920. Import => True,
  3921. Convention => C,
  3922. External_Name => "DetachAudioMixedProcessor";
  3923. ------------------------------------------------------------------------
  3924. end Raylib;