Ada bindings for Raylib 5.1 library.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

5118 rindas
144KB

  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 Save_File_Data (
  1432. File_Name : String := "";
  1433. Data : Pointer := null;
  1434. Data_Size : Natural := 0
  1435. ) return Logical with
  1436. Import => True,
  1437. Convention => C,
  1438. External_Name => "SaveFileData";
  1439. function Export_Data_As_Code (
  1440. Data : Pointer := null;
  1441. Data_Size : Natural := 0;
  1442. File_Name : String := ""
  1443. ) return Logical with
  1444. Import => True,
  1445. Convention => C,
  1446. External_Name => "ExportDataAsCode";
  1447. function Load_File_Text (
  1448. File_Name : String := ""
  1449. ) return Strings with
  1450. Import => True,
  1451. Convention => C,
  1452. External_Name => "LoadFileText";
  1453. procedure Unload_File_Text (
  1454. Text : String := ""
  1455. ) with
  1456. Import => True,
  1457. Convention => C,
  1458. External_Name => "UnloadFileText";
  1459. function Save_File_Text (
  1460. File_Name : String := "";
  1461. Text : String := ""
  1462. ) return Logical with
  1463. Import => True,
  1464. Convention => C,
  1465. External_Name => "SaveFileText";
  1466. function File_Exists (
  1467. File_Name : String := ""
  1468. ) return Logical with
  1469. Import => True,
  1470. Convention => C,
  1471. External_Name => "FileExists";
  1472. function Directory_Exists (
  1473. Directory_Path : String := ""
  1474. ) return Logical with
  1475. Import => True,
  1476. Convention => C,
  1477. External_Name => "DirectoryExists";
  1478. function Is_File_Extension (
  1479. File_Name : String := "";
  1480. Extension : String := ""
  1481. ) return Logical with
  1482. Import => True,
  1483. Convention => C,
  1484. External_Name => "IsFileExtension";
  1485. function Get_File_Length (
  1486. File_Name : String := ""
  1487. ) return Integer with
  1488. Import => True,
  1489. Convention => C,
  1490. External_Name => "GetFileLength";
  1491. function Get_File_Extension (
  1492. File_Name : String := ""
  1493. ) return Strings with
  1494. Import => True,
  1495. Convention => C,
  1496. External_Name => "GetFileExtension";
  1497. function Get_File_Name (
  1498. File_Path : String := ""
  1499. ) return Strings with
  1500. Import => True,
  1501. Convention => C,
  1502. External_Name => "GetFileName";
  1503. function Get_File_Name_Without_Ext (
  1504. File_Path : String := ""
  1505. ) return Strings with
  1506. Import => True,
  1507. Convention => C,
  1508. External_Name => "GetFileNameWithoutExt";
  1509. function Get_Directory_Path (
  1510. File_Path : String := ""
  1511. ) return Strings with
  1512. Import => True,
  1513. Convention => C,
  1514. External_Name => "GetDirectoryPath";
  1515. function Get_Prev_Directory_Path (
  1516. Directory_Path : String := ""
  1517. ) return Strings with
  1518. Import => True,
  1519. Convention => C,
  1520. External_Name => "GetPrevDirectoryPath";
  1521. function Get_Working_Directory return Strings with
  1522. Import => True,
  1523. Convention => C,
  1524. External_Name => "GetWorkingDirectory";
  1525. function Get_Application_Directory return Strings with
  1526. Import => True,
  1527. Convention => C,
  1528. External_Name => "GetApplicationDirectory";
  1529. function Change_Directory (
  1530. Directory_Path : String := ""
  1531. ) return Logical with
  1532. Import => True,
  1533. Convention => C,
  1534. External_Name => "ChangeDirectory";
  1535. function Is_Path_File (
  1536. Path : String := ""
  1537. ) return Logical with
  1538. Import => True,
  1539. Convention => C,
  1540. External_Name => "IsPathFile";
  1541. function Load_Directory_Files (
  1542. Directory_Path : String := ""
  1543. ) return File_Path_List with
  1544. Import => True,
  1545. Convention => C,
  1546. External_Name => "LoadDirectoryFiles";
  1547. function Load_Directory_Files_Ex (
  1548. Base_Path : String := "";
  1549. Filter : String := "";
  1550. Scan_Subdirectories : Logical := False
  1551. ) return File_Path_List with
  1552. Import => True,
  1553. Convention => C,
  1554. External_Name => "LoadDirectoryFilesEx";
  1555. procedure Unload_Directory_Files (
  1556. Files : File_Path_List := No_File_Path_List
  1557. ) with
  1558. Import => True,
  1559. Convention => C,
  1560. External_Name => "UnloadDirectoryFiles";
  1561. function Is_File_Dropped return Logical with
  1562. Import => True,
  1563. Convention => C,
  1564. External_Name => "IsFileDropped";
  1565. function Load_Dropped_Files return File_Path_List with
  1566. Import => True,
  1567. Convention => C,
  1568. External_Name => "LoadDroppedFiles";
  1569. procedure Unload_Dropped_Files (
  1570. Files : File_Path_List := No_File_Path_List
  1571. ) with
  1572. Import => True,
  1573. Convention => C,
  1574. External_Name => "UnloadDroppedFiles";
  1575. function Get_File_Mod_Time (
  1576. File_Name : String := ""
  1577. ) return Natural with
  1578. Import => True,
  1579. Convention => C,
  1580. External_Name => "GetFileModTime";
  1581. function Compress_Data (
  1582. Data : Pointer := null;
  1583. Data_Size : Natural := 0;
  1584. Compressed_Data_Size : access Integer := null
  1585. ) return Pointer with
  1586. Import => True,
  1587. Convention => C,
  1588. External_Name => "CompressData";
  1589. function Decompress_Data (
  1590. Compressed_Data : Pointer := null;
  1591. Compressed_Data_Size : Natural := 0;
  1592. Data_Size : Natural := 0
  1593. ) return Pointer with
  1594. Import => True,
  1595. Convention => C,
  1596. External_Name => "DecompressData";
  1597. function Encode_Data_Base_64 (
  1598. Data : Pointer := null;
  1599. Data_Size : Natural := 0;
  1600. Output_Size : access Integer := null
  1601. ) return Pointer with
  1602. Import => True,
  1603. Convention => C,
  1604. External_Name => "EncodeDataBase64";
  1605. function Decode_Data_Base_64 (
  1606. Data : Pointer := null;
  1607. Output_Size : access Integer := null
  1608. ) return Pointer with
  1609. Import => True,
  1610. Convention => C,
  1611. External_Name => "DecodeDataBase64";
  1612. function Load_Automation_Event_List (
  1613. File_Name : String := ""
  1614. ) return Automation_Event_List with
  1615. Import => True,
  1616. Convention => C,
  1617. External_Name => "LoadAutomationEventList";
  1618. procedure Unload_Automation_Event_List (
  1619. Data : access Automation_Event_List := null
  1620. ) with
  1621. Import => True,
  1622. Convention => C,
  1623. External_Name => "UnloadAutomationEventList";
  1624. function Export_Automation_Event_List (
  1625. Data : Automation_Event_List := No_Automation_Event_List;
  1626. File_Name : String := ""
  1627. ) return Logical with
  1628. Import => True,
  1629. Convention => C,
  1630. External_Name => "ExportAutomationEventList";
  1631. procedure Set_Automation_Event_List (
  1632. Data : access Automation_Event_List := null
  1633. ) with
  1634. Import => True,
  1635. Convention => C,
  1636. External_Name => "SetAutomationEventList";
  1637. procedure Set_Automation_Event_Base_Frame (
  1638. Frame : Integer := 0
  1639. ) with
  1640. Import => True,
  1641. Convention => C,
  1642. External_Name => "SetAutomationEventBaseFrame";
  1643. procedure Start_Automation_Event_Recording with
  1644. Import => True,
  1645. Convention => C,
  1646. External_Name => "StartAutomationEventRecording";
  1647. procedure Stop_Automation_Event_Recording with
  1648. Import => True,
  1649. Convention => C,
  1650. External_Name => "StopAutomationEventRecording";
  1651. procedure Play_Automation_Event (
  1652. Event : Automation_Event := No_Automation_Event
  1653. ) with
  1654. Import => True,
  1655. Convention => C,
  1656. External_Name => "PlayAutomationEvent";
  1657. function Is_Key_Pressed (
  1658. Key : Keyboard_Key := Key_Null
  1659. ) return Logical with
  1660. Import => True,
  1661. Convention => C,
  1662. External_Name => "IsKeyPressed";
  1663. function Is_Key_Pressed_Repeat (
  1664. Key : Keyboard_Key := Key_Null
  1665. ) return Logical with
  1666. Import => True,
  1667. Convention => C,
  1668. External_Name => "IsKeyPressedRepeat";
  1669. function Is_Key_Down (
  1670. Key : Keyboard_Key := Key_Null
  1671. ) return Logical with
  1672. Import => True,
  1673. Convention => C,
  1674. External_Name => "IsKeyDown";
  1675. function Is_Key_Released (
  1676. Key : Keyboard_Key := Key_Null
  1677. ) return Logical with
  1678. Import => True,
  1679. Convention => C,
  1680. External_Name => "IsKeyReleased";
  1681. function Is_Key_Up (
  1682. Key : Keyboard_Key := Key_Null
  1683. ) return Logical with
  1684. Import => True,
  1685. Convention => C,
  1686. External_Name => "IsKeyUp";
  1687. function Get_Key_Pressed return Keyboard_Key with
  1688. Import => True,
  1689. Convention => C,
  1690. External_Name => "GetKeyPressed";
  1691. function Get_Character_Pressed return Character with
  1692. Import => True,
  1693. Convention => C,
  1694. External_Name => "GetCharPressed";
  1695. procedure Set_Exit_Key (
  1696. Key : Keyboard_Key := Key_Escape
  1697. ) with
  1698. Import => True,
  1699. Convention => C,
  1700. External_Name => "SetExitKey";
  1701. function Is_Gamepad_Available (
  1702. Gamepad : Integer := 0
  1703. ) return Logical with
  1704. Import => True,
  1705. Convention => C,
  1706. External_Name => "IsGamepadAvailable";
  1707. function Get_Gamepad_Name (
  1708. Gamepad : Integer := 0
  1709. ) return Strings with
  1710. Import => True,
  1711. Convention => C,
  1712. External_Name => "GetGamepadName";
  1713. function Is_Gamepad_Button_Pressed (
  1714. Gamepad : Integer := 0;
  1715. Button : Gamepad_Button := Gamepad_Button_Left_Thumb
  1716. ) return Logical with
  1717. Import => True,
  1718. Convention => C,
  1719. External_Name => "IsGamepadButtonPressed";
  1720. function Is_Gamepad_Button_Down (
  1721. Gamepad : Integer := 0;
  1722. Button : Gamepad_Button := Gamepad_Button_Left_Thumb
  1723. ) return Logical with
  1724. Import => True,
  1725. Convention => C,
  1726. External_Name => "IsGamepadButtonDown";
  1727. function Is_Gamepad_Button_Released (
  1728. Gamepad : Integer := 0;
  1729. Button : Gamepad_Button := Gamepad_Button_Left_Thumb
  1730. ) return Logical with
  1731. Import => True,
  1732. Convention => C,
  1733. External_Name => "IsGamepadButtonReleased";
  1734. function Is_Gamepad_Button_Up (
  1735. Gamepad : Integer := 0;
  1736. Button : Gamepad_Button := Gamepad_Button_Left_Thumb
  1737. ) return Logical with
  1738. Import => True,
  1739. Convention => C,
  1740. External_Name => "IsGamepadButtonUp";
  1741. function Get_Gamepad_Button_Pressed return Integer with
  1742. Import => True,
  1743. Convention => C,
  1744. External_Name => "GetGamepadButtonPressed";
  1745. function Get_Gamepad_Axis_Count (
  1746. Gamepad : Integer := 0
  1747. ) return Integer with
  1748. Import => True,
  1749. Convention => C,
  1750. External_Name => "GetGamepadAxisCount";
  1751. function Get_Gamepad_Axis_Movement (
  1752. Gamepad : Integer := 0;
  1753. Axis : Gamepad_Axis := Gamepad_Axis_Left_Trigger
  1754. ) return Float with
  1755. Import => True,
  1756. Convention => C,
  1757. External_Name => "GetGamepadAxisMovement";
  1758. function Set_Gamepad_Mappings (
  1759. Mappings : String := ""
  1760. ) return Integer with
  1761. Import => True,
  1762. Convention => C,
  1763. External_Name => "SetGamepadMappings";
  1764. function Is_Mouse_Button_Pressed (
  1765. Button : Mouse_Button := Mouse_Button_Left
  1766. ) return Logical with
  1767. Import => True,
  1768. Convention => C,
  1769. External_Name => "IsMouseButtonPressed";
  1770. function Is_Mouse_Button_Down (
  1771. Button : Mouse_Button := Mouse_Button_Left
  1772. ) return Logical with
  1773. Import => True,
  1774. Convention => C,
  1775. External_Name => "IsMouseButtonDown";
  1776. function Is_Mouse_Button_Released (
  1777. Button : Mouse_Button := Mouse_Button_Left
  1778. ) return Logical with
  1779. Import => True,
  1780. Convention => C,
  1781. External_Name => "IsMouseButtonReleased";
  1782. function Is_Mouse_Button_Up (
  1783. Button : Mouse_Button := Mouse_Button_Left
  1784. ) return Logical with
  1785. Import => True,
  1786. Convention => C,
  1787. External_Name => "IsMouseButtonUp";
  1788. function Get_Mouse_X return Integer with
  1789. Import => True,
  1790. Convention => C,
  1791. External_Name => "GetMouseX";
  1792. function Get_Mouse_Y return Integer with
  1793. Import => True,
  1794. Convention => C,
  1795. External_Name => "GetMouseY";
  1796. function Get_Mouse_Position return Vector_2D with
  1797. Import => True,
  1798. Convention => C,
  1799. External_Name => "GetMousePosition";
  1800. function Get_Mouse_Delta return Vector_2D with
  1801. Import => True,
  1802. Convention => C,
  1803. External_Name => "GetMouseDelta";
  1804. procedure Set_Mouse_Position (
  1805. X : Integer := 0;
  1806. Y : Integer := 0
  1807. ) with
  1808. Import => True,
  1809. Convention => C,
  1810. External_Name => "SetMousePosition";
  1811. procedure Set_Mouse_Offset (
  1812. X : Integer := 0;
  1813. Y : Integer := 0
  1814. ) with
  1815. Import => True,
  1816. Convention => C,
  1817. External_Name => "SetMouseOffset";
  1818. procedure Set_Mouse_Scale (
  1819. X : Float := 0.0;
  1820. Y : Float := 0.0
  1821. ) with
  1822. Import => True,
  1823. Convention => C,
  1824. External_Name => "SetMouseScale";
  1825. function Get_Mouse_Wheel_Move return Float with
  1826. Import => True,
  1827. Convention => C,
  1828. External_Name => "GetMouseWheelMove";
  1829. function Get_Mouse_Wheel_Move_V return Vector_2D with
  1830. Import => True,
  1831. Convention => C,
  1832. External_Name => "GetMouseWheelMoveV";
  1833. procedure Set_Mouse_Cursor (
  1834. Cursor : Mouse_Cursor := Mouse_Cursor_Default
  1835. ) with
  1836. Import => True,
  1837. Convention => C,
  1838. External_Name => "SetMouseCursor";
  1839. function Get_Touch_X return Integer with
  1840. Import => True,
  1841. Convention => C,
  1842. External_Name => "GetTouchX";
  1843. function Get_Touch_Y return Integer with
  1844. Import => True,
  1845. Convention => C,
  1846. External_Name => "GetTouchY";
  1847. function Get_Touch_Position (
  1848. Index : Integer := 0
  1849. ) return Vector_2D with
  1850. Import => True,
  1851. Convention => C,
  1852. External_Name => "GetTouchPosition";
  1853. function Get_Touch_Point_Id (
  1854. Index : Integer := 0
  1855. ) return Integer with
  1856. Import => True,
  1857. Convention => C,
  1858. External_Name => "GetTouchPointId";
  1859. function Get_Touch_Point_Count return Integer with
  1860. Import => True,
  1861. Convention => C,
  1862. External_Name => "GetTouchPointCount";
  1863. procedure Set_Gestures_Enabled (
  1864. Data : Gesture := Gesture_None
  1865. ) with
  1866. Import => True,
  1867. Convention => C,
  1868. External_Name => "SetGesturesEnabled";
  1869. function Is_Gesture_Detected (
  1870. Data : Gesture := Gesture_None
  1871. ) return Logical with
  1872. Import => True,
  1873. Convention => C,
  1874. External_Name => "IsGestureDetected";
  1875. function Get_Gesture_Detected return Integer with
  1876. Import => True,
  1877. Convention => C,
  1878. External_Name => "GetGestureDetected";
  1879. function Get_Gesture_Hold_Duration return Float with
  1880. Import => True,
  1881. Convention => C,
  1882. External_Name => "GetGestureHoldDuration";
  1883. function Get_Gesture_Drag_Vector return Vector_2D with
  1884. Import => True,
  1885. Convention => C,
  1886. External_Name => "GetGestureDragVector";
  1887. function Get_Gesture_Drag_Angle return Float with
  1888. Import => True,
  1889. Convention => C,
  1890. External_Name => "GetGestureDragAngle";
  1891. function Get_Gesture_Pinch_Vector return Vector_2D with
  1892. Import => True,
  1893. Convention => C,
  1894. External_Name => "GetGesturePinchVector";
  1895. function Get_Gesture_Pinch_Angle return Float with
  1896. Import => True,
  1897. Convention => C,
  1898. External_Name => "GetGesturePinchAngle";
  1899. procedure Update_Camera (
  1900. Data : access Camera_3D := null;
  1901. Mode : Camera_Mode := Camera_First_Person
  1902. ) with
  1903. Import => True,
  1904. Convention => C,
  1905. External_Name => "UpdateCamera";
  1906. procedure Update_Camera_Pro (
  1907. Data : access Camera_3D := null;
  1908. Movement : Vector_3D := (others => 0.0);
  1909. Rotation : Vector_3D := (others => 0.0);
  1910. Zoom : Float := 0.0
  1911. ) with
  1912. Import => True,
  1913. Convention => C,
  1914. External_Name => "UpdateCameraPro";
  1915. procedure Set_Shapes_Texture (
  1916. Data : Texture := No_Texture;
  1917. Source : Rectangle := No_Rectangle
  1918. ) with
  1919. Import => True,
  1920. Convention => C,
  1921. External_Name => "SetShapesTexture";
  1922. procedure Draw_Pixel (
  1923. X : Integer := 0;
  1924. Y : Integer := 0;
  1925. Tint : Color := White
  1926. ) with
  1927. Import => True,
  1928. Convention => C,
  1929. External_Name => "DrawPixel";
  1930. procedure Draw_Pixel_V (
  1931. Position : Vector_2D := (others => 0.0);
  1932. Tint : Color := White
  1933. ) with
  1934. Import => True,
  1935. Convention => C,
  1936. External_Name => "DrawPixelV";
  1937. procedure Draw_Line (
  1938. X0 : Integer := 0;
  1939. Y0 : Integer := 0;
  1940. X1 : Integer := 0;
  1941. Y1 : Integer := 0;
  1942. Tint : Color := Black
  1943. ) with
  1944. Import => True,
  1945. Convention => C,
  1946. External_Name => "DrawLine";
  1947. procedure Draw_Line_V (
  1948. From : Vector_2D := (others => 0.0);
  1949. To : Vector_2D := (others => 0.0);
  1950. Tint : Color := Black
  1951. ) with
  1952. Import => True,
  1953. Convention => C,
  1954. External_Name => "DrawLineV";
  1955. procedure Draw_Line_Ex (
  1956. From : Vector_2D := (others => 0.0);
  1957. To : Vector_2D := (others => 0.0);
  1958. Thick : Float := 0.0;
  1959. Tint : Color := Black
  1960. ) with
  1961. Import => True,
  1962. Convention => C,
  1963. External_Name => "DrawLineEx";
  1964. procedure Draw_Line_Strip (
  1965. Points : access Vector_2D := null;
  1966. Point_Count : Natural := 0;
  1967. Tint : Color := Black
  1968. ) with
  1969. Import => True,
  1970. Convention => C,
  1971. External_Name => "DrawLineStrip";
  1972. procedure Draw_Line_Bezier (
  1973. From : Vector_2D := (others => 0.0);
  1974. To : Vector_2D := (others => 0.0);
  1975. Thick : Float := 0.0;
  1976. Tint : Color := Black
  1977. ) with
  1978. Import => True,
  1979. Convention => C,
  1980. External_Name => "DrawLineBezier";
  1981. procedure Draw_Circle (
  1982. X : Integer := 0;
  1983. Y : Integer := 0;
  1984. Radius : Float := 0.0;
  1985. Tint : Color := Black
  1986. ) with
  1987. Import => True,
  1988. Convention => C,
  1989. External_Name => "DrawCircle";
  1990. procedure Draw_Circle_Sector (
  1991. Center : Vector_2D := (others => 0.0);
  1992. Radius : Float := 0.0;
  1993. From : Float := 0.0;
  1994. To : Float := 0.0;
  1995. Segments : Integer := 0;
  1996. Tint : Color := Black
  1997. ) with
  1998. Import => True,
  1999. Convention => C,
  2000. External_Name => "DrawCircleSector";
  2001. procedure Draw_Circle_Sector_Lines (
  2002. Center : Vector_2D := (others => 0.0);
  2003. Radius : Float := 0.0;
  2004. From : Float := 0.0;
  2005. To : Float := 0.0;
  2006. Segments : Integer := 0;
  2007. Tint : Color := Black
  2008. ) with
  2009. Import => True,
  2010. Convention => C,
  2011. External_Name => "DrawCircleSectorLines";
  2012. procedure Draw_Circle_Gradient (
  2013. X : Integer := 0;
  2014. Y : Integer := 0;
  2015. Radius : Float := 0.0;
  2016. Tint_1 : Color := Black;
  2017. Tint_2 : Color := White
  2018. ) with
  2019. Import => True,
  2020. Convention => C,
  2021. External_Name => "DrawCircleGradient";
  2022. procedure Draw_Circle_V (
  2023. Center : Vector_2D := (others => 0.0);
  2024. Radius : Float := 0.0;
  2025. Tint : Color := Black
  2026. ) with
  2027. Import => True,
  2028. Convention => C,
  2029. External_Name => "DrawCircleV";
  2030. procedure Draw_Circle_Lines (
  2031. X : Integer := 0;
  2032. Y : Integer := 0;
  2033. Radius : Float := 0.0;
  2034. Tint : Color := Black
  2035. ) with
  2036. Import => True,
  2037. Convention => C,
  2038. External_Name => "DrawCircleLines";
  2039. procedure Draw_Circle_Lines_V (
  2040. Center : Vector_2D := (others => 0.0);
  2041. Radius : Float := 0.0;
  2042. Tint : Color := Black
  2043. ) with
  2044. Import => True,
  2045. Convention => C,
  2046. External_Name => "DrawCircleLinesV";
  2047. procedure Draw_Ellipse (
  2048. X : Integer := 0;
  2049. Y : Integer := 0;
  2050. Horizontal : Float := 0.0;
  2051. Vertical : Float := 0.0;
  2052. Tint : Color := Black
  2053. ) with
  2054. Import => True,
  2055. Convention => C,
  2056. External_Name => "DrawEllipse";
  2057. procedure Draw_Ellipse_Lines (
  2058. X : Integer := 0;
  2059. Y : Integer := 0;
  2060. Horizontal : Float := 0.0;
  2061. Vertical : Float := 0.0;
  2062. Tint : Color := Black
  2063. ) with
  2064. Import => True,
  2065. Convention => C,
  2066. External_Name => "DrawEllipseLines";
  2067. procedure Draw_Ring (
  2068. Center : Vector_2D := (others => 0.0);
  2069. Inner_Radius : Float := 0.0;
  2070. Outer_Radius : Float := 0.0;
  2071. From : Float := 0.0;
  2072. To : Float := 0.0;
  2073. Segments : Integer := 0;
  2074. Tint : Color := Black
  2075. ) with
  2076. Import => True,
  2077. Convention => C,
  2078. External_Name => "DrawRing";
  2079. procedure Draw_Ring_Lines (
  2080. Center : Vector_2D := (others => 0.0);
  2081. Inner_Radius : Float := 0.0;
  2082. Outer_Radius : Float := 0.0;
  2083. From : Float := 0.0;
  2084. To : Float := 0.0;
  2085. Segments : Integer := 0;
  2086. Tint : Color := Black
  2087. ) with
  2088. Import => True,
  2089. Convention => C,
  2090. External_Name => "DrawRingLines";
  2091. procedure Draw_Rectangle (
  2092. X : Integer := 0;
  2093. Y : Integer := 0;
  2094. Width : Integer := 0;
  2095. Height : Integer := 0;
  2096. Tint : Color := Black
  2097. ) with
  2098. Import => True,
  2099. Convention => C,
  2100. External_Name => "DrawRectangle";
  2101. procedure Draw_Rectangle_V (
  2102. Position : Vector_2D := (others => 0.0);
  2103. Size : Vector_2D := (others => 0.0);
  2104. Tint : Color := Black
  2105. ) with
  2106. Import => True,
  2107. Convention => C,
  2108. External_Name => "DrawRectangleV";
  2109. procedure Draw_Rectangle_Rec (
  2110. Data : Rectangle := No_Rectangle;
  2111. Tint : Color := Black
  2112. ) with
  2113. Import => True,
  2114. Convention => C,
  2115. External_Name => "DrawRectangleRec";
  2116. procedure Draw_Rectangle_Pro (
  2117. Data : Rectangle := No_Rectangle;
  2118. Origin : Vector_2D := (others => 0.0);
  2119. Rotation : Float := 0.0;
  2120. Tint : Color := Black
  2121. ) with
  2122. Import => True,
  2123. Convention => C,
  2124. External_Name => "DrawRectanglePro";
  2125. procedure Draw_Rectangle_Gradient_V (
  2126. X : Integer := 0;
  2127. Y : Integer := 0;
  2128. Width : Integer := 0;
  2129. Height : Integer := 0;
  2130. Color_1 : Color := Black;
  2131. Color_2 : Color := White
  2132. ) with
  2133. Import => True,
  2134. Convention => C,
  2135. External_Name => "DrawRectangleGradientV";
  2136. procedure Draw_Rectangle_Gradient_H (
  2137. X : Integer := 0;
  2138. Y : Integer := 0;
  2139. Width : Integer := 0;
  2140. Height : Integer := 0;
  2141. Color_1 : Color := Black;
  2142. Color_2 : Color := White
  2143. ) with
  2144. Import => True,
  2145. Convention => C,
  2146. External_Name => "DrawRectangleGradientH";
  2147. procedure Draw_Rectangle_Gradient_Ex (
  2148. Data : Rectangle := No_Rectangle;
  2149. Color_1 : Color := Red;
  2150. Color_2 : Color := Green;
  2151. Color_3 : Color := Blue;
  2152. Color_4 : Color := Black
  2153. ) with
  2154. Import => True,
  2155. Convention => C,
  2156. External_Name => "DrawRectangleGradientEx";
  2157. procedure Draw_Rectangle_Lines (
  2158. X : Integer := 0;
  2159. Y : Integer := 0;
  2160. Width : Integer := 0;
  2161. Height : Integer := 0;
  2162. Tint : Color := Black
  2163. ) with
  2164. Import => True,
  2165. Convention => C,
  2166. External_Name => "DrawRectangleLines";
  2167. procedure Draw_Rectangle_Lines_Ex (
  2168. Data : Rectangle := No_Rectangle;
  2169. Thickness : Float := 1.0;
  2170. Tint : Color := Black
  2171. ) with
  2172. Import => True,
  2173. Convention => C,
  2174. External_Name => "DrawRectangleLinesEx";
  2175. procedure Draw_Rectangle_Rounded (
  2176. Data : Rectangle := No_Rectangle;
  2177. Roundness : Float := 1.0;
  2178. Segments : Integer := 1;
  2179. Tint : Color := Black
  2180. ) with
  2181. Import => True,
  2182. Convention => C,
  2183. External_Name => "DrawRectangleRounded";
  2184. procedure Draw_Rectangle_Rounded_Lines (
  2185. Data : Rectangle := No_Rectangle;
  2186. Roundness : Float := 1.0;
  2187. Segments : Integer := 1;
  2188. Thickness : Float := 1.0;
  2189. Tint : Color := Black
  2190. ) with
  2191. Import => True,
  2192. Convention => C,
  2193. External_Name => "DrawRectangleRoundedLines";
  2194. procedure Draw_Triangle (
  2195. Point_1 : Vector_2D := (others => 0.0);
  2196. Point_2 : Vector_2D := (others => 0.0);
  2197. Point_3 : Vector_2D := (others => 0.0);
  2198. Tint : Color := White
  2199. ) with
  2200. Import => True,
  2201. Convention => C,
  2202. External_Name => "DrawTriangle";
  2203. procedure Draw_Triangle_Lines (
  2204. Point_1 : Vector_2D := (others => 0.0);
  2205. Point_2 : Vector_2D := (others => 0.0);
  2206. Point_3 : Vector_2D := (others => 0.0);
  2207. Tint : Color := White
  2208. ) with
  2209. Import => True,
  2210. Convention => C,
  2211. External_Name => "DrawTriangleLines";
  2212. procedure Draw_Triangle_Fan (
  2213. Points : access Vector_2D := null;
  2214. Point_Count : Natural := 0;
  2215. Tint : Color := White
  2216. ) with
  2217. Import => True,
  2218. Convention => C,
  2219. External_Name => "DrawTriangleFan";
  2220. procedure Draw_Triangle_Strip (
  2221. Points : access Vector_2D := null;
  2222. Point_Count : Natural := 0;
  2223. Tint : Color := White
  2224. ) with
  2225. Import => True,
  2226. Convention => C,
  2227. External_Name => "DrawTriangleStrip";
  2228. procedure Draw_Poly (
  2229. Center : Vector_2D := (others => 0.0);
  2230. Sides : Natural := 0;
  2231. Radius : Float := 0.0;
  2232. Rotation : Float := 0.0;
  2233. Tint : Color := White
  2234. ) with
  2235. Import => True,
  2236. Convention => C,
  2237. External_Name => "DrawPoly";
  2238. procedure Draw_Poly_Lines (
  2239. Center : Vector_2D := (others => 0.0);
  2240. Sides : Natural := 0;
  2241. Radius : Float := 0.0;
  2242. Rotation : Float := 0.0;
  2243. Tint : Color := White
  2244. ) with
  2245. Import => True,
  2246. Convention => C,
  2247. External_Name => "DrawPolyLines";
  2248. procedure Draw_Poly_Lines_Ex (
  2249. Center : Vector_2D := (others => 0.0);
  2250. Sides : Natural := 0;
  2251. Radius : Float := 0.0;
  2252. Rotation : Float := 0.0;
  2253. Thickness : Float := 0.0;
  2254. Tint : Color := White
  2255. ) with
  2256. Import => True,
  2257. Convention => C,
  2258. External_Name => "DrawPolyLinesEx";
  2259. --~procedure DrawSplineLinear (
  2260. --~Vector2 *points, int pointCount, float thick, Color color
  2261. --~) with
  2262. --~Import => True,
  2263. --~Convention => C,
  2264. --~External_Name => "";
  2265. --~procedure DrawSplineBasis (
  2266. --~Vector2 *points, int pointCount, float thick, Color color
  2267. --~) with
  2268. --~Import => True,
  2269. --~Convention => C,
  2270. --~External_Name => "";
  2271. --~procedure DrawSplineCatmullRom (
  2272. --~Vector2 *points, int pointCount, float thick, Color color
  2273. --~) with
  2274. --~Import => True,
  2275. --~Convention => C,
  2276. --~External_Name => "";
  2277. --~procedure DrawSplineBezierQuadratic (
  2278. --~Vector2 *points, int pointCount, float thick, Color color
  2279. --~) with
  2280. --~Import => True,
  2281. --~Convention => C,
  2282. --~External_Name => "";
  2283. --~procedure DrawSplineBezierCubic (
  2284. --~Vector2 *points, int pointCount, float thick, Color color
  2285. --~) with
  2286. --~Import => True,
  2287. --~Convention => C,
  2288. --~External_Name => "";
  2289. --~procedure DrawSplineSegmentLinear (
  2290. --~Vector2 p1, Vector2 p2, float thick, Color color
  2291. --~) with
  2292. --~Import => True,
  2293. --~Convention => C,
  2294. --~External_Name => "";
  2295. --~procedure DrawSplineSegmentBasis (
  2296. --~Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color
  2297. --~) with
  2298. --~Import => True,
  2299. --~Convention => C,
  2300. --~External_Name => "";
  2301. --~procedure DrawSplineSegmentCatmullRom (
  2302. --~Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color
  2303. --~) with
  2304. --~Import => True,
  2305. --~Convention => C,
  2306. --~External_Name => "";
  2307. --~procedure DrawSplineSegmentBezierQuadratic (
  2308. --~Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color
  2309. --~) with
  2310. --~Import => True,
  2311. --~Convention => C,
  2312. --~External_Name => "";
  2313. --~procedure DrawSplineSegmentBezierCubic (
  2314. --~Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color
  2315. --~) with
  2316. --~Import => True,
  2317. --~Convention => C,
  2318. --~External_Name => "";
  2319. --~function Vector2 GetSplinePointLinear (
  2320. --~Vector2 startPos, Vector2 endPos, float t
  2321. --~) with
  2322. --~Import => True,
  2323. --~Convention => C,
  2324. --~External_Name => "";
  2325. --~function Vector2 GetSplinePointBasis (
  2326. --~Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t
  2327. --~) with
  2328. --~Import => True,
  2329. --~Convention => C,
  2330. --~External_Name => "";
  2331. --~function Vector2 GetSplinePointCatmullRom (
  2332. --~Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t
  2333. --~) with
  2334. --~Import => True,
  2335. --~Convention => C,
  2336. --~External_Name => "";
  2337. --~function Vector2 GetSplinePointBezierQuad (
  2338. --~Vector2 p1, Vector2 c2, Vector2 p3, float t
  2339. --~) with
  2340. --~Import => True,
  2341. --~Convention => C,
  2342. --~External_Name => "";
  2343. --~function Vector2 GetSplinePointBezierCubic (
  2344. --~Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t
  2345. --~) with
  2346. --~Import => True,
  2347. --~Convention => C,
  2348. --~External_Name => "";
  2349. --~function bool CheckCollisionRecs (
  2350. --~Rectangle rec1, Rectangle rec2
  2351. --~) with
  2352. --~Import => True,
  2353. --~Convention => C,
  2354. --~External_Name => "";
  2355. --~function bool CheckCollisionCircles (
  2356. --~Vector2 center1, float radius1, Vector2 center2, float radius2
  2357. --~) with
  2358. --~Import => True,
  2359. --~Convention => C,
  2360. --~External_Name => "";
  2361. --~function bool CheckCollisionCircleRec (
  2362. --~Vector2 center, float radius, Rectangle rec
  2363. --~) with
  2364. --~Import => True,
  2365. --~Convention => C,
  2366. --~External_Name => "";
  2367. --~function bool CheckCollisionPointRec (
  2368. --~Vector2 point, Rectangle rec
  2369. --~) with
  2370. --~Import => True,
  2371. --~Convention => C,
  2372. --~External_Name => "";
  2373. --~function bool CheckCollisionPointCircle (
  2374. --~Vector2 point, Vector2 center, float radius
  2375. --~) with
  2376. --~Import => True,
  2377. --~Convention => C,
  2378. --~External_Name => "";
  2379. --~function bool CheckCollisionPointTriangle (
  2380. --~Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3
  2381. --~) with
  2382. --~Import => True,
  2383. --~Convention => C,
  2384. --~External_Name => "";
  2385. --~function bool CheckCollisionPointPoly (
  2386. --~Vector2 point, Vector2 *points, int pointCount
  2387. --~) with
  2388. --~Import => True,
  2389. --~Convention => C,
  2390. --~External_Name => "";
  2391. --~function bool CheckCollisionLines (
  2392. --~Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint
  2393. --~) with
  2394. --~Import => True,
  2395. --~Convention => C,
  2396. --~External_Name => "";
  2397. --~function bool CheckCollisionPointLine (
  2398. --~Vector2 point, Vector2 p1, Vector2 p2, int threshold
  2399. --~) with
  2400. --~Import => True,
  2401. --~Convention => C,
  2402. --~External_Name => "";
  2403. --~function Rectangle GetCollisionRec (
  2404. --~Rectangle rec1, Rectangle rec2
  2405. --~) with
  2406. --~Import => True,
  2407. --~Convention => C,
  2408. --~External_Name => "";
  2409. --~function Image LoadImage (
  2410. --~const char *fileName
  2411. --~) with
  2412. --~Import => True,
  2413. --~Convention => C,
  2414. --~External_Name => "";
  2415. --~function Image LoadImageRaw (
  2416. --~const char *fileName, int width, int height, int format, int headerSize
  2417. --~) with
  2418. --~Import => True,
  2419. --~Convention => C,
  2420. --~External_Name => "";
  2421. --~function Image LoadImageSvg (
  2422. --~const char *fileNameOrString, int width, int height
  2423. --~) with
  2424. --~Import => True,
  2425. --~Convention => C,
  2426. --~External_Name => "";
  2427. --~function Image LoadImageAnim (
  2428. --~const char *fileName, int *frames
  2429. --~) with
  2430. --~Import => True,
  2431. --~Convention => C,
  2432. --~External_Name => "";
  2433. --~function Image LoadImageFromMemory (
  2434. --~const char *fileType, const unsigned char *fileData, int dataSize
  2435. --~) with
  2436. --~Import => True,
  2437. --~Convention => C,
  2438. --~External_Name => "";
  2439. --~function Image LoadImageFromTexture (
  2440. --~Texture2D texture
  2441. --~) with
  2442. --~Import => True,
  2443. --~Convention => C,
  2444. --~External_Name => "";
  2445. --~function Image LoadImageFromScreen (
  2446. --~void
  2447. --~) with
  2448. --~Import => True,
  2449. --~Convention => C,
  2450. --~External_Name => "";
  2451. --~function bool IsImageReady (
  2452. --~Image image
  2453. --~) with
  2454. --~Import => True,
  2455. --~Convention => C,
  2456. --~External_Name => "";
  2457. --~procedure UnloadImage (
  2458. --~Image image
  2459. --~) with
  2460. --~Import => True,
  2461. --~Convention => C,
  2462. --~External_Name => "";
  2463. --~function bool ExportImage (
  2464. --~Image image, const char *fileName
  2465. --~) with
  2466. --~Import => True,
  2467. --~Convention => C,
  2468. --~External_Name => "";
  2469. --~function unsigned char *ExportImageToMemory (
  2470. --~Image image, const char *fileType, int *fileSize
  2471. --~) with
  2472. --~Import => True,
  2473. --~Convention => C,
  2474. --~External_Name => "";
  2475. --~function bool ExportImageAsCode (
  2476. --~Image image, const char *fileName
  2477. --~) with
  2478. --~Import => True,
  2479. --~Convention => C,
  2480. --~External_Name => "";
  2481. --~function Image GenImageColor (
  2482. --~int width, int height, Color color
  2483. --~) with
  2484. --~Import => True,
  2485. --~Convention => C,
  2486. --~External_Name => "";
  2487. --~function Image GenImageGradientLinear (
  2488. --~int width, int height, int direction, Color start, Color end
  2489. --~) with
  2490. --~Import => True,
  2491. --~Convention => C,
  2492. --~External_Name => "";
  2493. --~function Image GenImageGradientRadial (
  2494. --~int width, int height, float density, Color inner, Color outer
  2495. --~) with
  2496. --~Import => True,
  2497. --~Convention => C,
  2498. --~External_Name => "";
  2499. --~function Image GenImageGradientSquare (
  2500. --~int width, int height, float density, Color inner, Color outer
  2501. --~) with
  2502. --~Import => True,
  2503. --~Convention => C,
  2504. --~External_Name => "";
  2505. --~function Image GenImageChecked (
  2506. --~int width, int height, int checksX, int checksY, Color col1, Color col2
  2507. --~) with
  2508. --~Import => True,
  2509. --~Convention => C,
  2510. --~External_Name => "";
  2511. --~function Image GenImageWhiteNoise (
  2512. --~int width, int height, float factor
  2513. --~) with
  2514. --~Import => True,
  2515. --~Convention => C,
  2516. --~External_Name => "";
  2517. --~function Image GenImagePerlinNoise (
  2518. --~int width, int height, int offsetX, int offsetY, float scale
  2519. --~) with
  2520. --~Import => True,
  2521. --~Convention => C,
  2522. --~External_Name => "";
  2523. --~function Image GenImageCellular (
  2524. --~int width, int height, int tileSize
  2525. --~) with
  2526. --~Import => True,
  2527. --~Convention => C,
  2528. --~External_Name => "";
  2529. --~function Image GenImageText (
  2530. --~int width, int height, const char *text
  2531. --~) with
  2532. --~Import => True,
  2533. --~Convention => C,
  2534. --~External_Name => "";
  2535. --~function Image ImageCopy (
  2536. --~Image image
  2537. --~) with
  2538. --~Import => True,
  2539. --~Convention => C,
  2540. --~External_Name => "";
  2541. --~function Image ImageFromImage (
  2542. --~Image image, Rectangle rec
  2543. --~) with
  2544. --~Import => True,
  2545. --~Convention => C,
  2546. --~External_Name => "";
  2547. --~function Image ImageText (
  2548. --~const char *text, int fontSize, Color color
  2549. --~) with
  2550. --~Import => True,
  2551. --~Convention => C,
  2552. --~External_Name => "";
  2553. --~function Image ImageTextEx (
  2554. --~Font font, const char *text, float fontSize, float spacing, Color tint
  2555. --~) with
  2556. --~Import => True,
  2557. --~Convention => C,
  2558. --~External_Name => "";
  2559. --~procedure ImageFormat (
  2560. --~Image *image, int newFormat
  2561. --~) with
  2562. --~Import => True,
  2563. --~Convention => C,
  2564. --~External_Name => "";
  2565. --~procedure ImageToPOT (
  2566. --~Image *image, Color fill
  2567. --~) with
  2568. --~Import => True,
  2569. --~Convention => C,
  2570. --~External_Name => "";
  2571. --~procedure ImageCrop (
  2572. --~Image *image, Rectangle crop
  2573. --~) with
  2574. --~Import => True,
  2575. --~Convention => C,
  2576. --~External_Name => "";
  2577. --~procedure ImageAlphaCrop (
  2578. --~Image *image, float threshold
  2579. --~) with
  2580. --~Import => True,
  2581. --~Convention => C,
  2582. --~External_Name => "";
  2583. --~procedure ImageAlphaClear (
  2584. --~Image *image, Color color, float threshold
  2585. --~) with
  2586. --~Import => True,
  2587. --~Convention => C,
  2588. --~External_Name => "";
  2589. --~procedure ImageAlphaMask (
  2590. --~Image *image, Image alphaMask
  2591. --~) with
  2592. --~Import => True,
  2593. --~Convention => C,
  2594. --~External_Name => "";
  2595. --~procedure ImageAlphaPremultiply (
  2596. --~Image *image
  2597. --~) with
  2598. --~Import => True,
  2599. --~Convention => C,
  2600. --~External_Name => "";
  2601. --~procedure ImageBlurGaussian (
  2602. --~Image *image, int blurSize
  2603. --~) with
  2604. --~Import => True,
  2605. --~Convention => C,
  2606. --~External_Name => "";
  2607. --~procedure ImageKernelConvolution (
  2608. --~Image *image, float* kernel, int kernelSize
  2609. --~) with
  2610. --~Import => True,
  2611. --~Convention => C,
  2612. --~External_Name => "";
  2613. --~procedure ImageResize (
  2614. --~Image *image, int newWidth, int newHeight
  2615. --~) with
  2616. --~Import => True,
  2617. --~Convention => C,
  2618. --~External_Name => "";
  2619. --~procedure ImageResizeNN (
  2620. --~Image *image, int newWidth,int newHeight
  2621. --~) with
  2622. --~Import => True,
  2623. --~Convention => C,
  2624. --~External_Name => "";
  2625. --~procedure ImageResizeCanvas (
  2626. --~Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill
  2627. --~) with
  2628. --~Import => True,
  2629. --~Convention => C,
  2630. --~External_Name => "";
  2631. --~procedure ImageMipmaps (
  2632. --~Image *image
  2633. --~) with
  2634. --~Import => True,
  2635. --~Convention => C,
  2636. --~External_Name => "";
  2637. --~procedure ImageDither (
  2638. --~Image *image, int rBpp, int gBpp, int bBpp, int aBpp
  2639. --~) with
  2640. --~Import => True,
  2641. --~Convention => C,
  2642. --~External_Name => "";
  2643. --~procedure ImageFlipVertical (
  2644. --~Image *image
  2645. --~) with
  2646. --~Import => True,
  2647. --~Convention => C,
  2648. --~External_Name => "";
  2649. --~procedure ImageFlipHorizontal (
  2650. --~Image *image
  2651. --~) with
  2652. --~Import => True,
  2653. --~Convention => C,
  2654. --~External_Name => "";
  2655. --~procedure ImageRotate (
  2656. --~Image *image, int degrees
  2657. --~) with
  2658. --~Import => True,
  2659. --~Convention => C,
  2660. --~External_Name => "";
  2661. --~procedure ImageRotateCW (
  2662. --~Image *image
  2663. --~) with
  2664. --~Import => True,
  2665. --~Convention => C,
  2666. --~External_Name => "";
  2667. --~procedure ImageRotateCCW (
  2668. --~Image *image
  2669. --~) with
  2670. --~Import => True,
  2671. --~Convention => C,
  2672. --~External_Name => "";
  2673. --~procedure ImageColorTint (
  2674. --~Image *image, Color color
  2675. --~) with
  2676. --~Import => True,
  2677. --~Convention => C,
  2678. --~External_Name => "";
  2679. --~procedure ImageColorInvert (
  2680. --~Image *image
  2681. --~) with
  2682. --~Import => True,
  2683. --~Convention => C,
  2684. --~External_Name => "";
  2685. --~procedure ImageColorGrayscale (
  2686. --~Image *image
  2687. --~) with
  2688. --~Import => True,
  2689. --~Convention => C,
  2690. --~External_Name => "";
  2691. --~procedure ImageColorContrast (
  2692. --~Image *image, float contrast
  2693. --~) with
  2694. --~Import => True,
  2695. --~Convention => C,
  2696. --~External_Name => "";
  2697. --~procedure ImageColorBrightness (
  2698. --~Image *image, int brightness
  2699. --~) with
  2700. --~Import => True,
  2701. --~Convention => C,
  2702. --~External_Name => "";
  2703. --~procedure ImageColorReplace (
  2704. --~Image *image, Color color, Color replace
  2705. --~) with
  2706. --~Import => True,
  2707. --~Convention => C,
  2708. --~External_Name => "";
  2709. --~function Color *LoadImageColors (
  2710. --~Image image
  2711. --~) with
  2712. --~Import => True,
  2713. --~Convention => C,
  2714. --~External_Name => "";
  2715. --~function Color *LoadImagePalette (
  2716. --~Image image, int maxPaletteSize, int *colorCount
  2717. --~) with
  2718. --~Import => True,
  2719. --~Convention => C,
  2720. --~External_Name => "";
  2721. --~procedure UnloadImageColors (
  2722. --~Color *colors
  2723. --~) with
  2724. --~Import => True,
  2725. --~Convention => C,
  2726. --~External_Name => "";
  2727. --~procedure UnloadImagePalette (
  2728. --~Color *colors
  2729. --~) with
  2730. --~Import => True,
  2731. --~Convention => C,
  2732. --~External_Name => "";
  2733. --~function Rectangle GetImageAlphaBorder (
  2734. --~Image image, float threshold
  2735. --~) with
  2736. --~Import => True,
  2737. --~Convention => C,
  2738. --~External_Name => "";
  2739. --~function Color GetImageColor (
  2740. --~Image image, int x, int y
  2741. --~) with
  2742. --~Import => True,
  2743. --~Convention => C,
  2744. --~External_Name => "";
  2745. --~procedure ImageClearBackground (
  2746. --~Image *dst, Color color
  2747. --~) with
  2748. --~Import => True,
  2749. --~Convention => C,
  2750. --~External_Name => "";
  2751. --~procedure ImageDrawPixel (
  2752. --~Image *dst, int posX, int posY, Color color
  2753. --~) with
  2754. --~Import => True,
  2755. --~Convention => C,
  2756. --~External_Name => "";
  2757. --~procedure ImageDrawPixelV (
  2758. --~Image *dst, Vector2 position, Color color
  2759. --~) with
  2760. --~Import => True,
  2761. --~Convention => C,
  2762. --~External_Name => "";
  2763. --~procedure ImageDrawLine (
  2764. --~Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color
  2765. --~) with
  2766. --~Import => True,
  2767. --~Convention => C,
  2768. --~External_Name => "";
  2769. --~procedure ImageDrawLineV (
  2770. --~Image *dst, Vector2 start, Vector2 end, Color color
  2771. --~) with
  2772. --~Import => True,
  2773. --~Convention => C,
  2774. --~External_Name => "";
  2775. --~procedure ImageDrawCircle (
  2776. --~Image *dst, int centerX, int centerY, int radius, Color color
  2777. --~) with
  2778. --~Import => True,
  2779. --~Convention => C,
  2780. --~External_Name => "";
  2781. --~procedure ImageDrawCircleV (
  2782. --~Image *dst, Vector2 center, int radius, Color color
  2783. --~) with
  2784. --~Import => True,
  2785. --~Convention => C,
  2786. --~External_Name => "";
  2787. --~procedure ImageDrawCircleLines (
  2788. --~Image *dst, int centerX, int centerY, int radius, Color color
  2789. --~) with
  2790. --~Import => True,
  2791. --~Convention => C,
  2792. --~External_Name => "";
  2793. --~procedure ImageDrawCircleLinesV (
  2794. --~Image *dst, Vector2 center, int radius, Color color
  2795. --~) with
  2796. --~Import => True,
  2797. --~Convention => C,
  2798. --~External_Name => "";
  2799. --~procedure ImageDrawRectangle (
  2800. --~Image *dst, int posX, int posY, int width, int height, Color color
  2801. --~) with
  2802. --~Import => True,
  2803. --~Convention => C,
  2804. --~External_Name => "";
  2805. --~procedure ImageDrawRectangleV (
  2806. --~Image *dst, Vector2 position, Vector2 size, Color color
  2807. --~) with
  2808. --~Import => True,
  2809. --~Convention => C,
  2810. --~External_Name => "";
  2811. --~procedure ImageDrawRectangleRec (
  2812. --~Image *dst, Rectangle rec, Color color
  2813. --~) with
  2814. --~Import => True,
  2815. --~Convention => C,
  2816. --~External_Name => "";
  2817. --~procedure ImageDrawRectangleLines (
  2818. --~Image *dst, Rectangle rec, int thick, Color color
  2819. --~) with
  2820. --~Import => True,
  2821. --~Convention => C,
  2822. --~External_Name => "";
  2823. --~procedure ImageDraw (
  2824. --~Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint
  2825. --~) with
  2826. --~Import => True,
  2827. --~Convention => C,
  2828. --~External_Name => "";
  2829. --~procedure ImageDrawText (
  2830. --~Image *dst, const char *text, int posX, int posY, int fontSize, Color color
  2831. --~) with
  2832. --~Import => True,
  2833. --~Convention => C,
  2834. --~External_Name => "";
  2835. --~procedure ImageDrawTextEx (
  2836. --~Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint
  2837. --~) with
  2838. --~Import => True,
  2839. --~Convention => C,
  2840. --~External_Name => "";
  2841. function Load_Texture (
  2842. File_Path : String := ""
  2843. ) return Texture with
  2844. Import => True,
  2845. Convention => C,
  2846. External_Name => "LoadTexture";
  2847. function Load_Texture_From_Image (
  2848. Data : Image := No_Image
  2849. ) return Texture with
  2850. Import => True,
  2851. Convention => C,
  2852. External_Name => "LoadTextureFromImage";
  2853. function Load_Texture_Cubemap (
  2854. Data : Image := No_Image;
  2855. Layout : Integer := 0
  2856. ) return Texture with
  2857. Import => True,
  2858. Convention => C,
  2859. External_Name => "LoadTextureCubemap";
  2860. function Load_Render_Texture (
  2861. Width : Natural := 0;
  2862. Height : Natural := 0
  2863. ) return Render_Texture with
  2864. Import => True,
  2865. Convention => C,
  2866. External_Name => "LoadRenderTexture";
  2867. function Is_Texture_Ready (
  2868. Data : Texture := No_Texture
  2869. ) return Logical with
  2870. Import => True,
  2871. Convention => C,
  2872. External_Name => "IsTextureReady";
  2873. procedure Unload_Texture (
  2874. Data : Texture := No_Texture
  2875. ) with
  2876. Import => True,
  2877. Convention => C,
  2878. External_Name => "UnloadTexture";
  2879. function Is_Render_Texture_Ready (
  2880. Target : Render_Texture := No_Render_Texture
  2881. ) return Logical with
  2882. Import => True,
  2883. Convention => C,
  2884. External_Name => "IsRenderTextureReady";
  2885. procedure Unload_Render_Texture (
  2886. Target : Render_Texture := No_Render_Texture
  2887. ) with
  2888. Import => True,
  2889. Convention => C,
  2890. External_Name => "UnloadRenderTexture";
  2891. procedure Update_Texture (
  2892. Data : Texture := No_Texture;
  2893. Pixels : Pointer := null
  2894. ) with
  2895. Import => True,
  2896. Convention => C,
  2897. External_Name => "UpdateTexture";
  2898. procedure Update_Texture_Rec (
  2899. Data : Texture := No_Texture;
  2900. Source : Rectangle := No_Rectangle;
  2901. Pixels : Pointer := null
  2902. ) with
  2903. Import => True,
  2904. Convention => C,
  2905. External_Name => "UpdateTextureRec";
  2906. procedure Gen_Texture_Mipmaps (
  2907. Data : Texture := No_Texture
  2908. ) with
  2909. Import => True,
  2910. Convention => C,
  2911. External_Name => "GenTextureMipmaps";
  2912. procedure Set_Texture_Filter (
  2913. Data : Texture := No_Texture;
  2914. Filter : Texture_Filter := Texture_Filter_Point
  2915. ) with
  2916. Import => True,
  2917. Convention => C,
  2918. External_Name => "SetTextureFilter";
  2919. procedure Set_Texture_Wrap (
  2920. Data : Texture := No_Texture;
  2921. Wrap : Texture_Wrap := Texture_Wrap_Repeat
  2922. ) with
  2923. Import => True,
  2924. Convention => C,
  2925. External_Name => "SetTextureWrap";
  2926. procedure Draw_Texture (
  2927. Data : Texture := No_Texture;
  2928. X : Integer := 0;
  2929. Y : Integer := 0;
  2930. Tint : Color := White
  2931. ) with
  2932. Import => True,
  2933. Convention => C,
  2934. External_Name => "DrawTexture";
  2935. procedure Draw_Texture_V (
  2936. Data : Texture := No_Texture;
  2937. Position : Vector_2D := (others => 0.0);
  2938. Tint : Color := White
  2939. ) with
  2940. Import => True,
  2941. Convention => C,
  2942. External_Name => "DrawTextureV";
  2943. procedure Draw_Texture_Ex (
  2944. Data : Texture := No_Texture;
  2945. Position : Vector_2D := (others => 0.0);
  2946. Rotation : Float := 0.0;
  2947. Scale : Float := 0.0;
  2948. Tint : Color := White
  2949. ) with
  2950. Import => True,
  2951. Convention => C,
  2952. External_Name => "DrawTextureEx";
  2953. procedure Draw_Texture_Rec (
  2954. Data : Texture := No_Texture;
  2955. Source : Rectangle := No_Rectangle;
  2956. Position : Vector_2D := (others => 0.0);
  2957. Tint : Color := White
  2958. ) with
  2959. Import => True,
  2960. Convention => C,
  2961. External_Name => "DrawTextureRec";
  2962. procedure Draw_Texture_Pro (
  2963. Data : Texture := No_Texture;
  2964. Source : Rectangle := No_Rectangle;
  2965. Destination : Rectangle := No_Rectangle;
  2966. Origin : Vector_2D := (others => 0.0);
  2967. Rotation : Float := 0.0;
  2968. Tint : Color := White
  2969. ) with
  2970. Import => True,
  2971. Convention => C,
  2972. External_Name => "DrawTexturePro";
  2973. procedure Draw_Texture_NPatch (
  2974. Data : Texture := No_Texture;
  2975. -- ERROR NPatch_Info : NPatch_Info := No_NPatch_Info;
  2976. Destination : Rectangle := No_Rectangle;
  2977. Origin : Vector_2D := (others => 0.0);
  2978. Rotation : Float := 0.0;
  2979. Tint : Color := White
  2980. ) with
  2981. Import => True,
  2982. Convention => C,
  2983. External_Name => "DrawTextureNPatch";
  2984. function Fade (
  2985. Data : Color := White;
  2986. Alpha : Float := 0.0
  2987. ) return Color with
  2988. Import => True,
  2989. Convention => C,
  2990. External_Name => "Fade";
  2991. function Color_To_Integer (
  2992. Data : Color := White
  2993. ) return Integer with
  2994. Import => True,
  2995. Convention => C,
  2996. External_Name => "ColorToInt";
  2997. function Color_Normalize (
  2998. Data : Color := White
  2999. ) return Vector_4D with
  3000. Import => True,
  3001. Convention => C,
  3002. External_Name => "ColorNormalize";
  3003. function Color_From_Normalized (
  3004. Normalized : Vector_4D := (others => 0.0)
  3005. ) return Color with
  3006. Import => True,
  3007. Convention => C,
  3008. External_Name => "ColorFromNormalized";
  3009. function Color_To_HSV (
  3010. Data : Color := White
  3011. ) return Vector_3D with
  3012. Import => True,
  3013. Convention => C,
  3014. External_Name => "ColorToHSV";
  3015. function Color_From_HSV (
  3016. Hue : Float := 0.0;
  3017. Saturation : Float := 0.0;
  3018. Value : Float := 0.0
  3019. ) return Color with
  3020. Import => True,
  3021. Convention => C,
  3022. External_Name => "ColorFromHSV";
  3023. function Color_Tint (
  3024. Data : Color := White;
  3025. Tint : Color := Black
  3026. ) return Color with
  3027. Import => True,
  3028. Convention => C,
  3029. External_Name => "ColorTint";
  3030. function Color_Brightness (
  3031. Data : Color := White;
  3032. Factor : Float := 0.0
  3033. ) return Color with
  3034. Import => True,
  3035. Convention => C,
  3036. External_Name => "ColorBrightness";
  3037. function Color_Contrast (
  3038. Data : Color := White;
  3039. Contrast : Float := 0.0
  3040. ) return Color with
  3041. Import => True,
  3042. Convention => C,
  3043. External_Name => "ColorContrast";
  3044. function Color_Alpha (
  3045. Data : Color := White;
  3046. Alpha : Float := 0.0
  3047. ) return Color with
  3048. Import => True,
  3049. Convention => C,
  3050. External_Name => "ColorAlpha";
  3051. function Color_Alpha_Blend (
  3052. Destination : Color := White;
  3053. Source : Color := Black;
  3054. Tint : Color := Ray_White
  3055. ) return Color with
  3056. Import => True,
  3057. Convention => C,
  3058. External_Name => "ColorAlphaBlend";
  3059. function Get_Color (
  3060. Value : Natural := 0
  3061. ) return Color with
  3062. Import => True,
  3063. Convention => C,
  3064. External_Name => "GetColor";
  3065. function Get_Pixel_Color (
  3066. Source : Pointer := null;
  3067. Format : Integer := 0
  3068. ) return Color with
  3069. Import => True,
  3070. Convention => C,
  3071. External_Name => "GetPixelColor";
  3072. procedure Set_Pixel_Color (
  3073. Destination : Pointer := null;
  3074. Data : Color := White;
  3075. Format : Integer := 0
  3076. ) with
  3077. Import => True,
  3078. Convention => C,
  3079. External_Name => "SetPixelColor";
  3080. function Get_Pixel_Data_Size (
  3081. Width : Natural := 0;
  3082. Height : Natural := 0;
  3083. Format : Integer := 0
  3084. ) return Integer with
  3085. Import => True,
  3086. Convention => C,
  3087. External_Name => "GetPixelDataSize";
  3088. function Get_Font_Default return Font with
  3089. Import => True,
  3090. Convention => C,
  3091. External_Name => "GetFontDefault";
  3092. function Load_Font (
  3093. File_Name : String := ""
  3094. ) return Font with
  3095. Import => True,
  3096. Convention => C,
  3097. External_Name => "LoadFont";
  3098. function Load_Font_Ex (
  3099. File_Name : String := "";
  3100. Font_Size : Integer := 32;
  3101. Code_Points : access Integer := null;
  3102. Code_Point_Count : Natural := 0
  3103. ) return Font with
  3104. Import => True,
  3105. Convention => C,
  3106. External_Name => "LoadFontEx";
  3107. function Load_Font_From_Image (
  3108. Data : Image := No_Image;
  3109. Key : Color := White;
  3110. First_Character : Integer := 0
  3111. ) return Font with
  3112. Import => True,
  3113. Convention => C,
  3114. External_Name => "LoadFontFromImage";
  3115. function Load_Font_From_Memory (
  3116. File_Type : String := "";
  3117. File_Data : Pointer := null;
  3118. Data_Size : Natural := 0;
  3119. Font_Size : Integer := 32;
  3120. Code_Points : access Integer := null;
  3121. Code_Point_Count : Natural := 0
  3122. ) return Font with
  3123. Import => True,
  3124. Convention => C,
  3125. External_Name => "LoadFontFromMemory";
  3126. function Is_Font_Ready (
  3127. Data : Font := No_Font
  3128. ) return Logical with
  3129. Import => True,
  3130. Convention => C,
  3131. External_Name => "IsFontReady";
  3132. function Load_Font_Data (
  3133. File_Data : Pointer := null;
  3134. Data_Size : Natural := 0;
  3135. Font_Size : Integer := 32;
  3136. Code_Points : access Integer := null;
  3137. Code_Point_Count : Natural := 0;
  3138. Kind : Integer := 0
  3139. ) return access Glyph_Info with
  3140. Import => True,
  3141. Convention => C,
  3142. External_Name => "LoadFontData";
  3143. function Gen_Image_Font_Atlas (
  3144. Glyphs : access Glyph_Info := null;
  3145. Glyph_Rectangles : access Rectangle := null;
  3146. Glyph_Count : Integer := 0;
  3147. Font_Size : Integer := 32;
  3148. Padding : Integer := 0;
  3149. Pack_Method : Integer := 0
  3150. ) return Image with
  3151. Import => True,
  3152. Convention => C,
  3153. External_Name => "GenImageFontAtlas";
  3154. procedure Unload_Font_Data (
  3155. Glyphs : access Glyph_Info := null;
  3156. Glyph_Count : Integer := 0
  3157. ) with
  3158. Import => True,
  3159. Convention => C,
  3160. External_Name => "UnloadFontData";
  3161. procedure Unload_Font (
  3162. Data : Font := No_Font
  3163. ) with
  3164. Import => True,
  3165. Convention => C,
  3166. External_Name => "UnloadFont";
  3167. function Export_Font_As_Code (
  3168. Data : Font := No_Font;
  3169. File_Name : String := ""
  3170. ) return Logical with
  3171. Import => True,
  3172. Convention => C,
  3173. External_Name => "ExportFontAsCode";
  3174. procedure Draw_FPS (
  3175. X : Integer := 0;
  3176. Y : Integer := 0
  3177. ) with
  3178. Import => True,
  3179. Convention => C,
  3180. External_Name => "DrawFPS";
  3181. procedure Draw_Text (
  3182. Text : String := "";
  3183. X : Integer := 0;
  3184. Y : Integer := 0;
  3185. Size : Integer := 32;
  3186. Tint : Color := White
  3187. ) with
  3188. Import => True,
  3189. Convention => C,
  3190. External_Name => "DrawText";
  3191. procedure Draw_Text_Ex (
  3192. Data : Font := Get_Font_Default;
  3193. Text : String := "";
  3194. Position : Vector_2D := (others => 0.0);
  3195. Font_Size : Float := 0.0;
  3196. Spacing : Float := 0.0;
  3197. Tint : Color := White
  3198. ) with
  3199. Import => True,
  3200. Convention => C,
  3201. External_Name => "DrawTextEx";
  3202. procedure Draw_Text_Pro (
  3203. Data : Font := Get_Font_Default;
  3204. Text : String := "";
  3205. Position : Vector_2D := (others => 0.0);
  3206. Origin : Vector_2D := (others => 0.0);
  3207. Rotation : Float := 0.0;
  3208. Font_Size : Float := 0.0;
  3209. Spacing : Float := 0.0;
  3210. Tint : Color := White
  3211. ) with
  3212. Import => True,
  3213. Convention => C,
  3214. External_Name => "DrawTextPro";
  3215. procedure Draw_Text_Codepoint (
  3216. Data : Font := Get_Font_Default;
  3217. Code_Point : Integer := 0;
  3218. Position : Vector_2D := (others => 0.0);
  3219. Font_Size : Float := 0.0;
  3220. Tint : Color := White
  3221. ) with
  3222. Import => True,
  3223. Convention => C,
  3224. External_Name => "DrawTextCodepoint";
  3225. procedure Draw_Text_Codepoints (
  3226. Data : Font := Get_Font_Default;
  3227. Code_Points : access Integer := null;
  3228. Code_Point_Count : Integer := 0;
  3229. Position : Vector_2D := (others => 0.0);
  3230. Font_Size : Float := 0.0;
  3231. Spacing : Float := 0.0;
  3232. Tint : Color := White
  3233. ) with
  3234. Import => True,
  3235. Convention => C,
  3236. External_Name => "DrawTextCodepoints";
  3237. procedure Set_Text_Line_Spacing (
  3238. Spacing : Integer := 0
  3239. ) with
  3240. Import => True,
  3241. Convention => C,
  3242. External_Name => "SetTextLineSpacing";
  3243. function Measure_Text (
  3244. Text : String := "";
  3245. Font_Size : Integer := 0
  3246. ) return Integer with
  3247. Import => True,
  3248. Convention => C,
  3249. External_Name => "MeasureText";
  3250. function Measure_Text_Ex (
  3251. Data : Font := Get_Font_Default;
  3252. Text : String := "";
  3253. Font_Size : Float := 0.0;
  3254. Spacing : Float := 0.0
  3255. ) return Vector_2D with
  3256. Import => True,
  3257. Convention => C,
  3258. External_Name => "MeasureTextEx";
  3259. function Get_Glyph_Index (
  3260. Data : Font := Get_Font_Default;
  3261. Code_Point : Integer := 0
  3262. ) return Integer with
  3263. Import => True,
  3264. Convention => C,
  3265. External_Name => "GetGlyphIndex";
  3266. function Get_Glyph_Info (
  3267. Data : Font := Get_Font_Default;
  3268. Code_Point : Integer := 0
  3269. ) return Glyph_Info with
  3270. Import => True,
  3271. Convention => C,
  3272. External_Name => "GetGlyphInfo";
  3273. function Get_Glyph_Atlas_Rec (
  3274. Data : Font := Get_Font_Default;
  3275. Code_Point : Integer := 0
  3276. ) return Rectangle with
  3277. Import => True,
  3278. Convention => C,
  3279. External_Name => "GetGlyphAtlasRec";
  3280. function Load_UTF8 (
  3281. Code_Points : access Integer := null;
  3282. Length : Integer := 0
  3283. ) return access Character with
  3284. Import => True,
  3285. Convention => C,
  3286. External_Name => "LoadUTF8";
  3287. procedure Unload_UTF8 (
  3288. Text : access Character := null
  3289. ) with
  3290. Import => True,
  3291. Convention => C,
  3292. External_Name => "UnloadUTF8";
  3293. function Load_Code_Points (
  3294. Text : String := "";
  3295. Count : access Integer := null
  3296. ) return access Integer with
  3297. Import => True,
  3298. Convention => C,
  3299. External_Name => "LoadCodepoints";
  3300. procedure Unload_Code_Points (
  3301. Code_Points : access Integer := null
  3302. ) with
  3303. Import => True,
  3304. Convention => C,
  3305. External_Name => "UnloadCodepoints";
  3306. function Get_Code_Point_Count (
  3307. Text : String := ""
  3308. ) return Integer with
  3309. Import => True,
  3310. Convention => C,
  3311. External_Name => "GetCodepointCount";
  3312. function Get_Code_Point (
  3313. Text : String := "";
  3314. Code_Point_Size : access Integer := null
  3315. ) return Integer with
  3316. Import => True,
  3317. Convention => C,
  3318. External_Name => "GetCodepoint";
  3319. function Get_Code_Point_Next (
  3320. Text : String := "";
  3321. Code_Point_Size : access Integer := null
  3322. ) return Integer with
  3323. Import => True,
  3324. Convention => C,
  3325. External_Name => "GetCodepointNext";
  3326. function Get_Code_Point_Previous (
  3327. Text : String := "";
  3328. Code_Point_Size : access Integer := null
  3329. ) return Integer with
  3330. Import => True,
  3331. Convention => C,
  3332. External_Name => "GetCodepointPrevious";
  3333. function Code_Point_To_UTF8 (
  3334. Code_Point : Integer := 0;
  3335. UTF8_Size : access Integer := null
  3336. ) return Strings with
  3337. Import => True,
  3338. Convention => C,
  3339. External_Name => "CodepointToUTF8";
  3340. function Text_Copy (
  3341. Destination : Strings := null;
  3342. Source : Strings := null
  3343. ) return Integer with
  3344. Import => True,
  3345. Convention => C,
  3346. External_Name => "TextCopy";
  3347. function Text_Is_Equal (
  3348. Text_1 : Strings := null;
  3349. Text_2 : Strings := null
  3350. ) return Logical with
  3351. Import => True,
  3352. Convention => C,
  3353. External_Name => "TextIsEqual";
  3354. function Text_Length (
  3355. Text : String := ""
  3356. ) return Natural with
  3357. Import => True,
  3358. Convention => C,
  3359. External_Name => "TextLength";
  3360. --~function Text_Format (
  3361. --~Text : String := "";
  3362. --~...
  3363. --~) return Strings with
  3364. --~Import => True,
  3365. --~Convention => C,
  3366. --~External_Name => "TextFormat";
  3367. function Text_Subtext (
  3368. Text : String := "";
  3369. Position : Integer := 0;
  3370. Length : Integer := 0
  3371. ) return Strings with
  3372. Import => True,
  3373. Convention => C,
  3374. External_Name => "TextSubtext";
  3375. function Text_Replace (
  3376. Text : Strings := null;
  3377. Replace : String := "";
  3378. By : String := ""
  3379. ) return Strings with
  3380. Import => True,
  3381. Convention => C,
  3382. External_Name => "TextReplace";
  3383. function Text_Insert (
  3384. Text : String := "";
  3385. Insert : String := "";
  3386. Position : Integer := 0
  3387. ) return Strings with
  3388. Import => True,
  3389. Convention => C,
  3390. External_Name => "TextInsert";
  3391. function Text_Join (
  3392. Text : Strings := null;
  3393. Count : Integer := 0;
  3394. Delimiter : String := ""
  3395. ) return Strings with
  3396. Import => True,
  3397. Convention => C,
  3398. External_Name => "TextJoin";
  3399. function Text_Split (
  3400. Text : String := "";
  3401. Delimiter : Character := ' ';
  3402. Count : access Integer := null
  3403. ) return Strings with
  3404. Import => True,
  3405. Convention => C,
  3406. External_Name => "TextSplit";
  3407. procedure Text_Append (
  3408. Text : Strings := null;
  3409. Append : String := "";
  3410. Position : access Integer := null
  3411. ) with
  3412. Import => True,
  3413. Convention => C,
  3414. External_Name => "TextAppend";
  3415. function Text_Find_Index (
  3416. Text : String := "";
  3417. Find : String := ""
  3418. ) return Integer with
  3419. Import => True,
  3420. Convention => C,
  3421. External_Name => "TextFindIndex";
  3422. function Text_To_Upper (
  3423. Text : String := ""
  3424. ) return Strings with
  3425. Import => True,
  3426. Convention => C,
  3427. External_Name => "TextToUpper";
  3428. function Text_To_Lower (
  3429. Text : String := ""
  3430. ) return Strings with
  3431. Import => True,
  3432. Convention => C,
  3433. External_Name => "TextToLower";
  3434. function Text_To_Pascal (
  3435. Text : String := ""
  3436. ) return Strings with
  3437. Import => True,
  3438. Convention => C,
  3439. External_Name => "TextToPascal";
  3440. function Text_To_Integer (
  3441. Text : String := ""
  3442. ) return Integer with
  3443. Import => True,
  3444. Convention => C,
  3445. External_Name => "TextToInteger";
  3446. procedure Draw_Line_3D (
  3447. From : Vector_3D := (others => 0.0);
  3448. To : Vector_3D := (others => 0.0);
  3449. Tint : Color := Black
  3450. ) with
  3451. Import => True,
  3452. Convention => C,
  3453. External_Name => "DrawLine3D";
  3454. procedure Draw_Point_3D (
  3455. Position : Vector_3D := (others => 0.0);
  3456. Tint : Color := Black
  3457. ) with
  3458. Import => True,
  3459. Convention => C,
  3460. External_Name => "DrawPoint3D";
  3461. procedure Draw_Circle_3D (
  3462. Center : Vector_3D := (others => 0.0);
  3463. Radius : Float := 0.0;
  3464. Rotation_Axis : Vector_3D := (others => 0.0);
  3465. Rotation_Angle : Float := 0.0;
  3466. Tint : Color := Black
  3467. ) with
  3468. Import => True,
  3469. Convention => C,
  3470. External_Name => "DrawCircle3D";
  3471. procedure Draw_Triangle_3D (
  3472. Point_1 : Vector_3D := (others => 0.0);
  3473. Point_2 : Vector_3D := (others => 0.0);
  3474. Point_3 : Vector_3D := (others => 0.0);
  3475. Tint : Color := Black
  3476. ) with
  3477. Import => True,
  3478. Convention => C,
  3479. External_Name => "DrawTriangle3D";
  3480. procedure Draw_Triangle_Strip_3D (
  3481. Points : access Vector_3D := null;
  3482. Point_Count : Integer := 0;
  3483. Tint : Color := Black
  3484. ) with
  3485. Import => True,
  3486. Convention => C,
  3487. External_Name => "DrawTriangleStrip3D";
  3488. procedure Draw_Cube (
  3489. Position : Vector_3D := (others => 0.0);
  3490. Width : Float := 0.0;
  3491. Height : Float := 0.0;
  3492. Length : Float := 0.0;
  3493. Tint : Color := White
  3494. ) with
  3495. Import => True,
  3496. Convention => C,
  3497. External_Name => "DrawCube";
  3498. procedure Draw_Cube_V (
  3499. Position : Vector_3D := (others => 0.0);
  3500. Size : Vector_3D := (others => 0.0);
  3501. Tint : Color := White
  3502. ) with
  3503. Import => True,
  3504. Convention => C,
  3505. External_Name => "DrawCubeV";
  3506. procedure Draw_Cube_Wires (
  3507. Position : Vector_3D := (others => 0.0);
  3508. Width : Float := 0.0;
  3509. Height : Float := 0.0;
  3510. Length : Float := 0.0;
  3511. Tint : Color := Black
  3512. ) with
  3513. Import => True,
  3514. Convention => C,
  3515. External_Name => "DrawCubeWires";
  3516. procedure Draw_Cube_Wires_V (
  3517. Position : Vector_3D := (others => 0.0);
  3518. Size : Vector_3D := (others => 0.0);
  3519. Tint : Color := White
  3520. ) with
  3521. Import => True,
  3522. Convention => C,
  3523. External_Name => "DrawCubeWiresV";
  3524. procedure Draw_Sphere (
  3525. Center : Vector_3D := (others => 0.0);
  3526. Radius : Float := 0.0;
  3527. Tint : Color := White
  3528. ) with
  3529. Import => True,
  3530. Convention => C,
  3531. External_Name => "DrawSphere";
  3532. procedure Draw_Sphere_Ex (
  3533. Center : Vector_3D := (others => 0.0);
  3534. Radius : Float := 0.0;
  3535. Rings : Integer := 0;
  3536. Slices : Integer := 0;
  3537. Tint : Color := White
  3538. ) with
  3539. Import => True,
  3540. Convention => C,
  3541. External_Name => "DrawSphereEx";
  3542. procedure Draw_Sphere_Wires (
  3543. Center : Vector_3D := (others => 0.0);
  3544. Radius : Float := 0.0;
  3545. Rings : Integer := 0;
  3546. Slices : Integer := 0;
  3547. Tint : Color := White
  3548. ) with
  3549. Import => True,
  3550. Convention => C,
  3551. External_Name => "DrawSphereWires";
  3552. procedure Draw_Cylinder (
  3553. Position : Vector_3D := (others => 0.0);
  3554. Radius_Top : Float := 0.0;
  3555. Radius_Bottom : Float := 0.0;
  3556. Height : Float := 0.0;
  3557. Slices : Natural := 0;
  3558. Tint : Color := White
  3559. ) with
  3560. Import => True,
  3561. Convention => C,
  3562. External_Name => "DrawCylinder";
  3563. procedure Draw_Cylinder_Ex (
  3564. From : Vector_3D := (others => 0.0);
  3565. To : Vector_3D := (others => 0.0);
  3566. From_Radius : Float := 0.0;
  3567. To_Radius : Float := 0.0;
  3568. Sides : Natural := 0;
  3569. Tint : Color := White
  3570. ) with
  3571. Import => True,
  3572. Convention => C,
  3573. External_Name => "DrawCylinderEx";
  3574. procedure Draw_Cylinder_Wires (
  3575. Position : Vector_3D := (others => 0.0);
  3576. Radius_Top : Float := 0.0;
  3577. Radius_Bottom : Float := 0.0;
  3578. Height : Float := 0.0;
  3579. Slices : Natural := 0;
  3580. Tint : Color := White
  3581. ) with
  3582. Import => True,
  3583. Convention => C,
  3584. External_Name => "DrawCylinderWires";
  3585. procedure Draw_Cylinder_Wires_Ex (
  3586. From : Vector_3D := (others => 0.0);
  3587. To : Vector_3D := (others => 0.0);
  3588. From_Radius : Float := 0.0;
  3589. To_Radius : Float := 0.0;
  3590. Sides : Natural := 0;
  3591. Tint : Color := White
  3592. ) with
  3593. Import => True,
  3594. Convention => C,
  3595. External_Name => "DrawCylinderWiresEx";
  3596. procedure Draw_Capsule (
  3597. From : Vector_3D := (others => 0.0);
  3598. To : Vector_3D := (others => 0.0);
  3599. Radius : Float := 0.0;
  3600. Slices : Natural := 0;
  3601. Rings : Natural := 0;
  3602. Tint : Color := White
  3603. ) with
  3604. Import => True,
  3605. Convention => C,
  3606. External_Name => "DrawCapsule";
  3607. procedure Draw_Capsule_Wires (
  3608. From : Vector_3D := (others => 0.0);
  3609. To : Vector_3D := (others => 0.0);
  3610. Radius : Float := 0.0;
  3611. Slices : Natural := 0;
  3612. Rings : Natural := 0;
  3613. Tint : Color := White
  3614. ) with
  3615. Import => True,
  3616. Convention => C,
  3617. External_Name => "DrawCapsuleWires";
  3618. procedure Draw_Plane (
  3619. Center : Vector_3D := (others => 0.0);
  3620. Size : Vector_2D := (others => 0.0);
  3621. Tint : Color := White
  3622. ) with
  3623. Import => True,
  3624. Convention => C,
  3625. External_Name => "DrawPlane";
  3626. procedure Draw_Ray (
  3627. Data : Ray := No_Ray;
  3628. Tint : Color := White
  3629. ) with
  3630. Import => True,
  3631. Convention => C,
  3632. External_Name => "DrawRay";
  3633. procedure Draw_Grid (
  3634. Slices : Integer := 0;
  3635. Spacing : Float := 0.0
  3636. ) with
  3637. Import => True,
  3638. Convention => C,
  3639. External_Name => "DrawGrid";
  3640. function Load_Model (
  3641. File_Name : String := ""
  3642. ) return Model with
  3643. Import => True,
  3644. Convention => C,
  3645. External_Name => "LoadModel";
  3646. function Load_Model_From_Mesh (
  3647. Data : Mesh := No_Mesh
  3648. ) return Model with
  3649. Import => True,
  3650. Convention => C,
  3651. External_Name => "LoadModelFromMesh";
  3652. function Is_Model_Ready (
  3653. Data : Model := No_Model
  3654. ) return Logical with
  3655. Import => True,
  3656. Convention => C,
  3657. External_Name => "IsModelReady";
  3658. procedure Unload_Model (
  3659. Data : Model := No_Model
  3660. ) with
  3661. Import => True,
  3662. Convention => C,
  3663. External_Name => "UnloadModel";
  3664. function GetModelBoundingBox (
  3665. Data : Model := No_Model
  3666. ) return Bounding_Box with
  3667. Import => True,
  3668. Convention => C,
  3669. External_Name => "GetModelBoundingBox";
  3670. procedure Draw_Model (
  3671. Data : Model := No_Model;
  3672. Position : Vector_3D := (others => 0.0);
  3673. Scale : Float := 1.0;
  3674. Tint : Color := White
  3675. ) with
  3676. Import => True,
  3677. Convention => C,
  3678. External_Name => "DrawModel";
  3679. procedure Draw_Model_Ex (
  3680. Data : Model := No_Model;
  3681. Position : Vector_3D := (others => 0.0);
  3682. Axis : Vector_3D := (others => 0.0);
  3683. Angle : Float := 0.0;
  3684. Scale : Vector_3D := (1.0, 1.0, 1.0);
  3685. Tint : Color := White
  3686. ) with
  3687. Import => True,
  3688. Convention => C,
  3689. External_Name => "DrawModelEx";
  3690. procedure Draw_Model_Wires (
  3691. Data : Model := No_Model;
  3692. Position : Vector_3D := (others => 0.0);
  3693. Scale : Float := 0.0;
  3694. Tint : Color := White
  3695. ) with
  3696. Import => True,
  3697. Convention => C,
  3698. External_Name => "DrawModelWires";
  3699. procedure Draw_Model_Wires_Ex (
  3700. Data : Model := No_Model;
  3701. Position : Vector_3D := (others => 0.0);
  3702. Axis : Vector_3D := (others => 0.0);
  3703. Angle : Float := 0.0;
  3704. Scale : Vector_3D := (1.0, 1.0, 1.0);
  3705. Tint : Color := White
  3706. ) with
  3707. Import => True,
  3708. Convention => C,
  3709. External_Name => "DrawModelWiresEx";
  3710. procedure Draw_Bounding_Box (
  3711. Box : Bounding_Box := No_Bounding_Box;
  3712. Tint : Color := White
  3713. ) with
  3714. Import => True,
  3715. Convention => C,
  3716. External_Name => "DrawBoundingBox";
  3717. procedure Draw_Billboard (
  3718. Camera : Camera_3D := No_Camera_3D;
  3719. Billboard : Texture := No_Texture;
  3720. Position : Vector_3D := (others => 0.0);
  3721. Size : Float := 0.0;
  3722. Tint : Color := White
  3723. ) with
  3724. Import => True,
  3725. Convention => C,
  3726. External_Name => "DrawBillboard";
  3727. procedure Draw_Billboard_Rec (
  3728. Camera : Camera_3D := No_Camera_3D;
  3729. Billboard : Texture := No_Texture;
  3730. Source : Rectangle := No_Rectangle;
  3731. Position : Vector_3D := (others => 0.0);
  3732. Size : Vector_2D := (others => 0.0);
  3733. Tint : Color := White
  3734. ) with
  3735. Import => True,
  3736. Convention => C,
  3737. External_Name => "DrawBillboardRec";
  3738. procedure Draw_Billboard_Pro (
  3739. Camera : Camera_3D := No_Camera_3D;
  3740. Billboard : Texture := No_Texture;
  3741. Source : Rectangle := No_Rectangle;
  3742. Position : Vector_3D := (others => 0.0);
  3743. Up : Vector_3D := (others => 0.0);
  3744. Size : Vector_2D := (others => 0.0);
  3745. Origin : Vector_2D := (others => 0.0);
  3746. Rotation : Float := 0.0;
  3747. Tint : Color := White
  3748. ) with
  3749. Import => True,
  3750. Convention => C,
  3751. External_Name => "DrawBillboardPro";
  3752. procedure Upload_Mesh (
  3753. Data : access Mesh := null;
  3754. Dynamic : Logical := False
  3755. ) with
  3756. Import => True,
  3757. Convention => C,
  3758. External_Name => "UploadMesh";
  3759. procedure Update_Mesh_Buffer (
  3760. Data : Mesh := No_Mesh;
  3761. Index : Integer := 0;
  3762. This : Pointer := null;
  3763. Data_Size : Natural := 0;
  3764. Offset : Integer := 0
  3765. ) with
  3766. Import => True,
  3767. Convention => C,
  3768. External_Name => "UpdateMeshBuffer";
  3769. procedure Unload_Mesh (
  3770. Data : Mesh := No_Mesh
  3771. ) with
  3772. Import => True,
  3773. Convention => C,
  3774. External_Name => "UnloadMesh";
  3775. procedure Draw_Mesh (
  3776. Data : Mesh := No_Mesh;
  3777. Pixels : Material := No_Material;
  3778. Transform : Matrix_4D := (others => 0.0)
  3779. ) with
  3780. Import => True,
  3781. Convention => C,
  3782. External_Name => "DrawMesh";
  3783. procedure Draw_Mesh_Instanced (
  3784. Data : Mesh := No_Mesh;
  3785. Use_Material : Material := No_Material;
  3786. Transforms : access Matrix_4D := null;
  3787. Instances : Integer := 0
  3788. ) with
  3789. Import => True,
  3790. Convention => C,
  3791. External_Name => "DrawMeshInstanced";
  3792. function Get_Mesh_Bounding_Box (
  3793. Data : Mesh := No_Mesh
  3794. ) return Bounding_Box with
  3795. Import => True,
  3796. Convention => C,
  3797. External_Name => "GetMeshBoundingBox";
  3798. procedure Gen_Mesh_Tangents (
  3799. Data : access Mesh := null
  3800. ) with
  3801. Import => True,
  3802. Convention => C,
  3803. External_Name => "GenMeshTangents";
  3804. function Export_Mesh (
  3805. Data : Mesh := No_Mesh;
  3806. File_Name : String := ""
  3807. ) return Logical with
  3808. Import => True,
  3809. Convention => C,
  3810. External_Name => "ExportMesh";
  3811. function Export_Mesh_As_Code (
  3812. Data : Mesh := No_Mesh;
  3813. File_Name : String := ""
  3814. ) return Logical with
  3815. Import => True,
  3816. Convention => C,
  3817. External_Name => "ExportMeshAsCode";
  3818. function Gen_Mesh_Poly (
  3819. Sides : Integer := 0;
  3820. Radius : Float := 0.0
  3821. ) return Mesh with
  3822. Import => True,
  3823. Convention => C,
  3824. External_Name => "GenMeshPoly";
  3825. function Gen_Mesh_Plane (
  3826. Width : Float := 1.0;
  3827. Height : Float := 1.0;
  3828. X : Integer := 1;
  3829. Z : Integer := 1
  3830. ) return Mesh with
  3831. Import => True,
  3832. Convention => C,
  3833. External_Name => "GenMeshPlane";
  3834. function Gen_Mesh_Cube (
  3835. Width : Float := 0.0;
  3836. Height : Float := 0.0;
  3837. Length : Float := 0.0
  3838. ) return Mesh with
  3839. Import => True,
  3840. Convention => C,
  3841. External_Name => "GenMeshCube";
  3842. function Gen_Mesh_Sphere (
  3843. Radius : Float := 0.0;
  3844. Rings : Integer := 0;
  3845. Slices : Integer := 0
  3846. ) return Mesh with
  3847. Import => True,
  3848. Convention => C,
  3849. External_Name => "GenMeshSphere";
  3850. function Gen_Mesh_Hemisphere (
  3851. Radius : Float := 0.0;
  3852. Rings : Integer := 0;
  3853. Slices : Integer := 0
  3854. ) return Mesh with
  3855. Import => True,
  3856. Convention => C,
  3857. External_Name => "GenMeshHemiSphere";
  3858. function Gen_Mesh_Cylinder (
  3859. Radius : Float := 0.0;
  3860. Height : Float := 0.0;
  3861. Slices : Integer := 0
  3862. ) return Mesh with
  3863. Import => True,
  3864. Convention => C,
  3865. External_Name => "GenMeshCylinder";
  3866. function Gen_Mesh_Cone (
  3867. Radius : Float := 0.0;
  3868. Height : Float := 0.0;
  3869. Slices : Integer := 0
  3870. ) return Mesh with
  3871. Import => True,
  3872. Convention => C,
  3873. External_Name => "GenMeshCone";
  3874. function Gen_Mesh_Torus (
  3875. Radius : Float := 0.0;
  3876. Size : Float := 0.0;
  3877. Segments : Integer := 0;
  3878. Sides : Integer := 0
  3879. ) return Mesh with
  3880. Import => True,
  3881. Convention => C,
  3882. External_Name => "GenMeshTorus";
  3883. function Gen_Mesh_Knot (
  3884. Radius : Float := 0.0;
  3885. Size : Float := 0.0;
  3886. Segments : Integer := 0;
  3887. Sides : Integer := 0
  3888. ) return Mesh with
  3889. Import => True,
  3890. Convention => C,
  3891. External_Name => "GenMeshKnot";
  3892. function Gen_Mesh_Height_Map (
  3893. Height_Map : Image := No_Image;
  3894. Size : Vector_3D := (others => 0.0)
  3895. ) return Mesh with
  3896. Import => True,
  3897. Convention => C,
  3898. External_Name => "GenMeshHeightmap";
  3899. function Gen_Mesh_Cubic_Map (
  3900. Cubic_Map : Image := No_Image;
  3901. Size : Vector_3D := (others => 0.0)
  3902. ) return Mesh with
  3903. Import => True,
  3904. Convention => C,
  3905. External_Name => "GenMeshCubicmap";
  3906. function Load_Materials (
  3907. File_Name : String := "";
  3908. Counts : access Integer := null
  3909. ) return access Material with
  3910. Import => True,
  3911. Convention => C,
  3912. External_Name => "LoadMaterials";
  3913. function Load_Material_Default return Material with
  3914. Import => True,
  3915. Convention => C,
  3916. External_Name => "LoadMaterialDefault";
  3917. function Is_Material_Ready (
  3918. Data : Material := No_Material
  3919. ) return Logical with
  3920. Import => True,
  3921. Convention => C,
  3922. External_Name => "IsMaterialReady";
  3923. procedure Unload_Material (
  3924. Data : Material := No_Material
  3925. ) with
  3926. Import => True,
  3927. Convention => C,
  3928. External_Name => "UnloadMaterial";
  3929. procedure Set_Material_Texture (
  3930. Data : access Material := null;
  3931. Kind : Material_Map_Index := Material_Map_Height;
  3932. This : Texture := No_Texture
  3933. ) with
  3934. Import => True,
  3935. Convention => C,
  3936. External_Name => "SetMaterialTexture";
  3937. procedure Set_Model_Mesh_Material (
  3938. Data : access Model := null;
  3939. Mesh_Id : Integer := 0;
  3940. Material_Id : Integer := 0
  3941. ) with
  3942. Import => True,
  3943. Convention => C,
  3944. External_Name => "SetModelMeshMaterial";
  3945. function Load_Model_Animations (
  3946. File_Name : String := "";
  3947. Counts : access Integer := null
  3948. ) return access Model_Animation with
  3949. Import => True,
  3950. Convention => C,
  3951. External_Name => "LoadModelAnimations";
  3952. procedure Update_Model_Animation (
  3953. Data : Model := No_Model;
  3954. Animation : Model_Animation := No_Model_Animation;
  3955. Frame : Integer := 0
  3956. ) with
  3957. Import => True,
  3958. Convention => C,
  3959. External_Name => "UpdateModelAnimation";
  3960. procedure Unload_Model_Animation (
  3961. Animation : Model_Animation := No_Model_Animation
  3962. ) with
  3963. Import => True,
  3964. Convention => C,
  3965. External_Name => "UnloadModelAnimation";
  3966. procedure Unload_Model_Animations (
  3967. Animations : access Model_Animation := null;
  3968. Animation_Count : Natural := 0
  3969. ) with
  3970. Import => True,
  3971. Convention => C,
  3972. External_Name => "UnloadModelAnimations";
  3973. function Is_Model_Animation_Valid (
  3974. Data : Model := No_Model;
  3975. Animation : Model_Animation := No_Model_Animation
  3976. ) return Logical with
  3977. Import => True,
  3978. Convention => C,
  3979. External_Name => "IsModelAnimationValid";
  3980. function Check_Collision_Spheres (
  3981. Center_1 : Vector_3D := (others => 0.0);
  3982. Radius_1 : Float := 0.0;
  3983. Center_2 : Vector_3D := (others => 0.0);
  3984. Radius_2 : Float := 0.0
  3985. ) return Logical with
  3986. Import => True,
  3987. Convention => C,
  3988. External_Name => "CheckCollisionSpheres";
  3989. function Check_Collision_Boxes (
  3990. Box_1 : Bounding_Box := No_Bounding_Box;
  3991. Box_2 : Bounding_Box := No_Bounding_Box
  3992. ) return Logical with
  3993. Import => True,
  3994. Convention => C,
  3995. External_Name => "CheckCollisionBoxes";
  3996. function Check_Collision_Box_Sphere (
  3997. Box : Bounding_Box := No_Bounding_Box;
  3998. Center : Vector_3D := (others => 0.0);
  3999. Radius : Float := 0.0
  4000. ) return Logical with
  4001. Import => True,
  4002. Convention => C,
  4003. External_Name => "CheckCollisionBoxSphere";
  4004. function Get_Ray_Collision_Sphere (
  4005. Hit : Ray := No_Ray;
  4006. Center : Vector_3D := (others => 0.0);
  4007. Radius : Float := 0.0
  4008. ) return Ray_Collision with
  4009. Import => True,
  4010. Convention => C,
  4011. External_Name => "GetRayCollisionSphere";
  4012. function Get_Ray_Collision_Box (
  4013. Hit : Ray := No_Ray;
  4014. Box : Bounding_Box := No_Bounding_Box
  4015. ) return Ray_Collision with
  4016. Import => True,
  4017. Convention => C,
  4018. External_Name => "GetRayCollisionBox";
  4019. function Get_Ray_Collision_Mesh (
  4020. Hit : Ray := No_Ray;
  4021. Data : Mesh := No_Mesh;
  4022. Transform : Matrix_4D := Id_Matrix
  4023. ) return Ray_Collision with
  4024. Import => True,
  4025. Convention => C,
  4026. External_Name => "GetRayCollisionMesh";
  4027. function Get_Ray_Collision_Triangle (
  4028. Hit : Ray := No_Ray;
  4029. Point_1 : Vector_3D := (others => 0.0);
  4030. Point_2 : Vector_3D := (others => 0.0);
  4031. Point_3 : Vector_3D := (others => 0.0)
  4032. ) return Ray_Collision with
  4033. Import => True,
  4034. Convention => C,
  4035. External_Name => "GetRayCollisionTriangle";
  4036. function Get_Ray_Collision_Quad (
  4037. Hit : Ray := No_Ray;
  4038. Point_1 : Vector_3D := (others => 0.0);
  4039. Point_2 : Vector_3D := (others => 0.0);
  4040. Point_3 : Vector_3D := (others => 0.0);
  4041. Point_4 : Vector_3D := (others => 0.0)
  4042. ) return Ray_Collision with
  4043. Import => True,
  4044. Convention => C,
  4045. External_Name => "GetRayCollisionQuad";
  4046. procedure Open_Audio_Device with
  4047. Import => True,
  4048. Convention => C,
  4049. External_Name => "InitAudioDevice";
  4050. procedure Close_Audio_Device with
  4051. Import => True,
  4052. Convention => C,
  4053. External_Name => "CloseAudioDevice";
  4054. function Is_Audio_Device_Ready return Logical with
  4055. Import => True,
  4056. Convention => C,
  4057. External_Name => "IsAudioDeviceReady";
  4058. procedure Set_Master_Volume (
  4059. Volume : Float := 1.0
  4060. ) with
  4061. Import => True,
  4062. Convention => C,
  4063. External_Name => "SetMasterVolume";
  4064. function Get_Master_Volume return Float with
  4065. Import => True,
  4066. Convention => C,
  4067. External_Name => "GetMasterVolume";
  4068. function Load_Wave (
  4069. File_Name : String := ""
  4070. ) return Wave with
  4071. Import => True,
  4072. Convention => C,
  4073. External_Name => "LoadWave";
  4074. function Load_Wave_From_Memory (
  4075. File_Type : String := "";
  4076. File_Data : Pointer := null;
  4077. Data_Size : Natural := 0
  4078. ) return Wave with
  4079. Import => True,
  4080. Convention => C,
  4081. External_Name => "LoadWaveFromMemory";
  4082. function Is_Wave_Ready (
  4083. Data : Wave := No_Wave
  4084. ) return Logical with
  4085. Import => True,
  4086. Convention => C,
  4087. External_Name => "IsWaveReady";
  4088. function Load_Sound (
  4089. File_Name : String := ""
  4090. ) return Sound with
  4091. Import => True,
  4092. Convention => C,
  4093. External_Name => "LoadSound";
  4094. function Load_Sound_From_Wave (
  4095. Data : Wave := No_Wave
  4096. ) return Sound with
  4097. Import => True,
  4098. Convention => C,
  4099. External_Name => "LoadSoundFromWave";
  4100. function Load_Sound_Alias (
  4101. Source : Sound := No_Sound
  4102. ) return Sound with
  4103. Import => True,
  4104. Convention => C,
  4105. External_Name => "LoadSoundAlias";
  4106. function Is_Sound_Ready (
  4107. Source : Sound := No_Sound
  4108. ) return Logical with
  4109. Import => True,
  4110. Convention => C,
  4111. External_Name => "IsSoundReady";
  4112. procedure Update_Sound (
  4113. Source : Sound := No_Sound;
  4114. Data : Pointer := null;
  4115. Sample_Count : Integer := 0
  4116. ) with
  4117. Import => True,
  4118. Convention => C,
  4119. External_Name => "UpdateSound";
  4120. procedure Unload_Wave (
  4121. Data : Wave := No_Wave
  4122. ) with
  4123. Import => True,
  4124. Convention => C,
  4125. External_Name => "UnloadWave";
  4126. procedure Unload_Sound (
  4127. Data : Sound := No_Sound
  4128. ) with
  4129. Import => True,
  4130. Convention => C,
  4131. External_Name => "UnloadSound";
  4132. procedure Unload_Sound_Alias (
  4133. Alias : Sound := No_Sound
  4134. ) with
  4135. Import => True,
  4136. Convention => C,
  4137. External_Name => "UnloadSoundAlias";
  4138. function Export_Wave (
  4139. Data : Wave := No_Wave;
  4140. File_Name : String := ""
  4141. ) return Logical with
  4142. Import => True,
  4143. Convention => C,
  4144. External_Name => "ExportWave";
  4145. function Export_Wave_As_Code (
  4146. Data : Wave := No_Wave;
  4147. File_Name : String := ""
  4148. ) return Logical with
  4149. Import => True,
  4150. Convention => C,
  4151. External_Name => "ExportWaveAsCode";
  4152. procedure Play_Sound (
  4153. Data : Sound := No_Sound
  4154. ) with
  4155. Import => True,
  4156. Convention => C,
  4157. External_Name => "PlaySound";
  4158. procedure Stop_Sound (
  4159. Data : Sound := No_Sound
  4160. ) with
  4161. Import => True,
  4162. Convention => C,
  4163. External_Name => "StopSound";
  4164. procedure Pause_Sound (
  4165. Data : Sound := No_Sound
  4166. ) with
  4167. Import => True,
  4168. Convention => C,
  4169. External_Name => "PauseSound";
  4170. procedure Resume_Sound (
  4171. Data : Sound := No_Sound
  4172. ) with
  4173. Import => True,
  4174. Convention => C,
  4175. External_Name => "ResumeSound";
  4176. function Is_Sound_Playing (
  4177. Data : Sound := No_Sound
  4178. ) return Logical with
  4179. Import => True,
  4180. Convention => C,
  4181. External_Name => "IsSoundPlaying";
  4182. procedure Set_Sound_Volume (
  4183. Data : Sound := No_Sound;
  4184. Volume : Float := 0.0
  4185. ) with
  4186. Import => True,
  4187. Convention => C,
  4188. External_Name => "SetSoundVolume";
  4189. procedure Set_Sound_Pitch (
  4190. Data : Sound := No_Sound;
  4191. Pitch : Float := 0.0
  4192. ) with
  4193. Import => True,
  4194. Convention => C,
  4195. External_Name => "SetSoundPitch";
  4196. procedure Set_Sound_Pan (
  4197. Data : Sound := No_Sound;
  4198. Pan : Float := 0.0
  4199. ) with
  4200. Import => True,
  4201. Convention => C,
  4202. External_Name => "SetSoundPan";
  4203. function Wave_Copy (
  4204. Data : Wave := No_Wave
  4205. ) return Wave with
  4206. Import => True,
  4207. Convention => C,
  4208. External_Name => "WaveCopy";
  4209. procedure Wave_Crop (
  4210. Data : access Wave := null;
  4211. First_Sample : Integer := 0;
  4212. Final_Sample : Integer := 0
  4213. ) with
  4214. Import => True,
  4215. Convention => C,
  4216. External_Name => "WaveCrop";
  4217. procedure Wave_Format (
  4218. Data : access Wave := null;
  4219. Sample_Rate : Integer := 0;
  4220. Sample_Size : Integer := 0;
  4221. Channels : Integer := 0
  4222. ) with
  4223. Import => True,
  4224. Convention => C,
  4225. External_Name => "WaveFormat";
  4226. function Load_Wave_Samples (
  4227. Data : Wave := No_Wave
  4228. ) return access Float with
  4229. Import => True,
  4230. Convention => C,
  4231. External_Name => "LoadWaveSamples";
  4232. procedure Unload_Wave_Samples (
  4233. Samples : access Float := null
  4234. ) with
  4235. Import => True,
  4236. Convention => C,
  4237. External_Name => "UnloadWaveSamples";
  4238. function Load_Music_Stream (
  4239. File_Name : String := ""
  4240. ) return Music with
  4241. Import => True,
  4242. Convention => C,
  4243. External_Name => "LoadMusicStream";
  4244. function Load_Music_Stream_From_Memory (
  4245. File_Type : String := "";
  4246. Data : Pointer := null;
  4247. Data_Size : Integer := 0
  4248. ) return Music with
  4249. Import => True,
  4250. Convention => C,
  4251. External_Name => "LoadMusicStreamFromMemory";
  4252. function Is_Music_Ready (
  4253. Data : Music := No_Music
  4254. ) return Logical with
  4255. Import => True,
  4256. Convention => C,
  4257. External_Name => "IsMusicReady";
  4258. procedure Unload_Music_Stream (
  4259. Data : Music := No_Music
  4260. ) with
  4261. Import => True,
  4262. Convention => C,
  4263. External_Name => "UnloadMusicStream";
  4264. procedure Play_Music_Stream (
  4265. Data : Music := No_Music
  4266. ) with
  4267. Import => True,
  4268. Convention => C,
  4269. External_Name => "PlayMusicStream";
  4270. function Is_Music_Stream_Playing (
  4271. Data : Music := No_Music
  4272. ) return Logical with
  4273. Import => True,
  4274. Convention => C,
  4275. External_Name => "IsMusicStreamPlaying";
  4276. procedure Update_Music_Stream (
  4277. Data : Music := No_Music
  4278. ) with
  4279. Import => True,
  4280. Convention => C,
  4281. External_Name => "UpdateMusicStream";
  4282. procedure Stop_Music_Stream (
  4283. Data : Music := No_Music
  4284. ) with
  4285. Import => True,
  4286. Convention => C,
  4287. External_Name => "StopMusicStream";
  4288. procedure Pause_Music_Stream (
  4289. Data : Music := No_Music
  4290. ) with
  4291. Import => True,
  4292. Convention => C,
  4293. External_Name => "PauseMusicStream";
  4294. procedure Resume_Music_Stream (
  4295. Data : Music := No_Music
  4296. ) with
  4297. Import => True,
  4298. Convention => C,
  4299. External_Name => "ResumeMusicStream";
  4300. procedure Seek_Music_Stream (
  4301. Data : Music := No_Music;
  4302. Position : Float := 0.0
  4303. ) with
  4304. Import => True,
  4305. Convention => C,
  4306. External_Name => "SeekMusicStream";
  4307. procedure Set_Music_Volume (
  4308. Data : Music := No_Music;
  4309. Volume : Float := 0.0
  4310. ) with
  4311. Import => True,
  4312. Convention => C,
  4313. External_Name => "SetMusicVolume";
  4314. procedure Set_Music_Pitch (
  4315. Data : Music := No_Music;
  4316. Pitch : Float := 0.0
  4317. ) with
  4318. Import => True,
  4319. Convention => C,
  4320. External_Name => "SetMusicPitch";
  4321. procedure Set_Music_Pan (
  4322. Data : Music := No_Music;
  4323. Pan : Float := 0.0
  4324. ) with
  4325. Import => True,
  4326. Convention => C,
  4327. External_Name => "SetMusicPan";
  4328. function Get_Music_Time_Length (
  4329. Data : Music := No_Music
  4330. ) return Float with
  4331. Import => True,
  4332. Convention => C,
  4333. External_Name => "GetMusicTimeLength";
  4334. function Get_Music_Time_Played (
  4335. Data : Music := No_Music
  4336. ) return Float with
  4337. Import => True,
  4338. Convention => C,
  4339. External_Name => "GetMusicTimePlayed";
  4340. function Load_Audio_Stream (
  4341. Sample_Rate : Natural := 0;
  4342. Sample_Size : Natural := 0;
  4343. Channels : Natural := 0
  4344. ) return Audio_Stream with
  4345. Import => True,
  4346. Convention => C,
  4347. External_Name => "LoadAudioStream";
  4348. function Is_Audio_Stream_Ready (
  4349. Data : Audio_Stream := No_Audio_Stream
  4350. ) return Logical with
  4351. Import => True,
  4352. Convention => C,
  4353. External_Name => "IsAudioStreamReady";
  4354. procedure Unload_Audio_Stream (
  4355. Data : Audio_Stream := No_Audio_Stream
  4356. ) with
  4357. Import => True,
  4358. Convention => C,
  4359. External_Name => "UnloadAudioStream";
  4360. procedure Update_Audio_Stream (
  4361. Data : Audio_Stream := No_Audio_Stream;
  4362. Raw_Data : Pointer := null;
  4363. Frame_Count : Integer := 0
  4364. ) with
  4365. Import => True,
  4366. Convention => C,
  4367. External_Name => "UpdateAudioStream";
  4368. function Is_Audio_Stream_Processed (
  4369. Data : Audio_Stream := No_Audio_Stream
  4370. ) return Logical with
  4371. Import => True,
  4372. Convention => C,
  4373. External_Name => "IsAudioStreamProcessed";
  4374. procedure Play_Audio_Stream (
  4375. Data : Audio_Stream := No_Audio_Stream
  4376. ) with
  4377. Import => True,
  4378. Convention => C,
  4379. External_Name => "PlayAudioStream";
  4380. procedure Pause_Audio_Stream (
  4381. Data : Audio_Stream := No_Audio_Stream
  4382. ) with
  4383. Import => True,
  4384. Convention => C,
  4385. External_Name => "PauseAudioStream";
  4386. procedure Resume_Audio_Stream (
  4387. Data : Audio_Stream := No_Audio_Stream
  4388. ) with
  4389. Import => True,
  4390. Convention => C,
  4391. External_Name => "ResumeAudioStream";
  4392. function Is_Audio_Stream_Playing (
  4393. Data : Audio_Stream := No_Audio_Stream
  4394. ) return Logical with
  4395. Import => True,
  4396. Convention => C,
  4397. External_Name => "IsAudioStreamPlaying";
  4398. procedure Stop_Audio_Stream (
  4399. Data : Audio_Stream := No_Audio_Stream
  4400. ) with
  4401. Import => True,
  4402. Convention => C,
  4403. External_Name => "StopAudioStream";
  4404. procedure Set_Audio_Stream_Volume (
  4405. Data : Audio_Stream := No_Audio_Stream;
  4406. Volume : Float := 0.0
  4407. ) with
  4408. Import => True,
  4409. Convention => C,
  4410. External_Name => "SetAudioStreamVolume";
  4411. procedure Set_Audio_Stream_Pitch (
  4412. Data : Audio_Stream := No_Audio_Stream;
  4413. Pitch : Float := 0.0
  4414. ) with
  4415. Import => True,
  4416. Convention => C,
  4417. External_Name => "SetAudioStreamPitch";
  4418. procedure Set_Audio_Stream_Pan (
  4419. Data : Audio_Stream := No_Audio_Stream;
  4420. Pan : Float := 0.0
  4421. ) with
  4422. Import => True,
  4423. Convention => C,
  4424. External_Name => "SetAudioStreamPan";
  4425. procedure Set_Audio_Stream_Buffer_Size_Default (
  4426. Size : Integer := 0
  4427. ) with
  4428. Import => True,
  4429. Convention => C,
  4430. External_Name => "SetAudioStreamBufferSizeDefault";
  4431. procedure Attach_Audio_Stream_Processor (
  4432. Stream : Audio_Stream := No_Audio_Stream;
  4433. Processor : Pointer := null
  4434. ) with
  4435. Import => True,
  4436. Convention => C,
  4437. External_Name => "AttachAudioStreamProcessor";
  4438. procedure Detach_Audio_Stream_Processor (
  4439. Stream : Audio_Stream := No_Audio_Stream;
  4440. Processor : Pointer := null
  4441. ) with
  4442. Import => True,
  4443. Convention => C,
  4444. External_Name => "DetachAudioStreamProcessor";
  4445. procedure Attach_Audio_Mixed_Processor (
  4446. Processor : Pointer := null
  4447. ) with
  4448. Import => True,
  4449. Convention => C,
  4450. External_Name => "AttachAudioMixedProcessor";
  4451. procedure Detach_Audio_Mixed_Processor (
  4452. Processor : Pointer := null
  4453. ) with
  4454. Import => True,
  4455. Convention => C,
  4456. External_Name => "DetachAudioMixedProcessor";
  4457. ------------------------------------------------------------------------
  4458. end Raylib;