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.

4735 lines
139KB

  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 Load_Texture_From_Image (
  2552. Data : Image := No_Image
  2553. ) return Texture with
  2554. Import => True,
  2555. Convention => C,
  2556. External_Name => "LoadTextureFromImage";
  2557. function Load_Texture_Cubemap (
  2558. Data : Image := No_Image;
  2559. Layout : Integer := 0
  2560. ) return Texture with
  2561. Import => True,
  2562. Convention => C,
  2563. External_Name => "LoadTextureCubemap";
  2564. function Load_Render_Texture (
  2565. Width : Natural := 0;
  2566. Height : Natural := 0
  2567. ) return Render_Texture with
  2568. Import => True,
  2569. Convention => C,
  2570. External_Name => "LoadRenderTexture";
  2571. function Is_Texture_Ready (
  2572. Data : Texture := No_Texture
  2573. ) return Logical with
  2574. Import => True,
  2575. Convention => C,
  2576. External_Name => "IsTextureReady";
  2577. procedure Unload_Texture (
  2578. Data : Texture := No_Texture
  2579. ) with
  2580. Import => True,
  2581. Convention => C,
  2582. External_Name => "UnloadTexture";
  2583. function Is_Render_Texture_Ready (
  2584. Target : Render_Texture := No_Render_Texture
  2585. ) return Logical with
  2586. Import => True,
  2587. Convention => C,
  2588. External_Name => "IsRenderTextureReady";
  2589. procedure Unload_Render_Texture (
  2590. Target : Render_Texture := No_Render_Texture
  2591. ) with
  2592. Import => True,
  2593. Convention => C,
  2594. External_Name => "UnloadRenderTexture";
  2595. procedure Update_Texture (
  2596. Data : Texture := No_Texture;
  2597. Pixels : Pointer := null
  2598. ) with
  2599. Import => True,
  2600. Convention => C,
  2601. External_Name => "UpdateTexture";
  2602. procedure Update_Texture_Rec (
  2603. Data : Texture := No_Texture;
  2604. Source : Rectangle := No_Rectangle;
  2605. Pixels : Pointer := null
  2606. ) with
  2607. Import => True,
  2608. Convention => C,
  2609. External_Name => "UpdateTextureRec";
  2610. procedure Gen_Texture_Mipmaps (
  2611. Data : Texture := No_Texture
  2612. ) with
  2613. Import => True,
  2614. Convention => C,
  2615. External_Name => "GenTextureMipmaps";
  2616. procedure Set_Texture_Filter (
  2617. Data : Texture := No_Texture;
  2618. Filter : Texture_Filter := Texture_Filter_Point
  2619. ) with
  2620. Import => True,
  2621. Convention => C,
  2622. External_Name => "SetTextureFilter";
  2623. procedure Set_Texture_Wrap (
  2624. Data : Texture := No_Texture;
  2625. Wrap : Texture_Wrap := Texture_Wrap_Repeat
  2626. ) with
  2627. Import => True,
  2628. Convention => C,
  2629. External_Name => "SetTextureWrap";
  2630. procedure Draw_Texture (
  2631. Data : Texture := No_Texture;
  2632. X : Integer := 0;
  2633. Y : Integer := 0;
  2634. Tint : Color := White
  2635. ) with
  2636. Import => True,
  2637. Convention => C,
  2638. External_Name => "DrawTexture";
  2639. procedure Draw_Texture_V (
  2640. Data : Texture := No_Texture;
  2641. Position : Vector_2D := (others => 0.0);
  2642. Tint : Color := White
  2643. ) with
  2644. Import => True,
  2645. Convention => C,
  2646. External_Name => "DrawTextureV";
  2647. procedure Draw_Texture_Ex (
  2648. Data : Texture := No_Texture;
  2649. Position : Vector_2D := (others => 0.0);
  2650. Rotation : Float := 0.0;
  2651. Scale : Float := 0.0;
  2652. Tint : Color := White
  2653. ) with
  2654. Import => True,
  2655. Convention => C,
  2656. External_Name => "DrawTextureEx";
  2657. procedure Draw_Texture_Rec (
  2658. Data : Texture := No_Texture;
  2659. Source : Rectangle := No_Rectangle;
  2660. Position : Vector_2D := (others => 0.0);
  2661. Tint : Color := White
  2662. ) with
  2663. Import => True,
  2664. Convention => C,
  2665. External_Name => "DrawTextureRec";
  2666. procedure Draw_Texture_Pro (
  2667. Data : Texture := No_Texture;
  2668. Source : Rectangle := No_Rectangle;
  2669. Destination : Rectangle := No_Rectangle;
  2670. Origin : Vector_2D := (others => 0.0);
  2671. Rotation : Float := 0.0;
  2672. Tint : Color := White
  2673. ) with
  2674. Import => True,
  2675. Convention => C,
  2676. External_Name => "DrawTexturePro";
  2677. procedure Draw_Texture_NPatch (
  2678. Data : Texture := No_Texture;
  2679. -- ERROR NPatch_Info : NPatch_Info := No_NPatch_Info;
  2680. Destination : Rectangle := No_Rectangle;
  2681. Origin : Vector_2D := (others => 0.0);
  2682. Rotation : Float := 0.0;
  2683. Tint : Color := White
  2684. ) with
  2685. Import => True,
  2686. Convention => C,
  2687. External_Name => "DrawTextureNPatch";
  2688. function Fade (
  2689. Data : Color := White;
  2690. Alpha : Float := 0.0
  2691. ) return Color with
  2692. Import => True,
  2693. Convention => C,
  2694. External_Name => "Fade";
  2695. function Color_To_Integer (
  2696. Data : Color := White
  2697. ) return Integer with
  2698. Import => True,
  2699. Convention => C,
  2700. External_Name => "ColorToInt";
  2701. function Color_Normalize (
  2702. Data : Color := White
  2703. ) return Vector_4D with
  2704. Import => True,
  2705. Convention => C,
  2706. External_Name => "ColorNormalize";
  2707. function Color_From_Normalized (
  2708. Normalized : Vector_4D := (others => 0.0)
  2709. ) return Color with
  2710. Import => True,
  2711. Convention => C,
  2712. External_Name => "ColorFromNormalized";
  2713. function Color_To_HSV (
  2714. Data : Color := White
  2715. ) return Vector_3D with
  2716. Import => True,
  2717. Convention => C,
  2718. External_Name => "ColorToHSV";
  2719. function Color_From_HSV (
  2720. Hue : Float := 0.0;
  2721. Saturation : Float := 0.0;
  2722. Value : Float := 0.0
  2723. ) return Color with
  2724. Import => True,
  2725. Convention => C,
  2726. External_Name => "ColorFromHSV";
  2727. function Color_Tint (
  2728. Data : Color := White;
  2729. Tint : Color := Black
  2730. ) return Color with
  2731. Import => True,
  2732. Convention => C,
  2733. External_Name => "ColorTint";
  2734. function Color_Brightness (
  2735. Data : Color := White;
  2736. Factor : Float := 0.0
  2737. ) return Color with
  2738. Import => True,
  2739. Convention => C,
  2740. External_Name => "ColorBrightness";
  2741. function Color_Contrast (
  2742. Data : Color := White;
  2743. Contrast : Float := 0.0
  2744. ) return Color with
  2745. Import => True,
  2746. Convention => C,
  2747. External_Name => "ColorContrast";
  2748. function Color_Alpha (
  2749. Data : Color := White;
  2750. Alpha : Float := 0.0
  2751. ) return Color with
  2752. Import => True,
  2753. Convention => C,
  2754. External_Name => "ColorAlpha";
  2755. function Color_Alpha_Blend (
  2756. Destination : Color := White;
  2757. Source : Color := Black;
  2758. Tint : Color := Ray_White
  2759. ) return Color with
  2760. Import => True,
  2761. Convention => C,
  2762. External_Name => "ColorAlphaBlend";
  2763. function Get_Color (
  2764. Value : Natural := 0
  2765. ) return Color with
  2766. Import => True,
  2767. Convention => C,
  2768. External_Name => "GetColor";
  2769. function Get_Pixel_Color (
  2770. Source : Pointer := null;
  2771. Format : Integer := 0
  2772. ) return Color with
  2773. Import => True,
  2774. Convention => C,
  2775. External_Name => "GetPixelColor";
  2776. procedure Set_Pixel_Color (
  2777. Destination : Pointer := null;
  2778. Data : Color := White;
  2779. Format : Integer := 0
  2780. ) with
  2781. Import => True,
  2782. Convention => C,
  2783. External_Name => "SetPixelColor";
  2784. function Get_Pixel_Data_Size (
  2785. Width : Natural := 0;
  2786. Height : Natural := 0;
  2787. Format : Integer := 0
  2788. ) return Integer with
  2789. Import => True,
  2790. Convention => C,
  2791. External_Name => "GetPixelDataSize";
  2792. function Get_Font_Default return Font with
  2793. Import => True,
  2794. Convention => C,
  2795. External_Name => "GetFontDefault";
  2796. function Load_Font (
  2797. File_Name : String := ""
  2798. ) return Font with
  2799. Import => True,
  2800. Convention => C,
  2801. External_Name => "LoadFont";
  2802. function Load_Font_Ex (
  2803. File_Name : String := "";
  2804. Font_Size : Integer := 32;
  2805. Code_Points : access Integer := null;
  2806. Code_Point_Count : Natural := 0
  2807. ) return Font with
  2808. Import => True,
  2809. Convention => C,
  2810. External_Name => "LoadFontEx";
  2811. function Load_Font_From_Image (
  2812. Data : Image := No_Image;
  2813. Key : Color := White;
  2814. First_Character : Integer := 0
  2815. ) return Font with
  2816. Import => True,
  2817. Convention => C,
  2818. External_Name => "LoadFontFromImage";
  2819. function Load_Font_From_Memory (
  2820. File_Type : String := "";
  2821. File_Data : Pointer := null;
  2822. Data_Size : Natural := 0;
  2823. Font_Size : Integer := 32;
  2824. Code_Points : access Integer := null;
  2825. Code_Point_Count : Natural := 0
  2826. ) return Font with
  2827. Import => True,
  2828. Convention => C,
  2829. External_Name => "LoadFontFromMemory";
  2830. function Is_Font_Ready (
  2831. Data : Font := No_Font
  2832. ) return Logical with
  2833. Import => True,
  2834. Convention => C,
  2835. External_Name => "IsFontReady";
  2836. function Load_Font_Data (
  2837. File_Data : Pointer := null;
  2838. Data_Size : Natural := 0;
  2839. Font_Size : Integer := 32;
  2840. Code_Points : access Integer := null;
  2841. Code_Point_Count : Natural := 0;
  2842. Kind : Integer := 0
  2843. ) return access Glyph_Info with
  2844. Import => True,
  2845. Convention => C,
  2846. External_Name => "LoadFontData";
  2847. function Gen_Image_Font_Atlas (
  2848. Glyphs : access Glyph_Info := null;
  2849. Glyph_Rectangles : access Rectangle := null;
  2850. Glyph_Count : Integer := 0;
  2851. Font_Size : Integer := 32;
  2852. Padding : Integer := 0;
  2853. Pack_Method : Integer := 0
  2854. ) return Image with
  2855. Import => True,
  2856. Convention => C,
  2857. External_Name => "GenImageFontAtlas";
  2858. procedure Unload_Font_Data (
  2859. Glyphs : access Glyph_Info := null;
  2860. Glyph_Count : Integer := 0
  2861. ) with
  2862. Import => True,
  2863. Convention => C,
  2864. External_Name => "UnloadFontData";
  2865. procedure Unload_Font (
  2866. Data : Font := No_Font
  2867. ) with
  2868. Import => True,
  2869. Convention => C,
  2870. External_Name => "UnloadFont";
  2871. function Export_Font_As_Code (
  2872. Data : Font := No_Font;
  2873. File_Name : String := ""
  2874. ) return Logical with
  2875. Import => True,
  2876. Convention => C,
  2877. External_Name => "ExportFontAsCode";
  2878. procedure Draw_FPS (
  2879. X : Integer := 0;
  2880. Y : Integer := 0
  2881. ) with
  2882. Import => True,
  2883. Convention => C,
  2884. External_Name => "DrawFPS";
  2885. procedure Draw_Text (
  2886. Text : String := "";
  2887. X : Integer := 0;
  2888. Y : Integer := 0;
  2889. Size : Integer := 32;
  2890. Tint : Color := White
  2891. ) with
  2892. Import => True,
  2893. Convention => C,
  2894. External_Name => "DrawText";
  2895. procedure Draw_Text_Ex (
  2896. Data : Font := Get_Font_Default;
  2897. Text : String := "";
  2898. Position : Vector_2D := (others => 0.0);
  2899. Font_Size : Float := 0.0;
  2900. Spacing : Float := 0.0;
  2901. Tint : Color := White
  2902. ) with
  2903. Import => True,
  2904. Convention => C,
  2905. External_Name => "DrawTextEx";
  2906. procedure Draw_Text_Pro (
  2907. Data : Font := Get_Font_Default;
  2908. Text : String := "";
  2909. Position : Vector_2D := (others => 0.0);
  2910. Origin : Vector_2D := (others => 0.0);
  2911. Rotation : Float := 0.0;
  2912. Font_Size : Float := 0.0;
  2913. Spacing : Float := 0.0;
  2914. Tint : Color := White
  2915. ) with
  2916. Import => True,
  2917. Convention => C,
  2918. External_Name => "DrawTextPro";
  2919. procedure Draw_Text_Codepoint (
  2920. Data : Font := Get_Font_Default;
  2921. Code_Point : Integer := 0;
  2922. Position : Vector_2D := (others => 0.0);
  2923. Font_Size : Float := 0.0;
  2924. Tint : Color := White
  2925. ) with
  2926. Import => True,
  2927. Convention => C,
  2928. External_Name => "DrawTextCodepoint";
  2929. procedure Draw_Text_Codepoints (
  2930. Data : Font := Get_Font_Default;
  2931. Code_Points : access Integer := null;
  2932. Code_Point_Count : Integer := 0;
  2933. Position : Vector_2D := (others => 0.0);
  2934. Font_Size : Float := 0.0;
  2935. Spacing : Float := 0.0;
  2936. Tint : Color := White
  2937. ) with
  2938. Import => True,
  2939. Convention => C,
  2940. External_Name => "DrawTextCodepoints";
  2941. procedure Set_Text_Line_Spacing (
  2942. Spacing : Integer := 0
  2943. ) with
  2944. Import => True,
  2945. Convention => C,
  2946. External_Name => "SetTextLineSpacing";
  2947. function Measure_Text (
  2948. Text : String := "";
  2949. Font_Size : Integer := 0
  2950. ) return Integer with
  2951. Import => True,
  2952. Convention => C,
  2953. External_Name => "MeasureText";
  2954. function Measure_Text_Ex (
  2955. Data : Font := Get_Font_Default;
  2956. Text : String := "";
  2957. Font_Size : Float := 0.0;
  2958. Spacing : Float := 0.0
  2959. ) return Vector_2D with
  2960. Import => True,
  2961. Convention => C,
  2962. External_Name => "MeasureTextEx";
  2963. function Get_Glyph_Index (
  2964. Data : Font := Get_Font_Default;
  2965. Code_Point : Integer := 0
  2966. ) return Integer with
  2967. Import => True,
  2968. Convention => C,
  2969. External_Name => "GetGlyphIndex";
  2970. function Get_Glyph_Info (
  2971. Data : Font := Get_Font_Default;
  2972. Code_Point : Integer := 0
  2973. ) return Glyph_Info with
  2974. Import => True,
  2975. Convention => C,
  2976. External_Name => "GetGlyphInfo";
  2977. function Get_Glyph_Atlas_Rec (
  2978. Data : Font := Get_Font_Default;
  2979. Code_Point : Integer := 0
  2980. ) return Rectangle with
  2981. Import => True,
  2982. Convention => C,
  2983. External_Name => "GetGlyphAtlasRec";
  2984. function Load_UTF8 (
  2985. Code_Points : access Integer := null;
  2986. Length : Integer := 0
  2987. ) return access Character with
  2988. Import => True,
  2989. Convention => C,
  2990. External_Name => "LoadUTF8";
  2991. procedure Unload_UTF8 (
  2992. Text : access Character := null
  2993. ) with
  2994. Import => True,
  2995. Convention => C,
  2996. External_Name => "UnloadUTF8";
  2997. --~function int *LoadCodepoints (const char *text, int *count) with
  2998. --~Import => True,
  2999. --~Convention => C,
  3000. --~External_Name => "";
  3001. --~procedure UnloadCodepoints (int *codepoints) with
  3002. --~Import => True,
  3003. --~Convention => C,
  3004. --~External_Name => "";
  3005. --~function int GetCodepointCount (const char *text) with
  3006. --~Import => True,
  3007. --~Convention => C,
  3008. --~External_Name => "";
  3009. --~function int GetCodepoint (const char *text, int *codepointSize) with
  3010. --~Import => True,
  3011. --~Convention => C,
  3012. --~External_Name => "";
  3013. --~function int GetCodepointNext (const char *text, int *codepointSize) with
  3014. --~Import => True,
  3015. --~Convention => C,
  3016. --~External_Name => "";
  3017. --~function int GetCodepointPrevious (const char *text, int *codepointSize) with
  3018. --~Import => True,
  3019. --~Convention => C,
  3020. --~External_Name => "";
  3021. --~function const char *CodepointToUTF8 (int codepoint, int *utf8Size) with
  3022. --~Import => True,
  3023. --~Convention => C,
  3024. --~External_Name => "";
  3025. --~function int TextCopy (char *dst, const char *src) with
  3026. --~Import => True,
  3027. --~Convention => C,
  3028. --~External_Name => "";
  3029. --~function bool TextIsEqual (const char *text1, const char *text2) with
  3030. --~Import => True,
  3031. --~Convention => C,
  3032. --~External_Name => "";
  3033. --~function unsigned int TextLength (const char *text) with
  3034. --~Import => True,
  3035. --~Convention => C,
  3036. --~External_Name => "";
  3037. --~function const char *TextFormat (const char *text, ...) with
  3038. --~Import => True,
  3039. --~Convention => C,
  3040. --~External_Name => "";
  3041. --~function const char *TextSubtext (const char *text, int position, int length) with
  3042. --~Import => True,
  3043. --~Convention => C,
  3044. --~External_Name => "";
  3045. --~function char *TextReplace (char *text, const char *replace, const char *by) with
  3046. --~Import => True,
  3047. --~Convention => C,
  3048. --~External_Name => "";
  3049. --~function char *TextInsert (const char *text, const char *insert, int position) with
  3050. --~Import => True,
  3051. --~Convention => C,
  3052. --~External_Name => "";
  3053. --~function const char *TextJoin (const char **textList, int count, const char *delimiter) with
  3054. --~Import => True,
  3055. --~Convention => C,
  3056. --~External_Name => "";
  3057. --~function const char **TextSplit (const char *text, char delimiter, int *count) with
  3058. --~Import => True,
  3059. --~Convention => C,
  3060. --~External_Name => "";
  3061. --~procedure TextAppend (char *text, const char *append, int *position) with
  3062. --~Import => True,
  3063. --~Convention => C,
  3064. --~External_Name => "";
  3065. --~function int TextFindIndex (const char *text, const char *find) with
  3066. --~Import => True,
  3067. --~Convention => C,
  3068. --~External_Name => "";
  3069. --~function const char *TextToUpper (const char *text) with
  3070. --~Import => True,
  3071. --~Convention => C,
  3072. --~External_Name => "";
  3073. --~function const char *TextToLower (const char *text) with
  3074. --~Import => True,
  3075. --~Convention => C,
  3076. --~External_Name => "";
  3077. --~function const char *TextToPascal (const char *text) with
  3078. --~Import => True,
  3079. --~Convention => C,
  3080. --~External_Name => "";
  3081. --~function int TextToInteger (const char *text) with
  3082. --~Import => True,
  3083. --~Convention => C,
  3084. --~External_Name => "";
  3085. --~procedure DrawLine3D (Vector3 startPos, Vector3 endPos, Color color) with
  3086. --~Import => True,
  3087. --~Convention => C,
  3088. --~External_Name => "";
  3089. --~procedure DrawPoint3D (Vector3 position, Color color) with
  3090. --~Import => True,
  3091. --~Convention => C,
  3092. --~External_Name => "";
  3093. --~procedure DrawCircle3D (Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) with
  3094. --~Import => True,
  3095. --~Convention => C,
  3096. --~External_Name => "";
  3097. --~procedure DrawTriangle3D (Vector3 v1, Vector3 v2, Vector3 v3, Color color) with
  3098. --~Import => True,
  3099. --~Convention => C,
  3100. --~External_Name => "";
  3101. --~procedure DrawTriangleStrip3D (Vector3 *points, int pointCount, Color color) with
  3102. --~Import => True,
  3103. --~Convention => C,
  3104. --~External_Name => "";
  3105. procedure Draw_Cube (
  3106. Position : Vector_3D := (others => 0.0);
  3107. Width : Float := 0.0;
  3108. Height : Float := 0.0;
  3109. Length : Float := 0.0;
  3110. Tint : Color := White
  3111. ) with
  3112. Import => True,
  3113. Convention => C,
  3114. External_Name => "DrawCube";
  3115. procedure Draw_Cube_V (
  3116. Position : Vector_3D := (others => 0.0);
  3117. Size : Vector_3D := (others => 0.0);
  3118. Tint : Color := White
  3119. ) with
  3120. Import => True,
  3121. Convention => C,
  3122. External_Name => "DrawCubeV";
  3123. procedure Draw_Cube_Wires (
  3124. Position : Vector_3D := (others => 0.0);
  3125. Width : Float := 0.0;
  3126. Height : Float := 0.0;
  3127. Length : Float := 0.0;
  3128. Tint : Color := Black
  3129. ) with
  3130. Import => True,
  3131. Convention => C,
  3132. External_Name => "DrawCubeWires";
  3133. procedure Draw_Cube_Wires_V (
  3134. Position : Vector_3D := (others => 0.0);
  3135. Size : Vector_3D := (others => 0.0);
  3136. Tint : Color := White
  3137. ) with
  3138. Import => True,
  3139. Convention => C,
  3140. External_Name => "DrawCubeWiresV";
  3141. procedure Draw_Sphere (
  3142. Center : Vector_3D := (others => 0.0);
  3143. Radius : Float := 0.0;
  3144. Tint : Color := White
  3145. ) with
  3146. Import => True,
  3147. Convention => C,
  3148. External_Name => "DrawSphere";
  3149. procedure Draw_Sphere_Ex (
  3150. Center : Vector_3D := (others => 0.0);
  3151. Radius : Float := 0.0;
  3152. Rings : Integer := 0;
  3153. Slices : Integer := 0;
  3154. Tint : Color := White
  3155. ) with
  3156. Import => True,
  3157. Convention => C,
  3158. External_Name => "DrawSphereEx";
  3159. procedure Draw_Sphere_Wires (
  3160. Center : Vector_3D := (others => 0.0);
  3161. Radius : Float := 0.0;
  3162. Rings : Integer := 0;
  3163. Slices : Integer := 0;
  3164. Tint : Color := White
  3165. ) with
  3166. Import => True,
  3167. Convention => C,
  3168. External_Name => "DrawSphereWires";
  3169. procedure Draw_Cylinder (
  3170. Position : Vector_3D := (others => 0.0);
  3171. Radius_Top : Float := 0.0;
  3172. Radius_Bottom : Float := 0.0;
  3173. Height : Float := 0.0;
  3174. Slices : Natural := 0;
  3175. Tint : Color := White
  3176. ) with
  3177. Import => True,
  3178. Convention => C,
  3179. External_Name => "DrawCylinder";
  3180. procedure Draw_Cylinder_Ex (
  3181. From : Vector_3D := (others => 0.0);
  3182. To : Vector_3D := (others => 0.0);
  3183. From_Radius : Float := 0.0;
  3184. To_Radius : Float := 0.0;
  3185. Sides : Natural := 0;
  3186. Tint : Color := White
  3187. ) with
  3188. Import => True,
  3189. Convention => C,
  3190. External_Name => "DrawCylinderEx";
  3191. procedure Draw_Cylinder_Wires (
  3192. Position : Vector_3D := (others => 0.0);
  3193. Radius_Top : Float := 0.0;
  3194. Radius_Bottom : Float := 0.0;
  3195. Height : Float := 0.0;
  3196. Slices : Natural := 0;
  3197. Tint : Color := White
  3198. ) with
  3199. Import => True,
  3200. Convention => C,
  3201. External_Name => "DrawCylinderWires";
  3202. procedure Draw_Cylinder_Wires_Ex (
  3203. From : Vector_3D := (others => 0.0);
  3204. To : Vector_3D := (others => 0.0);
  3205. From_Radius : Float := 0.0;
  3206. To_Radius : Float := 0.0;
  3207. Sides : Natural := 0;
  3208. Tint : Color := White
  3209. ) with
  3210. Import => True,
  3211. Convention => C,
  3212. External_Name => "DrawCylinderWiresEx";
  3213. procedure Draw_Capsule (
  3214. From : Vector_3D := (others => 0.0);
  3215. To : Vector_3D := (others => 0.0);
  3216. Radius : Float := 0.0;
  3217. Slices : Natural := 0;
  3218. Rings : Natural := 0;
  3219. Tint : Color := White
  3220. ) with
  3221. Import => True,
  3222. Convention => C,
  3223. External_Name => "DrawCapsule";
  3224. procedure Draw_Capsule_Wires (
  3225. From : Vector_3D := (others => 0.0);
  3226. To : Vector_3D := (others => 0.0);
  3227. Radius : Float := 0.0;
  3228. Slices : Natural := 0;
  3229. Rings : Natural := 0;
  3230. Tint : Color := White
  3231. ) with
  3232. Import => True,
  3233. Convention => C,
  3234. External_Name => "DrawCapsuleWires";
  3235. procedure Draw_Plane (
  3236. Center : Vector_3D := (others => 0.0);
  3237. Size : Vector_2D := (others => 0.0);
  3238. Tint : Color := White
  3239. ) with
  3240. Import => True,
  3241. Convention => C,
  3242. External_Name => "DrawPlane";
  3243. procedure Draw_Ray (
  3244. Data : Ray := No_Ray;
  3245. Tint : Color := White
  3246. ) with
  3247. Import => True,
  3248. Convention => C,
  3249. External_Name => "DrawRay";
  3250. procedure Draw_Grid (
  3251. Slices : Integer := 0;
  3252. Spacing : Float := 0.0
  3253. ) with
  3254. Import => True,
  3255. Convention => C,
  3256. External_Name => "DrawGrid";
  3257. function Load_Model (
  3258. File_Name : String := ""
  3259. ) return Model with
  3260. Import => True,
  3261. Convention => C,
  3262. External_Name => "LoadModel";
  3263. function Load_Model_From_Mesh (
  3264. Data : Mesh := No_Mesh
  3265. ) return Model with
  3266. Import => True,
  3267. Convention => C,
  3268. External_Name => "LoadModelFromMesh";
  3269. function Is_Model_Ready (
  3270. Data : Model := No_Model
  3271. ) return Logical with
  3272. Import => True,
  3273. Convention => C,
  3274. External_Name => "IsModelReady";
  3275. procedure Unload_Model (
  3276. Data : Model := No_Model
  3277. ) with
  3278. Import => True,
  3279. Convention => C,
  3280. External_Name => "UnloadModel";
  3281. function GetModelBoundingBox (
  3282. Data : Model := No_Model
  3283. ) return Bounding_Box with
  3284. Import => True,
  3285. Convention => C,
  3286. External_Name => "GetModelBoundingBox";
  3287. procedure Draw_Model (
  3288. Data : Model := No_Model;
  3289. Position : Vector_3D := (others => 0.0);
  3290. Scale : Float := 1.0;
  3291. Tint : Color := White
  3292. ) with
  3293. Import => True,
  3294. Convention => C,
  3295. External_Name => "DrawModel";
  3296. procedure Draw_Model_Ex (
  3297. Data : Model := No_Model;
  3298. Position : Vector_3D := (others => 0.0);
  3299. Axis : Vector_3D := (others => 0.0);
  3300. Angle : Float := 0.0;
  3301. Scale : Vector_3D := (1.0, 1.0, 1.0);
  3302. Tint : Color := White
  3303. ) with
  3304. Import => True,
  3305. Convention => C,
  3306. External_Name => "DrawModelEx";
  3307. procedure Draw_Model_Wires (
  3308. Data : Model := No_Model;
  3309. Position : Vector_3D := (others => 0.0);
  3310. Scale : Float := 0.0;
  3311. Tint : Color := White
  3312. ) with
  3313. Import => True,
  3314. Convention => C,
  3315. External_Name => "DrawModelWires";
  3316. procedure Draw_Model_Wires_Ex (
  3317. Data : Model := No_Model;
  3318. Position : Vector_3D := (others => 0.0);
  3319. Axis : Vector_3D := (others => 0.0);
  3320. Angle : Float := 0.0;
  3321. Scale : Vector_3D := (1.0, 1.0, 1.0);
  3322. Tint : Color := White
  3323. ) with
  3324. Import => True,
  3325. Convention => C,
  3326. External_Name => "DrawModelWiresEx";
  3327. procedure Draw_Bounding_Box (
  3328. Box : Bounding_Box := No_Bounding_Box;
  3329. Tint : Color := White
  3330. ) with
  3331. Import => True,
  3332. Convention => C,
  3333. External_Name => "DrawBoundingBox";
  3334. procedure Draw_Billboard (
  3335. Camera : Camera_3D := No_Camera_3D;
  3336. Billboard : Texture := No_Texture;
  3337. Position : Vector_3D := (others => 0.0);
  3338. Size : Float := 0.0;
  3339. Tint : Color := White
  3340. ) with
  3341. Import => True,
  3342. Convention => C,
  3343. External_Name => "DrawBillboard";
  3344. procedure Draw_Billboard_Rec (
  3345. Camera : Camera_3D := No_Camera_3D;
  3346. Billboard : Texture := No_Texture;
  3347. Source : Rectangle := No_Rectangle;
  3348. Position : Vector_3D := (others => 0.0);
  3349. Size : Vector_2D := (others => 0.0);
  3350. Tint : Color := White
  3351. ) with
  3352. Import => True,
  3353. Convention => C,
  3354. External_Name => "DrawBillboardRec";
  3355. procedure Draw_Billboard_Pro (
  3356. Camera : Camera_3D := No_Camera_3D;
  3357. Billboard : Texture := No_Texture;
  3358. Source : Rectangle := No_Rectangle;
  3359. Position : Vector_3D := (others => 0.0);
  3360. Up : Vector_3D := (others => 0.0);
  3361. Size : Vector_2D := (others => 0.0);
  3362. Origin : Vector_2D := (others => 0.0);
  3363. Rotation : Float := 0.0;
  3364. Tint : Color := White
  3365. ) with
  3366. Import => True,
  3367. Convention => C,
  3368. External_Name => "DrawBillboardPro";
  3369. procedure Upload_Mesh (
  3370. Data : access Mesh := null;
  3371. Dynamic : Logical := False
  3372. ) with
  3373. Import => True,
  3374. Convention => C,
  3375. External_Name => "UploadMesh";
  3376. procedure Update_Mesh_Buffer (
  3377. Data : Mesh := No_Mesh;
  3378. Index : Integer := 0;
  3379. This : Pointer := null;
  3380. Data_Size : Natural := 0;
  3381. Offset : Integer := 0
  3382. ) with
  3383. Import => True,
  3384. Convention => C,
  3385. External_Name => "UpdateMeshBuffer";
  3386. procedure Unload_Mesh (
  3387. Data : Mesh := No_Mesh
  3388. ) with
  3389. Import => True,
  3390. Convention => C,
  3391. External_Name => "UnloadMesh";
  3392. procedure Draw_Mesh (
  3393. Data : Mesh := No_Mesh;
  3394. Pixels : Material := No_Material;
  3395. Transform : Matrix_4D := (others => 0.0)
  3396. ) with
  3397. Import => True,
  3398. Convention => C,
  3399. External_Name => "DrawMesh";
  3400. procedure Draw_Mesh_Instanced (
  3401. Data : Mesh := No_Mesh;
  3402. Use_Material : Material := No_Material;
  3403. Transforms : access Matrix_4D := null;
  3404. Instances : Integer := 0
  3405. ) with
  3406. Import => True,
  3407. Convention => C,
  3408. External_Name => "DrawMeshInstanced";
  3409. function Get_Mesh_Bounding_Box (
  3410. Data : Mesh := No_Mesh
  3411. ) return Bounding_Box with
  3412. Import => True,
  3413. Convention => C,
  3414. External_Name => "GetMeshBoundingBox";
  3415. procedure Gen_Mesh_Tangents (
  3416. Data : access Mesh := null
  3417. ) with
  3418. Import => True,
  3419. Convention => C,
  3420. External_Name => "GenMeshTangents";
  3421. function Export_Mesh (
  3422. Data : Mesh := No_Mesh;
  3423. File_Name : String := ""
  3424. ) return Logical with
  3425. Import => True,
  3426. Convention => C,
  3427. External_Name => "ExportMesh";
  3428. function Export_Mesh_As_Code (
  3429. Data : Mesh := No_Mesh;
  3430. File_Name : String := ""
  3431. ) return Logical with
  3432. Import => True,
  3433. Convention => C,
  3434. External_Name => "ExportMeshAsCode";
  3435. function Gen_Mesh_Poly (
  3436. Sides : Integer := 0;
  3437. Radius : Float := 0.0
  3438. ) return Mesh with
  3439. Import => True,
  3440. Convention => C,
  3441. External_Name => "GenMeshPoly";
  3442. function Gen_Mesh_Plane (
  3443. Width : Float := 1.0;
  3444. Height : Float := 1.0;
  3445. X : Integer := 1;
  3446. Z : Integer := 1
  3447. ) return Mesh with
  3448. Import => True,
  3449. Convention => C,
  3450. External_Name => "GenMeshPlane";
  3451. function Gen_Mesh_Cube (
  3452. Width : Float := 0.0;
  3453. Height : Float := 0.0;
  3454. Length : Float := 0.0
  3455. ) return Mesh with
  3456. Import => True,
  3457. Convention => C,
  3458. External_Name => "GenMeshCube";
  3459. function Gen_Mesh_Sphere (
  3460. Radius : Float := 0.0;
  3461. Rings : Integer := 0;
  3462. Slices : Integer := 0
  3463. ) return Mesh with
  3464. Import => True,
  3465. Convention => C,
  3466. External_Name => "GenMeshSphere";
  3467. function Gen_Mesh_Hemisphere (
  3468. Radius : Float := 0.0;
  3469. Rings : Integer := 0;
  3470. Slices : Integer := 0
  3471. ) return Mesh with
  3472. Import => True,
  3473. Convention => C,
  3474. External_Name => "GenMeshHemiSphere";
  3475. function Gen_Mesh_Cylinder (
  3476. Radius : Float := 0.0;
  3477. Height : Float := 0.0;
  3478. Slices : Integer := 0
  3479. ) return Mesh with
  3480. Import => True,
  3481. Convention => C,
  3482. External_Name => "GenMeshCylinder";
  3483. function Gen_Mesh_Cone (
  3484. Radius : Float := 0.0;
  3485. Height : Float := 0.0;
  3486. Slices : Integer := 0
  3487. ) return Mesh with
  3488. Import => True,
  3489. Convention => C,
  3490. External_Name => "GenMeshCone";
  3491. function Gen_Mesh_Torus (
  3492. Radius : Float := 0.0;
  3493. Size : Float := 0.0;
  3494. Segments : Integer := 0;
  3495. Sides : Integer := 0
  3496. ) return Mesh with
  3497. Import => True,
  3498. Convention => C,
  3499. External_Name => "GenMeshTorus";
  3500. function Gen_Mesh_Knot (
  3501. Radius : Float := 0.0;
  3502. Size : Float := 0.0;
  3503. Segments : Integer := 0;
  3504. Sides : Integer := 0
  3505. ) return Mesh with
  3506. Import => True,
  3507. Convention => C,
  3508. External_Name => "GenMeshKnot";
  3509. function Gen_Mesh_Height_Map (
  3510. Height_Map : Image := No_Image;
  3511. Size : Vector_3D := (others => 0.0)
  3512. ) return Mesh with
  3513. Import => True,
  3514. Convention => C,
  3515. External_Name => "GenMeshHeightmap";
  3516. function Gen_Mesh_Cubic_Map (
  3517. Cubic_Map : Image := No_Image;
  3518. Size : Vector_3D := (others => 0.0)
  3519. ) return Mesh with
  3520. Import => True,
  3521. Convention => C,
  3522. External_Name => "GenMeshCubicmap";
  3523. function Load_Materials (
  3524. File_Name : String := "";
  3525. Counts : access Integer := null
  3526. ) return access Material with
  3527. Import => True,
  3528. Convention => C,
  3529. External_Name => "LoadMaterials";
  3530. function Load_Material_Default return Material with
  3531. Import => True,
  3532. Convention => C,
  3533. External_Name => "LoadMaterialDefault";
  3534. function Is_Material_Ready (
  3535. Data : Material := No_Material
  3536. ) return Logical with
  3537. Import => True,
  3538. Convention => C,
  3539. External_Name => "IsMaterialReady";
  3540. procedure Unload_Material (
  3541. Data : Material := No_Material
  3542. ) with
  3543. Import => True,
  3544. Convention => C,
  3545. External_Name => "UnloadMaterial";
  3546. procedure Set_Material_Texture (
  3547. Data : access Material := null;
  3548. Kind : Material_Map_Index := Material_Map_Height;
  3549. This : Texture := No_Texture
  3550. ) with
  3551. Import => True,
  3552. Convention => C,
  3553. External_Name => "SetMaterialTexture";
  3554. procedure Set_Model_Mesh_Material (
  3555. Data : access Model := null;
  3556. Mesh_Id : Integer := 0;
  3557. Material_Id : Integer := 0
  3558. ) with
  3559. Import => True,
  3560. Convention => C,
  3561. External_Name => "SetModelMeshMaterial";
  3562. function Load_Model_Animations (
  3563. File_Name : String := "";
  3564. Counts : access Integer := null
  3565. ) return access Model_Animation with
  3566. Import => True,
  3567. Convention => C,
  3568. External_Name => "LoadModelAnimations";
  3569. procedure Update_Model_Animation (
  3570. Data : Model := No_Model;
  3571. Animation : Model_Animation := No_Model_Animation;
  3572. Frame : Integer := 0
  3573. ) with
  3574. Import => True,
  3575. Convention => C,
  3576. External_Name => "UpdateModelAnimation";
  3577. procedure Unload_Model_Animation (
  3578. Animation : Model_Animation := No_Model_Animation
  3579. ) with
  3580. Import => True,
  3581. Convention => C,
  3582. External_Name => "UnloadModelAnimation";
  3583. procedure Unload_Model_Animations (
  3584. Animations : access Model_Animation := null;
  3585. Animation_Count : Natural := 0
  3586. ) with
  3587. Import => True,
  3588. Convention => C,
  3589. External_Name => "UnloadModelAnimations";
  3590. function Is_Model_Animation_Valid (
  3591. Data : Model := No_Model;
  3592. Animation : Model_Animation := No_Model_Animation
  3593. ) return Logical with
  3594. Import => True,
  3595. Convention => C,
  3596. External_Name => "IsModelAnimationValid";
  3597. function Check_Collision_Spheres (
  3598. Center_1 : Vector_3D := (others => 0.0);
  3599. Radius_1 : Float := 0.0;
  3600. Center_2 : Vector_3D := (others => 0.0);
  3601. Radius_2 : Float := 0.0
  3602. ) return Logical with
  3603. Import => True,
  3604. Convention => C,
  3605. External_Name => "CheckCollisionSpheres";
  3606. function Check_Collision_Boxes (
  3607. Box_1 : Bounding_Box := No_Bounding_Box;
  3608. Box_2 : Bounding_Box := No_Bounding_Box
  3609. ) return Logical with
  3610. Import => True,
  3611. Convention => C,
  3612. External_Name => "CheckCollisionBoxes";
  3613. function Check_Collision_Box_Sphere (
  3614. Box : Bounding_Box := No_Bounding_Box;
  3615. Center : Vector_3D := (others => 0.0);
  3616. Radius : Float := 0.0
  3617. ) return Logical with
  3618. Import => True,
  3619. Convention => C,
  3620. External_Name => "CheckCollisionBoxSphere";
  3621. function Get_Ray_Collision_Sphere (
  3622. Hit : Ray := No_Ray;
  3623. Center : Vector_3D := (others => 0.0);
  3624. Radius : Float := 0.0
  3625. ) return Ray_Collision with
  3626. Import => True,
  3627. Convention => C,
  3628. External_Name => "GetRayCollisionSphere";
  3629. function Get_Ray_Collision_Box (
  3630. Hit : Ray := No_Ray;
  3631. Box : Bounding_Box := No_Bounding_Box
  3632. ) return Ray_Collision with
  3633. Import => True,
  3634. Convention => C,
  3635. External_Name => "GetRayCollisionBox";
  3636. function Get_Ray_Collision_Mesh (
  3637. Hit : Ray := No_Ray;
  3638. Data : Mesh := No_Mesh;
  3639. Transform : Matrix_4D := Id_Matrix
  3640. ) return Ray_Collision with
  3641. Import => True,
  3642. Convention => C,
  3643. External_Name => "GetRayCollisionMesh";
  3644. function Get_Ray_Collision_Triangle (
  3645. Hit : Ray := No_Ray;
  3646. Point_1 : Vector_3D := (others => 0.0);
  3647. Point_2 : Vector_3D := (others => 0.0);
  3648. Point_3 : Vector_3D := (others => 0.0)
  3649. ) return Ray_Collision with
  3650. Import => True,
  3651. Convention => C,
  3652. External_Name => "GetRayCollisionTriangle";
  3653. function Get_Ray_Collision_Quad (
  3654. Hit : Ray := No_Ray;
  3655. Point_1 : Vector_3D := (others => 0.0);
  3656. Point_2 : Vector_3D := (others => 0.0);
  3657. Point_3 : Vector_3D := (others => 0.0);
  3658. Point_4 : Vector_3D := (others => 0.0)
  3659. ) return Ray_Collision with
  3660. Import => True,
  3661. Convention => C,
  3662. External_Name => "GetRayCollisionQuad";
  3663. procedure Open_Audio_Device with
  3664. Import => True,
  3665. Convention => C,
  3666. External_Name => "InitAudioDevice";
  3667. procedure Close_Audio_Device with
  3668. Import => True,
  3669. Convention => C,
  3670. External_Name => "CloseAudioDevice";
  3671. function Is_Audio_Device_Ready return Logical with
  3672. Import => True,
  3673. Convention => C,
  3674. External_Name => "IsAudioDeviceReady";
  3675. procedure Set_Master_Volume (
  3676. Volume : Float := 1.0
  3677. ) with
  3678. Import => True,
  3679. Convention => C,
  3680. External_Name => "SetMasterVolume";
  3681. function Get_Master_Volume return Float with
  3682. Import => True,
  3683. Convention => C,
  3684. External_Name => "GetMasterVolume";
  3685. function Load_Wave (
  3686. File_Name : String := ""
  3687. ) return Wave with
  3688. Import => True,
  3689. Convention => C,
  3690. External_Name => "LoadWave";
  3691. function Load_Wave_From_Memory (
  3692. File_Type : String := "";
  3693. File_Data : Pointer := null;
  3694. Data_Size : Natural := 0
  3695. ) return Wave with
  3696. Import => True,
  3697. Convention => C,
  3698. External_Name => "LoadWaveFromMemory";
  3699. function Is_Wave_Ready (
  3700. Data : Wave := No_Wave
  3701. ) return Logical with
  3702. Import => True,
  3703. Convention => C,
  3704. External_Name => "IsWaveReady";
  3705. function Load_Sound (
  3706. File_Name : String := ""
  3707. ) return Sound with
  3708. Import => True,
  3709. Convention => C,
  3710. External_Name => "LoadSound";
  3711. function Load_Sound_From_Wave (
  3712. Data : Wave := No_Wave
  3713. ) return Sound with
  3714. Import => True,
  3715. Convention => C,
  3716. External_Name => "LoadSoundFromWave";
  3717. function Load_Sound_Alias (
  3718. Source : Sound := No_Sound
  3719. ) return Sound with
  3720. Import => True,
  3721. Convention => C,
  3722. External_Name => "LoadSoundAlias";
  3723. function Is_Sound_Ready (
  3724. Source : Sound := No_Sound
  3725. ) return Logical with
  3726. Import => True,
  3727. Convention => C,
  3728. External_Name => "IsSoundReady";
  3729. procedure Update_Sound (
  3730. Source : Sound := No_Sound;
  3731. Data : Pointer := null;
  3732. Sample_Count : Integer := 0
  3733. ) with
  3734. Import => True,
  3735. Convention => C,
  3736. External_Name => "UpdateSound";
  3737. procedure Unload_Wave (
  3738. Data : Wave := No_Wave
  3739. ) with
  3740. Import => True,
  3741. Convention => C,
  3742. External_Name => "UnloadWave";
  3743. procedure Unload_Sound (
  3744. Data : Sound := No_Sound
  3745. ) with
  3746. Import => True,
  3747. Convention => C,
  3748. External_Name => "UnloadSound";
  3749. procedure Unload_Sound_Alias (
  3750. Alias : Sound := No_Sound
  3751. ) with
  3752. Import => True,
  3753. Convention => C,
  3754. External_Name => "UnloadSoundAlias";
  3755. function Export_Wave (
  3756. Data : Wave := No_Wave;
  3757. File_Name : String := ""
  3758. ) return Logical with
  3759. Import => True,
  3760. Convention => C,
  3761. External_Name => "ExportWave";
  3762. function Export_Wave_As_Code (
  3763. Data : Wave := No_Wave;
  3764. File_Name : String := ""
  3765. ) return Logical with
  3766. Import => True,
  3767. Convention => C,
  3768. External_Name => "ExportWaveAsCode";
  3769. procedure Play_Sound (
  3770. Data : Sound := No_Sound
  3771. ) with
  3772. Import => True,
  3773. Convention => C,
  3774. External_Name => "PlaySound";
  3775. procedure Stop_Sound (
  3776. Data : Sound := No_Sound
  3777. ) with
  3778. Import => True,
  3779. Convention => C,
  3780. External_Name => "StopSound";
  3781. procedure Pause_Sound (
  3782. Data : Sound := No_Sound
  3783. ) with
  3784. Import => True,
  3785. Convention => C,
  3786. External_Name => "PauseSound";
  3787. procedure Resume_Sound (
  3788. Data : Sound := No_Sound
  3789. ) with
  3790. Import => True,
  3791. Convention => C,
  3792. External_Name => "ResumeSound";
  3793. function Is_Sound_Playing (
  3794. Data : Sound := No_Sound
  3795. ) return Logical with
  3796. Import => True,
  3797. Convention => C,
  3798. External_Name => "IsSoundPlaying";
  3799. procedure Set_Sound_Volume (
  3800. Data : Sound := No_Sound;
  3801. Volume : Float := 0.0
  3802. ) with
  3803. Import => True,
  3804. Convention => C,
  3805. External_Name => "SetSoundVolume";
  3806. procedure Set_Sound_Pitch (
  3807. Data : Sound := No_Sound;
  3808. Pitch : Float := 0.0
  3809. ) with
  3810. Import => True,
  3811. Convention => C,
  3812. External_Name => "SetSoundPitch";
  3813. procedure Set_Sound_Pan (
  3814. Data : Sound := No_Sound;
  3815. Pan : Float := 0.0
  3816. ) with
  3817. Import => True,
  3818. Convention => C,
  3819. External_Name => "SetSoundPan";
  3820. function Wave_Copy (
  3821. Data : Wave := No_Wave
  3822. ) return Wave with
  3823. Import => True,
  3824. Convention => C,
  3825. External_Name => "WaveCopy";
  3826. procedure Wave_Crop (
  3827. Data : access Wave := null;
  3828. First_Sample : Integer := 0;
  3829. Final_Sample : Integer := 0
  3830. ) with
  3831. Import => True,
  3832. Convention => C,
  3833. External_Name => "WaveCrop";
  3834. procedure Wave_Format (
  3835. Data : access Wave := null;
  3836. Sample_Rate : Integer := 0;
  3837. Sample_Size : Integer := 0;
  3838. Channels : Integer := 0
  3839. ) with
  3840. Import => True,
  3841. Convention => C,
  3842. External_Name => "WaveFormat";
  3843. function Load_Wave_Samples (
  3844. Data : Wave := No_Wave
  3845. ) return access Float with
  3846. Import => True,
  3847. Convention => C,
  3848. External_Name => "LoadWaveSamples";
  3849. procedure Unload_Wave_Samples (
  3850. Samples : access Float := null
  3851. ) with
  3852. Import => True,
  3853. Convention => C,
  3854. External_Name => "UnloadWaveSamples";
  3855. function Load_Music_Stream (
  3856. File_Name : String := ""
  3857. ) return Music with
  3858. Import => True,
  3859. Convention => C,
  3860. External_Name => "LoadMusicStream";
  3861. function Load_Music_Stream_From_Memory (
  3862. File_Type : String := "";
  3863. Data : Pointer := null;
  3864. Data_Size : Integer := 0
  3865. ) return Music with
  3866. Import => True,
  3867. Convention => C,
  3868. External_Name => "LoadMusicStreamFromMemory";
  3869. function Is_Music_Ready (
  3870. Data : Music := No_Music
  3871. ) return Logical with
  3872. Import => True,
  3873. Convention => C,
  3874. External_Name => "IsMusicReady";
  3875. procedure Unload_Music_Stream (
  3876. Data : Music := No_Music
  3877. ) with
  3878. Import => True,
  3879. Convention => C,
  3880. External_Name => "UnloadMusicStream";
  3881. procedure Play_Music_Stream (
  3882. Data : Music := No_Music
  3883. ) with
  3884. Import => True,
  3885. Convention => C,
  3886. External_Name => "PlayMusicStream";
  3887. function Is_Music_Stream_Playing (
  3888. Data : Music := No_Music
  3889. ) return Logical with
  3890. Import => True,
  3891. Convention => C,
  3892. External_Name => "IsMusicStreamPlaying";
  3893. procedure Update_Music_Stream (
  3894. Data : Music := No_Music
  3895. ) with
  3896. Import => True,
  3897. Convention => C,
  3898. External_Name => "UpdateMusicStream";
  3899. procedure Stop_Music_Stream (
  3900. Data : Music := No_Music
  3901. ) with
  3902. Import => True,
  3903. Convention => C,
  3904. External_Name => "StopMusicStream";
  3905. procedure Pause_Music_Stream (
  3906. Data : Music := No_Music
  3907. ) with
  3908. Import => True,
  3909. Convention => C,
  3910. External_Name => "PauseMusicStream";
  3911. procedure Resume_Music_Stream (
  3912. Data : Music := No_Music
  3913. ) with
  3914. Import => True,
  3915. Convention => C,
  3916. External_Name => "ResumeMusicStream";
  3917. procedure Seek_Music_Stream (
  3918. Data : Music := No_Music;
  3919. Position : Float := 0.0
  3920. ) with
  3921. Import => True,
  3922. Convention => C,
  3923. External_Name => "SeekMusicStream";
  3924. procedure Set_Music_Volume (
  3925. Data : Music := No_Music;
  3926. Volume : Float := 0.0
  3927. ) with
  3928. Import => True,
  3929. Convention => C,
  3930. External_Name => "SetMusicVolume";
  3931. procedure Set_Music_Pitch (
  3932. Data : Music := No_Music;
  3933. Pitch : Float := 0.0
  3934. ) with
  3935. Import => True,
  3936. Convention => C,
  3937. External_Name => "SetMusicPitch";
  3938. procedure Set_Music_Pan (
  3939. Data : Music := No_Music;
  3940. Pan : Float := 0.0
  3941. ) with
  3942. Import => True,
  3943. Convention => C,
  3944. External_Name => "SetMusicPan";
  3945. function Get_Music_Time_Length (
  3946. Data : Music := No_Music
  3947. ) return Float with
  3948. Import => True,
  3949. Convention => C,
  3950. External_Name => "GetMusicTimeLength";
  3951. function Get_Music_Time_Played (
  3952. Data : Music := No_Music
  3953. ) return Float with
  3954. Import => True,
  3955. Convention => C,
  3956. External_Name => "GetMusicTimePlayed";
  3957. function Load_Audio_Stream (
  3958. Sample_Rate : Natural := 0;
  3959. Sample_Size : Natural := 0;
  3960. Channels : Natural := 0
  3961. ) return Audio_Stream with
  3962. Import => True,
  3963. Convention => C,
  3964. External_Name => "LoadAudioStream";
  3965. function Is_Audio_Stream_Ready (
  3966. Data : Audio_Stream := No_Audio_Stream
  3967. ) return Logical with
  3968. Import => True,
  3969. Convention => C,
  3970. External_Name => "IsAudioStreamReady";
  3971. procedure Unload_Audio_Stream (
  3972. Data : Audio_Stream := No_Audio_Stream
  3973. ) with
  3974. Import => True,
  3975. Convention => C,
  3976. External_Name => "UnloadAudioStream";
  3977. procedure Update_Audio_Stream (
  3978. Data : Audio_Stream := No_Audio_Stream;
  3979. Raw_Data : Pointer := null;
  3980. Frame_Count : Integer := 0
  3981. ) with
  3982. Import => True,
  3983. Convention => C,
  3984. External_Name => "UpdateAudioStream";
  3985. function Is_Audio_Stream_Processed (
  3986. Data : Audio_Stream := No_Audio_Stream
  3987. ) return Logical with
  3988. Import => True,
  3989. Convention => C,
  3990. External_Name => "IsAudioStreamProcessed";
  3991. procedure Play_Audio_Stream (
  3992. Data : Audio_Stream := No_Audio_Stream
  3993. ) with
  3994. Import => True,
  3995. Convention => C,
  3996. External_Name => "PlayAudioStream";
  3997. procedure Pause_Audio_Stream (
  3998. Data : Audio_Stream := No_Audio_Stream
  3999. ) with
  4000. Import => True,
  4001. Convention => C,
  4002. External_Name => "PauseAudioStream";
  4003. procedure Resume_Audio_Stream (
  4004. Data : Audio_Stream := No_Audio_Stream
  4005. ) with
  4006. Import => True,
  4007. Convention => C,
  4008. External_Name => "ResumeAudioStream";
  4009. function Is_Audio_Stream_Playing (
  4010. Data : Audio_Stream := No_Audio_Stream
  4011. ) return Logical with
  4012. Import => True,
  4013. Convention => C,
  4014. External_Name => "IsAudioStreamPlaying";
  4015. procedure Stop_Audio_Stream (
  4016. Data : Audio_Stream := No_Audio_Stream
  4017. ) with
  4018. Import => True,
  4019. Convention => C,
  4020. External_Name => "StopAudioStream";
  4021. procedure Set_Audio_Stream_Volume (
  4022. Data : Audio_Stream := No_Audio_Stream;
  4023. Volume : Float := 0.0
  4024. ) with
  4025. Import => True,
  4026. Convention => C,
  4027. External_Name => "SetAudioStreamVolume";
  4028. procedure Set_Audio_Stream_Pitch (
  4029. Data : Audio_Stream := No_Audio_Stream;
  4030. Pitch : Float := 0.0
  4031. ) with
  4032. Import => True,
  4033. Convention => C,
  4034. External_Name => "SetAudioStreamPitch";
  4035. procedure Set_Audio_Stream_Pan (
  4036. Data : Audio_Stream := No_Audio_Stream;
  4037. Pan : Float := 0.0
  4038. ) with
  4039. Import => True,
  4040. Convention => C,
  4041. External_Name => "SetAudioStreamPan";
  4042. procedure Set_Audio_Stream_Buffer_Size_Default (
  4043. Size : Integer := 0
  4044. ) with
  4045. Import => True,
  4046. Convention => C,
  4047. External_Name => "SetAudioStreamBufferSizeDefault";
  4048. procedure Attach_Audio_Stream_Processor (
  4049. Stream : Audio_Stream := No_Audio_Stream;
  4050. Processor : Pointer := null
  4051. ) with
  4052. Import => True,
  4053. Convention => C,
  4054. External_Name => "AttachAudioStreamProcessor";
  4055. procedure Detach_Audio_Stream_Processor (
  4056. Stream : Audio_Stream := No_Audio_Stream;
  4057. Processor : Pointer := null
  4058. ) with
  4059. Import => True,
  4060. Convention => C,
  4061. External_Name => "DetachAudioStreamProcessor";
  4062. procedure Attach_Audio_Mixed_Processor (
  4063. Processor : Pointer := null
  4064. ) with
  4065. Import => True,
  4066. Convention => C,
  4067. External_Name => "AttachAudioMixedProcessor";
  4068. procedure Detach_Audio_Mixed_Processor (
  4069. Processor : Pointer := null
  4070. ) with
  4071. Import => True,
  4072. Convention => C,
  4073. External_Name => "DetachAudioMixedProcessor";
  4074. ------------------------------------------------------------------------
  4075. end Raylib;