Ada bindings for Raylib 5.1 library.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

5205 行
147KB

  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 Draw_Spline_Linear (
  2260. Points : access Vector_2D := null;
  2261. Point_Count : Natural := 0;
  2262. Thickness : Float := 0.0;
  2263. Tint : Color := White
  2264. ) with
  2265. Import => True,
  2266. Convention => C,
  2267. External_Name => "DrawSplineLinear";
  2268. procedure Draw_Spline_Basis (
  2269. Points : access Vector_2D := null;
  2270. Point_Count : Natural := 0;
  2271. Thickness : Float := 0.0;
  2272. Tint : Color := White
  2273. ) with
  2274. Import => True,
  2275. Convention => C,
  2276. External_Name => "DrawSplineBasis";
  2277. procedure Draw_Spline_Catmull_Rom (
  2278. Points : access Vector_2D := null;
  2279. Point_Count : Natural := 0;
  2280. Thickness : Float := 0.0;
  2281. Tint : Color := White
  2282. ) with
  2283. Import => True,
  2284. Convention => C,
  2285. External_Name => "DrawSplineCatmullRom";
  2286. procedure Draw_Spline_Bezier_Quadratic (
  2287. Points : access Vector_2D := null;
  2288. Point_Count : Natural := 0;
  2289. Thickness : Float := 0.0;
  2290. Tint : Color := White
  2291. ) with
  2292. Import => True,
  2293. Convention => C,
  2294. External_Name => "DrawSplineBezierQuadratic";
  2295. procedure Draw_Spline_Bezier_Cubic (
  2296. Points : access Vector_2D := null;
  2297. Point_Count : Natural := 0;
  2298. Thickness : Float := 0.0;
  2299. Tint : Color := White
  2300. ) with
  2301. Import => True,
  2302. Convention => C,
  2303. External_Name => "DrawSplineBezierCubic";
  2304. procedure Draw_Spline_Segment_Linear (
  2305. From : Vector_2D := (others => 0.0);
  2306. To : Vector_2D := (others => 0.0);
  2307. Thickness : Float := 0.0;
  2308. Tint : Color := White
  2309. ) with
  2310. Import => True,
  2311. Convention => C,
  2312. External_Name => "DrawSplineSegmentLinear";
  2313. procedure Draw_Spline_Segment_Basis (
  2314. Point_1 : Vector_2D := (others => 0.0);
  2315. Point_2 : Vector_2D := (others => 0.0);
  2316. Point_3 : Vector_2D := (others => 0.0);
  2317. Point_4 : Vector_2D := (others => 0.0);
  2318. Thickness : Float := 0.0;
  2319. Tint : Color := White
  2320. ) with
  2321. Import => True,
  2322. Convention => C,
  2323. External_Name => "DrawSplineSegmentBasis";
  2324. procedure Draw_Spline_Segment_Catmull_Rom (
  2325. Point_1 : Vector_2D := (others => 0.0);
  2326. Point_2 : Vector_2D := (others => 0.0);
  2327. Point_3 : Vector_2D := (others => 0.0);
  2328. Point_4 : Vector_2D := (others => 0.0);
  2329. Thickness : Float := 0.0;
  2330. Tint : Color := White
  2331. ) with
  2332. Import => True,
  2333. Convention => C,
  2334. External_Name => "DrawSplineSegmentCatmullRom";
  2335. procedure Draw_Spline_Segment_Bezier_Quadratic (
  2336. Point_1 : Vector_2D := (others => 0.0);
  2337. Point_2 : Vector_2D := (others => 0.0);
  2338. Point_3 : Vector_2D := (others => 0.0);
  2339. Thickness : Float := 0.0;
  2340. Tint : Color := White
  2341. ) with
  2342. Import => True,
  2343. Convention => C,
  2344. External_Name => "DrawSplineSegmentBezierQuadratic";
  2345. procedure Draw_Spline_Segment_Bezier_Cubic (
  2346. Point_1 : Vector_2D := (others => 0.0);
  2347. Point_2 : Vector_2D := (others => 0.0);
  2348. Point_3 : Vector_2D := (others => 0.0);
  2349. Point_4 : Vector_2D := (others => 0.0);
  2350. Thickness : Float := 0.0;
  2351. Tint : Color := White
  2352. ) with
  2353. Import => True,
  2354. Convention => C,
  2355. External_Name => "DrawSplineSegmentBezierCubic";
  2356. function Get_Spline_Point_Linear (
  2357. From : Vector_2D := (others => 0.0);
  2358. To : Vector_2D := (others => 0.0);
  2359. Off : Float := 0.0
  2360. ) return Vector_2D with
  2361. Import => True,
  2362. Convention => C,
  2363. External_Name => "GetSplinePointLinear";
  2364. function Get_Spline_Point_Basis (
  2365. Point_1 : Vector_2D := (others => 0.0);
  2366. Point_2 : Vector_2D := (others => 0.0);
  2367. Point_3 : Vector_2D := (others => 0.0);
  2368. Point_4 : Vector_2D := (others => 0.0);
  2369. Off : Float := 0.0
  2370. ) return Vector_2D with
  2371. Import => True,
  2372. Convention => C,
  2373. External_Name => "GetSplinePointBasis";
  2374. function Get_Spline_Point_Catmull_Rom (
  2375. Point_1 : Vector_2D := (others => 0.0);
  2376. Point_2 : Vector_2D := (others => 0.0);
  2377. Point_3 : Vector_2D := (others => 0.0);
  2378. Point_4 : Vector_2D := (others => 0.0);
  2379. Off : Float := 0.0
  2380. ) return Vector_2D with
  2381. Import => True,
  2382. Convention => C,
  2383. External_Name => "GetSplinePointCatmullRom";
  2384. function Get_Spline_Point_Bezier_Quad (
  2385. Point_1 : Vector_2D := (others => 0.0);
  2386. Point_2 : Vector_2D := (others => 0.0);
  2387. Point_3 : Vector_2D := (others => 0.0);
  2388. Off : Float := 0.0
  2389. ) return Vector_2D with
  2390. Import => True,
  2391. Convention => C,
  2392. External_Name => "GetSplinePointBezierQuad";
  2393. function Get_Spline_Point_Bezier_Cubic (
  2394. Point_1 : Vector_2D := (others => 0.0);
  2395. Point_2 : Vector_2D := (others => 0.0);
  2396. Point_3 : Vector_2D := (others => 0.0);
  2397. Point_4 : Vector_2D := (others => 0.0);
  2398. Off : Float := 0.0
  2399. ) return Vector_2D with
  2400. Import => True,
  2401. Convention => C,
  2402. External_Name => "GetSplinePointBezierCubic";
  2403. function Check_Collision_Recs (
  2404. Bound_1 : Rectangle := No_Rectangle;
  2405. Bound_2 : Rectangle := No_Rectangle
  2406. ) return Logical with
  2407. Import => True,
  2408. Convention => C,
  2409. External_Name => "CheckCollisionRecs";
  2410. function Check_Collision_Circles (
  2411. Center_1 : Vector_2D := (others => 0.0);
  2412. Radius_1 : Float := 0.0;
  2413. Center_2 : Vector_2D := (others => 0.0);
  2414. Radius_2 : Float := 0.0
  2415. ) return Logical with
  2416. Import => True,
  2417. Convention => C,
  2418. External_Name => "CheckCollisionCircles";
  2419. function Check_Collision_Circle_Rec (
  2420. Center : Vector_2D := (others => 0.0);
  2421. Radius : Float := 0.0;
  2422. Bound : Rectangle := No_Rectangle
  2423. ) return Logical with
  2424. Import => True,
  2425. Convention => C,
  2426. External_Name => "CheckCollisionCircleRec";
  2427. function Check_Collision_Point_Rec (
  2428. Point : Vector_2D := (others => 0.0);
  2429. Bound : Rectangle := No_Rectangle
  2430. ) return Logical with
  2431. Import => True,
  2432. Convention => C,
  2433. External_Name => "CheckCollisionPointRec";
  2434. function Check_Collision_Point_Circle (
  2435. Point : Vector_2D := (others => 0.0);
  2436. Center : Vector_2D := (others => 0.0);
  2437. Radius : Float := 0.0
  2438. ) return Logical with
  2439. Import => True,
  2440. Convention => C,
  2441. External_Name => "CheckCollisionPointCircle";
  2442. function Check_Collision_Point_Triangle (
  2443. Point : Vector_2D := (others => 0.0);
  2444. Triangle_A : Vector_2D := (others => 0.0);
  2445. Triangle_B : Vector_2D := (others => 0.0);
  2446. Triangle_C : Vector_2D := (others => 0.0)
  2447. ) return Logical with
  2448. Import => True,
  2449. Convention => C,
  2450. External_Name => "CheckCollisionPointTriangle";
  2451. function Check_Collision_Point_Poly (
  2452. Point : Vector_2D := (others => 0.0);
  2453. Points : access Vector_2D := null;
  2454. Point_Count : Natural := 0
  2455. ) return Logical with
  2456. Import => True,
  2457. Convention => C,
  2458. External_Name => "CheckCollisionPointPoly";
  2459. function Check_Collision_Lines (
  2460. From_1 : Vector_2D := (others => 0.0);
  2461. To_1 : Vector_2D := (others => 0.0);
  2462. From_2 : Vector_2D := (others => 0.0);
  2463. To_2 : Vector_2D := (others => 0.0);
  2464. Intersections : access Vector_2D := null
  2465. ) return Logical with
  2466. Import => True,
  2467. Convention => C,
  2468. External_Name => "CheckCollisionLines";
  2469. function Check_Collision_Point_Line (
  2470. Point : Vector_2D := (others => 0.0);
  2471. From : Vector_2D := (others => 0.0);
  2472. To : Vector_2D := (others => 0.0);
  2473. Threshold : Natural := 0
  2474. ) return Logical with
  2475. Import => True,
  2476. Convention => C,
  2477. External_Name => "CheckCollisionPointLine";
  2478. function Get_Collision_Rec (
  2479. Bound_1 : Rectangle := No_Rectangle;
  2480. Bound_2 : Rectangle := No_Rectangle
  2481. ) return Rectangle with
  2482. Import => True,
  2483. Convention => C,
  2484. External_Name => "GetCollisionRec";
  2485. function Load_Image (
  2486. File_Name : String := ""
  2487. ) return Image with
  2488. Import => True,
  2489. Convention => C,
  2490. External_Name => "LoadImage";
  2491. function Load_Image_Raw (
  2492. File_Name : String := "";
  2493. Width : Natural := 0;
  2494. Height : Natural := 0;
  2495. Format : Integer := 0;
  2496. Header_Size : Integer := 0
  2497. ) return Image with
  2498. Import => True,
  2499. Convention => C,
  2500. External_Name => "LoadImageRaw";
  2501. function Load_Image_Svg (
  2502. File_Name : String := "";
  2503. Width : Natural := 0;
  2504. Height : Natural := 0
  2505. ) return Image with
  2506. Import => True,
  2507. Convention => C,
  2508. External_Name => "LoadImageSvg";
  2509. function Load_Image_Anim (
  2510. File_Name : String := "";
  2511. Frames : access Integer := null
  2512. ) return Image with
  2513. Import => True,
  2514. Convention => C,
  2515. External_Name => "LoadImageAnim";
  2516. function Load_Image_From_Memory (
  2517. File_Type : String := "";
  2518. File_Data : Pointer := null;
  2519. Data_Size : Natural := 0
  2520. ) return Image with
  2521. Import => True,
  2522. Convention => C,
  2523. External_Name => "LoadImageFromMemory";
  2524. function Load_Image_From_Texture (
  2525. Data : Texture := No_Texture
  2526. ) return Image with
  2527. Import => True,
  2528. Convention => C,
  2529. External_Name => "LoadImageFromTexture";
  2530. function Load_Image_From_Screen return Image with
  2531. Import => True,
  2532. Convention => C,
  2533. External_Name => "LoadImageFromScreen";
  2534. function Is_Image_Ready (
  2535. Data : Image := No_Image
  2536. ) return Logical with
  2537. Import => True,
  2538. Convention => C,
  2539. External_Name => "IsImageReady";
  2540. procedure Unload_Image (
  2541. Data : Image := No_Image
  2542. ) with
  2543. Import => True,
  2544. Convention => C,
  2545. External_Name => "UnloadImage";
  2546. function Export_Image (
  2547. Data : Image := No_Image;
  2548. File_Name : String := ""
  2549. ) return Logical with
  2550. Import => True,
  2551. Convention => C,
  2552. External_Name => "ExportImage";
  2553. function Export_Image_To_Memory (
  2554. Data : Image := No_Image;
  2555. File_Type : String := "";
  2556. File_Size : access Integer := null
  2557. ) return Pointer with
  2558. Import => True,
  2559. Convention => C,
  2560. External_Name => "ExportImageToMemory";
  2561. function Export_Image_As_Code (
  2562. Data : Image := No_Image;
  2563. File_Name : String := ""
  2564. ) return Logical with
  2565. Import => True,
  2566. Convention => C,
  2567. External_Name => "ExportImageAsCode";
  2568. --~function Image GenImageColor (
  2569. --~int width, int height, Color color
  2570. --~) with
  2571. --~Import => True,
  2572. --~Convention => C,
  2573. --~External_Name => "";
  2574. --~function Image GenImageGradientLinear (
  2575. --~int width, int height, int direction, Color start, Color end
  2576. --~) with
  2577. --~Import => True,
  2578. --~Convention => C,
  2579. --~External_Name => "";
  2580. --~function Image GenImageGradientRadial (
  2581. --~int width, int height, float density, Color inner, Color outer
  2582. --~) with
  2583. --~Import => True,
  2584. --~Convention => C,
  2585. --~External_Name => "";
  2586. --~function Image GenImageGradientSquare (
  2587. --~int width, int height, float density, Color inner, Color outer
  2588. --~) with
  2589. --~Import => True,
  2590. --~Convention => C,
  2591. --~External_Name => "";
  2592. --~function Image GenImageChecked (
  2593. --~int width, int height, int checksX, int checksY, Color col1, Color col2
  2594. --~) with
  2595. --~Import => True,
  2596. --~Convention => C,
  2597. --~External_Name => "";
  2598. --~function Image GenImageWhiteNoise (
  2599. --~int width, int height, float factor
  2600. --~) with
  2601. --~Import => True,
  2602. --~Convention => C,
  2603. --~External_Name => "";
  2604. --~function Image GenImagePerlinNoise (
  2605. --~int width, int height, int offsetX, int offsetY, float scale
  2606. --~) with
  2607. --~Import => True,
  2608. --~Convention => C,
  2609. --~External_Name => "";
  2610. --~function Image GenImageCellular (
  2611. --~int width, int height, int tileSize
  2612. --~) with
  2613. --~Import => True,
  2614. --~Convention => C,
  2615. --~External_Name => "";
  2616. --~function Image GenImageText (
  2617. --~int width, int height, const char *text
  2618. --~) with
  2619. --~Import => True,
  2620. --~Convention => C,
  2621. --~External_Name => "";
  2622. --~function Image ImageCopy (
  2623. --~Image image
  2624. --~) with
  2625. --~Import => True,
  2626. --~Convention => C,
  2627. --~External_Name => "";
  2628. --~function Image ImageFromImage (
  2629. --~Image image, Rectangle rec
  2630. --~) with
  2631. --~Import => True,
  2632. --~Convention => C,
  2633. --~External_Name => "";
  2634. --~function Image ImageText (
  2635. --~const char *text, int fontSize, Color color
  2636. --~) with
  2637. --~Import => True,
  2638. --~Convention => C,
  2639. --~External_Name => "";
  2640. --~function Image ImageTextEx (
  2641. --~Font font, const char *text, float fontSize, float spacing, Color tint
  2642. --~) with
  2643. --~Import => True,
  2644. --~Convention => C,
  2645. --~External_Name => "";
  2646. --~procedure ImageFormat (
  2647. --~Image *image, int newFormat
  2648. --~) with
  2649. --~Import => True,
  2650. --~Convention => C,
  2651. --~External_Name => "";
  2652. --~procedure ImageToPOT (
  2653. --~Image *image, Color fill
  2654. --~) with
  2655. --~Import => True,
  2656. --~Convention => C,
  2657. --~External_Name => "";
  2658. --~procedure ImageCrop (
  2659. --~Image *image, Rectangle crop
  2660. --~) with
  2661. --~Import => True,
  2662. --~Convention => C,
  2663. --~External_Name => "";
  2664. --~procedure ImageAlphaCrop (
  2665. --~Image *image, float threshold
  2666. --~) with
  2667. --~Import => True,
  2668. --~Convention => C,
  2669. --~External_Name => "";
  2670. --~procedure ImageAlphaClear (
  2671. --~Image *image, Color color, float threshold
  2672. --~) with
  2673. --~Import => True,
  2674. --~Convention => C,
  2675. --~External_Name => "";
  2676. --~procedure ImageAlphaMask (
  2677. --~Image *image, Image alphaMask
  2678. --~) with
  2679. --~Import => True,
  2680. --~Convention => C,
  2681. --~External_Name => "";
  2682. --~procedure ImageAlphaPremultiply (
  2683. --~Image *image
  2684. --~) with
  2685. --~Import => True,
  2686. --~Convention => C,
  2687. --~External_Name => "";
  2688. --~procedure ImageBlurGaussian (
  2689. --~Image *image, int blurSize
  2690. --~) with
  2691. --~Import => True,
  2692. --~Convention => C,
  2693. --~External_Name => "";
  2694. --~procedure ImageKernelConvolution (
  2695. --~Image *image, float* kernel, int kernelSize
  2696. --~) with
  2697. --~Import => True,
  2698. --~Convention => C,
  2699. --~External_Name => "";
  2700. --~procedure ImageResize (
  2701. --~Image *image, int newWidth, int newHeight
  2702. --~) with
  2703. --~Import => True,
  2704. --~Convention => C,
  2705. --~External_Name => "";
  2706. --~procedure ImageResizeNN (
  2707. --~Image *image, int newWidth,int newHeight
  2708. --~) with
  2709. --~Import => True,
  2710. --~Convention => C,
  2711. --~External_Name => "";
  2712. --~procedure ImageResizeCanvas (
  2713. --~Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill
  2714. --~) with
  2715. --~Import => True,
  2716. --~Convention => C,
  2717. --~External_Name => "";
  2718. --~procedure ImageMipmaps (
  2719. --~Image *image
  2720. --~) with
  2721. --~Import => True,
  2722. --~Convention => C,
  2723. --~External_Name => "";
  2724. --~procedure ImageDither (
  2725. --~Image *image, int rBpp, int gBpp, int bBpp, int aBpp
  2726. --~) with
  2727. --~Import => True,
  2728. --~Convention => C,
  2729. --~External_Name => "";
  2730. --~procedure ImageFlipVertical (
  2731. --~Image *image
  2732. --~) with
  2733. --~Import => True,
  2734. --~Convention => C,
  2735. --~External_Name => "";
  2736. --~procedure ImageFlipHorizontal (
  2737. --~Image *image
  2738. --~) with
  2739. --~Import => True,
  2740. --~Convention => C,
  2741. --~External_Name => "";
  2742. --~procedure ImageRotate (
  2743. --~Image *image, int degrees
  2744. --~) with
  2745. --~Import => True,
  2746. --~Convention => C,
  2747. --~External_Name => "";
  2748. --~procedure ImageRotateCW (
  2749. --~Image *image
  2750. --~) with
  2751. --~Import => True,
  2752. --~Convention => C,
  2753. --~External_Name => "";
  2754. --~procedure ImageRotateCCW (
  2755. --~Image *image
  2756. --~) with
  2757. --~Import => True,
  2758. --~Convention => C,
  2759. --~External_Name => "";
  2760. --~procedure ImageColorTint (
  2761. --~Image *image, Color color
  2762. --~) with
  2763. --~Import => True,
  2764. --~Convention => C,
  2765. --~External_Name => "";
  2766. --~procedure ImageColorInvert (
  2767. --~Image *image
  2768. --~) with
  2769. --~Import => True,
  2770. --~Convention => C,
  2771. --~External_Name => "";
  2772. --~procedure ImageColorGrayscale (
  2773. --~Image *image
  2774. --~) with
  2775. --~Import => True,
  2776. --~Convention => C,
  2777. --~External_Name => "";
  2778. --~procedure ImageColorContrast (
  2779. --~Image *image, float contrast
  2780. --~) with
  2781. --~Import => True,
  2782. --~Convention => C,
  2783. --~External_Name => "";
  2784. --~procedure ImageColorBrightness (
  2785. --~Image *image, int brightness
  2786. --~) with
  2787. --~Import => True,
  2788. --~Convention => C,
  2789. --~External_Name => "";
  2790. --~procedure ImageColorReplace (
  2791. --~Image *image, Color color, Color replace
  2792. --~) with
  2793. --~Import => True,
  2794. --~Convention => C,
  2795. --~External_Name => "";
  2796. --~function Color *LoadImageColors (
  2797. --~Image image
  2798. --~) with
  2799. --~Import => True,
  2800. --~Convention => C,
  2801. --~External_Name => "";
  2802. --~function Color *LoadImagePalette (
  2803. --~Image image, int maxPaletteSize, int *colorCount
  2804. --~) with
  2805. --~Import => True,
  2806. --~Convention => C,
  2807. --~External_Name => "";
  2808. --~procedure UnloadImageColors (
  2809. --~Color *colors
  2810. --~) with
  2811. --~Import => True,
  2812. --~Convention => C,
  2813. --~External_Name => "";
  2814. --~procedure UnloadImagePalette (
  2815. --~Color *colors
  2816. --~) with
  2817. --~Import => True,
  2818. --~Convention => C,
  2819. --~External_Name => "";
  2820. --~function Rectangle GetImageAlphaBorder (
  2821. --~Image image, float threshold
  2822. --~) with
  2823. --~Import => True,
  2824. --~Convention => C,
  2825. --~External_Name => "";
  2826. --~function Color GetImageColor (
  2827. --~Image image, int x, int y
  2828. --~) with
  2829. --~Import => True,
  2830. --~Convention => C,
  2831. --~External_Name => "";
  2832. --~procedure ImageClearBackground (
  2833. --~Image *dst, Color color
  2834. --~) with
  2835. --~Import => True,
  2836. --~Convention => C,
  2837. --~External_Name => "";
  2838. --~procedure ImageDrawPixel (
  2839. --~Image *dst, int posX, int posY, Color color
  2840. --~) with
  2841. --~Import => True,
  2842. --~Convention => C,
  2843. --~External_Name => "";
  2844. --~procedure ImageDrawPixelV (
  2845. --~Image *dst, Vector2 position, Color color
  2846. --~) with
  2847. --~Import => True,
  2848. --~Convention => C,
  2849. --~External_Name => "";
  2850. --~procedure ImageDrawLine (
  2851. --~Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color
  2852. --~) with
  2853. --~Import => True,
  2854. --~Convention => C,
  2855. --~External_Name => "";
  2856. --~procedure ImageDrawLineV (
  2857. --~Image *dst, Vector2 start, Vector2 end, Color color
  2858. --~) with
  2859. --~Import => True,
  2860. --~Convention => C,
  2861. --~External_Name => "";
  2862. --~procedure ImageDrawCircle (
  2863. --~Image *dst, int centerX, int centerY, int radius, Color color
  2864. --~) with
  2865. --~Import => True,
  2866. --~Convention => C,
  2867. --~External_Name => "";
  2868. --~procedure ImageDrawCircleV (
  2869. --~Image *dst, Vector2 center, int radius, Color color
  2870. --~) with
  2871. --~Import => True,
  2872. --~Convention => C,
  2873. --~External_Name => "";
  2874. --~procedure ImageDrawCircleLines (
  2875. --~Image *dst, int centerX, int centerY, int radius, Color color
  2876. --~) with
  2877. --~Import => True,
  2878. --~Convention => C,
  2879. --~External_Name => "";
  2880. --~procedure ImageDrawCircleLinesV (
  2881. --~Image *dst, Vector2 center, int radius, Color color
  2882. --~) with
  2883. --~Import => True,
  2884. --~Convention => C,
  2885. --~External_Name => "";
  2886. --~procedure ImageDrawRectangle (
  2887. --~Image *dst, int posX, int posY, int width, int height, Color color
  2888. --~) with
  2889. --~Import => True,
  2890. --~Convention => C,
  2891. --~External_Name => "";
  2892. --~procedure ImageDrawRectangleV (
  2893. --~Image *dst, Vector2 position, Vector2 size, Color color
  2894. --~) with
  2895. --~Import => True,
  2896. --~Convention => C,
  2897. --~External_Name => "";
  2898. --~procedure ImageDrawRectangleRec (
  2899. --~Image *dst, Rectangle rec, Color color
  2900. --~) with
  2901. --~Import => True,
  2902. --~Convention => C,
  2903. --~External_Name => "";
  2904. --~procedure ImageDrawRectangleLines (
  2905. --~Image *dst, Rectangle rec, int thick, Color color
  2906. --~) with
  2907. --~Import => True,
  2908. --~Convention => C,
  2909. --~External_Name => "";
  2910. --~procedure ImageDraw (
  2911. --~Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint
  2912. --~) with
  2913. --~Import => True,
  2914. --~Convention => C,
  2915. --~External_Name => "";
  2916. --~procedure ImageDrawText (
  2917. --~Image *dst, const char *text, int posX, int posY, int fontSize, Color color
  2918. --~) with
  2919. --~Import => True,
  2920. --~Convention => C,
  2921. --~External_Name => "";
  2922. --~procedure ImageDrawTextEx (
  2923. --~Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint
  2924. --~) with
  2925. --~Import => True,
  2926. --~Convention => C,
  2927. --~External_Name => "";
  2928. function Load_Texture (
  2929. File_Path : String := ""
  2930. ) return Texture with
  2931. Import => True,
  2932. Convention => C,
  2933. External_Name => "LoadTexture";
  2934. function Load_Texture_From_Image (
  2935. Data : Image := No_Image
  2936. ) return Texture with
  2937. Import => True,
  2938. Convention => C,
  2939. External_Name => "LoadTextureFromImage";
  2940. function Load_Texture_Cubemap (
  2941. Data : Image := No_Image;
  2942. Layout : Integer := 0
  2943. ) return Texture with
  2944. Import => True,
  2945. Convention => C,
  2946. External_Name => "LoadTextureCubemap";
  2947. function Load_Render_Texture (
  2948. Width : Natural := 0;
  2949. Height : Natural := 0
  2950. ) return Render_Texture with
  2951. Import => True,
  2952. Convention => C,
  2953. External_Name => "LoadRenderTexture";
  2954. function Is_Texture_Ready (
  2955. Data : Texture := No_Texture
  2956. ) return Logical with
  2957. Import => True,
  2958. Convention => C,
  2959. External_Name => "IsTextureReady";
  2960. procedure Unload_Texture (
  2961. Data : Texture := No_Texture
  2962. ) with
  2963. Import => True,
  2964. Convention => C,
  2965. External_Name => "UnloadTexture";
  2966. function Is_Render_Texture_Ready (
  2967. Target : Render_Texture := No_Render_Texture
  2968. ) return Logical with
  2969. Import => True,
  2970. Convention => C,
  2971. External_Name => "IsRenderTextureReady";
  2972. procedure Unload_Render_Texture (
  2973. Target : Render_Texture := No_Render_Texture
  2974. ) with
  2975. Import => True,
  2976. Convention => C,
  2977. External_Name => "UnloadRenderTexture";
  2978. procedure Update_Texture (
  2979. Data : Texture := No_Texture;
  2980. Pixels : Pointer := null
  2981. ) with
  2982. Import => True,
  2983. Convention => C,
  2984. External_Name => "UpdateTexture";
  2985. procedure Update_Texture_Rec (
  2986. Data : Texture := No_Texture;
  2987. Source : Rectangle := No_Rectangle;
  2988. Pixels : Pointer := null
  2989. ) with
  2990. Import => True,
  2991. Convention => C,
  2992. External_Name => "UpdateTextureRec";
  2993. procedure Gen_Texture_Mipmaps (
  2994. Data : Texture := No_Texture
  2995. ) with
  2996. Import => True,
  2997. Convention => C,
  2998. External_Name => "GenTextureMipmaps";
  2999. procedure Set_Texture_Filter (
  3000. Data : Texture := No_Texture;
  3001. Filter : Texture_Filter := Texture_Filter_Point
  3002. ) with
  3003. Import => True,
  3004. Convention => C,
  3005. External_Name => "SetTextureFilter";
  3006. procedure Set_Texture_Wrap (
  3007. Data : Texture := No_Texture;
  3008. Wrap : Texture_Wrap := Texture_Wrap_Repeat
  3009. ) with
  3010. Import => True,
  3011. Convention => C,
  3012. External_Name => "SetTextureWrap";
  3013. procedure Draw_Texture (
  3014. Data : Texture := No_Texture;
  3015. X : Integer := 0;
  3016. Y : Integer := 0;
  3017. Tint : Color := White
  3018. ) with
  3019. Import => True,
  3020. Convention => C,
  3021. External_Name => "DrawTexture";
  3022. procedure Draw_Texture_V (
  3023. Data : Texture := No_Texture;
  3024. Position : Vector_2D := (others => 0.0);
  3025. Tint : Color := White
  3026. ) with
  3027. Import => True,
  3028. Convention => C,
  3029. External_Name => "DrawTextureV";
  3030. procedure Draw_Texture_Ex (
  3031. Data : Texture := No_Texture;
  3032. Position : Vector_2D := (others => 0.0);
  3033. Rotation : Float := 0.0;
  3034. Scale : Float := 0.0;
  3035. Tint : Color := White
  3036. ) with
  3037. Import => True,
  3038. Convention => C,
  3039. External_Name => "DrawTextureEx";
  3040. procedure Draw_Texture_Rec (
  3041. Data : Texture := No_Texture;
  3042. Source : Rectangle := No_Rectangle;
  3043. Position : Vector_2D := (others => 0.0);
  3044. Tint : Color := White
  3045. ) with
  3046. Import => True,
  3047. Convention => C,
  3048. External_Name => "DrawTextureRec";
  3049. procedure Draw_Texture_Pro (
  3050. Data : Texture := No_Texture;
  3051. Source : Rectangle := No_Rectangle;
  3052. Destination : Rectangle := No_Rectangle;
  3053. Origin : Vector_2D := (others => 0.0);
  3054. Rotation : Float := 0.0;
  3055. Tint : Color := White
  3056. ) with
  3057. Import => True,
  3058. Convention => C,
  3059. External_Name => "DrawTexturePro";
  3060. procedure Draw_Texture_NPatch (
  3061. Data : Texture := No_Texture;
  3062. -- ERROR NPatch_Info : NPatch_Info := No_NPatch_Info;
  3063. Destination : Rectangle := No_Rectangle;
  3064. Origin : Vector_2D := (others => 0.0);
  3065. Rotation : Float := 0.0;
  3066. Tint : Color := White
  3067. ) with
  3068. Import => True,
  3069. Convention => C,
  3070. External_Name => "DrawTextureNPatch";
  3071. function Fade (
  3072. Data : Color := White;
  3073. Alpha : Float := 0.0
  3074. ) return Color with
  3075. Import => True,
  3076. Convention => C,
  3077. External_Name => "Fade";
  3078. function Color_To_Integer (
  3079. Data : Color := White
  3080. ) return Integer with
  3081. Import => True,
  3082. Convention => C,
  3083. External_Name => "ColorToInt";
  3084. function Color_Normalize (
  3085. Data : Color := White
  3086. ) return Vector_4D with
  3087. Import => True,
  3088. Convention => C,
  3089. External_Name => "ColorNormalize";
  3090. function Color_From_Normalized (
  3091. Normalized : Vector_4D := (others => 0.0)
  3092. ) return Color with
  3093. Import => True,
  3094. Convention => C,
  3095. External_Name => "ColorFromNormalized";
  3096. function Color_To_HSV (
  3097. Data : Color := White
  3098. ) return Vector_3D with
  3099. Import => True,
  3100. Convention => C,
  3101. External_Name => "ColorToHSV";
  3102. function Color_From_HSV (
  3103. Hue : Float := 0.0;
  3104. Saturation : Float := 0.0;
  3105. Value : Float := 0.0
  3106. ) return Color with
  3107. Import => True,
  3108. Convention => C,
  3109. External_Name => "ColorFromHSV";
  3110. function Color_Tint (
  3111. Data : Color := White;
  3112. Tint : Color := Black
  3113. ) return Color with
  3114. Import => True,
  3115. Convention => C,
  3116. External_Name => "ColorTint";
  3117. function Color_Brightness (
  3118. Data : Color := White;
  3119. Factor : Float := 0.0
  3120. ) return Color with
  3121. Import => True,
  3122. Convention => C,
  3123. External_Name => "ColorBrightness";
  3124. function Color_Contrast (
  3125. Data : Color := White;
  3126. Contrast : Float := 0.0
  3127. ) return Color with
  3128. Import => True,
  3129. Convention => C,
  3130. External_Name => "ColorContrast";
  3131. function Color_Alpha (
  3132. Data : Color := White;
  3133. Alpha : Float := 0.0
  3134. ) return Color with
  3135. Import => True,
  3136. Convention => C,
  3137. External_Name => "ColorAlpha";
  3138. function Color_Alpha_Blend (
  3139. Destination : Color := White;
  3140. Source : Color := Black;
  3141. Tint : Color := Ray_White
  3142. ) return Color with
  3143. Import => True,
  3144. Convention => C,
  3145. External_Name => "ColorAlphaBlend";
  3146. function Get_Color (
  3147. Value : Natural := 0
  3148. ) return Color with
  3149. Import => True,
  3150. Convention => C,
  3151. External_Name => "GetColor";
  3152. function Get_Pixel_Color (
  3153. Source : Pointer := null;
  3154. Format : Integer := 0
  3155. ) return Color with
  3156. Import => True,
  3157. Convention => C,
  3158. External_Name => "GetPixelColor";
  3159. procedure Set_Pixel_Color (
  3160. Destination : Pointer := null;
  3161. Data : Color := White;
  3162. Format : Integer := 0
  3163. ) with
  3164. Import => True,
  3165. Convention => C,
  3166. External_Name => "SetPixelColor";
  3167. function Get_Pixel_Data_Size (
  3168. Width : Natural := 0;
  3169. Height : Natural := 0;
  3170. Format : Integer := 0
  3171. ) return Integer with
  3172. Import => True,
  3173. Convention => C,
  3174. External_Name => "GetPixelDataSize";
  3175. function Get_Font_Default return Font with
  3176. Import => True,
  3177. Convention => C,
  3178. External_Name => "GetFontDefault";
  3179. function Load_Font (
  3180. File_Name : String := ""
  3181. ) return Font with
  3182. Import => True,
  3183. Convention => C,
  3184. External_Name => "LoadFont";
  3185. function Load_Font_Ex (
  3186. File_Name : String := "";
  3187. Font_Size : Integer := 32;
  3188. Code_Points : access Integer := null;
  3189. Code_Point_Count : Natural := 0
  3190. ) return Font with
  3191. Import => True,
  3192. Convention => C,
  3193. External_Name => "LoadFontEx";
  3194. function Load_Font_From_Image (
  3195. Data : Image := No_Image;
  3196. Key : Color := White;
  3197. First_Character : Integer := 0
  3198. ) return Font with
  3199. Import => True,
  3200. Convention => C,
  3201. External_Name => "LoadFontFromImage";
  3202. function Load_Font_From_Memory (
  3203. File_Type : String := "";
  3204. File_Data : Pointer := null;
  3205. Data_Size : Natural := 0;
  3206. Font_Size : Integer := 32;
  3207. Code_Points : access Integer := null;
  3208. Code_Point_Count : Natural := 0
  3209. ) return Font with
  3210. Import => True,
  3211. Convention => C,
  3212. External_Name => "LoadFontFromMemory";
  3213. function Is_Font_Ready (
  3214. Data : Font := No_Font
  3215. ) return Logical with
  3216. Import => True,
  3217. Convention => C,
  3218. External_Name => "IsFontReady";
  3219. function Load_Font_Data (
  3220. File_Data : Pointer := null;
  3221. Data_Size : Natural := 0;
  3222. Font_Size : Integer := 32;
  3223. Code_Points : access Integer := null;
  3224. Code_Point_Count : Natural := 0;
  3225. Kind : Integer := 0
  3226. ) return access Glyph_Info with
  3227. Import => True,
  3228. Convention => C,
  3229. External_Name => "LoadFontData";
  3230. function Gen_Image_Font_Atlas (
  3231. Glyphs : access Glyph_Info := null;
  3232. Glyph_Rectangles : access Rectangle := null;
  3233. Glyph_Count : Integer := 0;
  3234. Font_Size : Integer := 32;
  3235. Padding : Integer := 0;
  3236. Pack_Method : Integer := 0
  3237. ) return Image with
  3238. Import => True,
  3239. Convention => C,
  3240. External_Name => "GenImageFontAtlas";
  3241. procedure Unload_Font_Data (
  3242. Glyphs : access Glyph_Info := null;
  3243. Glyph_Count : Integer := 0
  3244. ) with
  3245. Import => True,
  3246. Convention => C,
  3247. External_Name => "UnloadFontData";
  3248. procedure Unload_Font (
  3249. Data : Font := No_Font
  3250. ) with
  3251. Import => True,
  3252. Convention => C,
  3253. External_Name => "UnloadFont";
  3254. function Export_Font_As_Code (
  3255. Data : Font := No_Font;
  3256. File_Name : String := ""
  3257. ) return Logical with
  3258. Import => True,
  3259. Convention => C,
  3260. External_Name => "ExportFontAsCode";
  3261. procedure Draw_FPS (
  3262. X : Integer := 0;
  3263. Y : Integer := 0
  3264. ) with
  3265. Import => True,
  3266. Convention => C,
  3267. External_Name => "DrawFPS";
  3268. procedure Draw_Text (
  3269. Text : String := "";
  3270. X : Integer := 0;
  3271. Y : Integer := 0;
  3272. Size : Integer := 32;
  3273. Tint : Color := White
  3274. ) with
  3275. Import => True,
  3276. Convention => C,
  3277. External_Name => "DrawText";
  3278. procedure Draw_Text_Ex (
  3279. Data : Font := Get_Font_Default;
  3280. Text : String := "";
  3281. Position : Vector_2D := (others => 0.0);
  3282. Font_Size : Float := 0.0;
  3283. Spacing : Float := 0.0;
  3284. Tint : Color := White
  3285. ) with
  3286. Import => True,
  3287. Convention => C,
  3288. External_Name => "DrawTextEx";
  3289. procedure Draw_Text_Pro (
  3290. Data : Font := Get_Font_Default;
  3291. Text : String := "";
  3292. Position : Vector_2D := (others => 0.0);
  3293. Origin : Vector_2D := (others => 0.0);
  3294. Rotation : Float := 0.0;
  3295. Font_Size : Float := 0.0;
  3296. Spacing : Float := 0.0;
  3297. Tint : Color := White
  3298. ) with
  3299. Import => True,
  3300. Convention => C,
  3301. External_Name => "DrawTextPro";
  3302. procedure Draw_Text_Codepoint (
  3303. Data : Font := Get_Font_Default;
  3304. Code_Point : Integer := 0;
  3305. Position : Vector_2D := (others => 0.0);
  3306. Font_Size : Float := 0.0;
  3307. Tint : Color := White
  3308. ) with
  3309. Import => True,
  3310. Convention => C,
  3311. External_Name => "DrawTextCodepoint";
  3312. procedure Draw_Text_Codepoints (
  3313. Data : Font := Get_Font_Default;
  3314. Code_Points : access Integer := null;
  3315. Code_Point_Count : Integer := 0;
  3316. Position : Vector_2D := (others => 0.0);
  3317. Font_Size : Float := 0.0;
  3318. Spacing : Float := 0.0;
  3319. Tint : Color := White
  3320. ) with
  3321. Import => True,
  3322. Convention => C,
  3323. External_Name => "DrawTextCodepoints";
  3324. procedure Set_Text_Line_Spacing (
  3325. Spacing : Integer := 0
  3326. ) with
  3327. Import => True,
  3328. Convention => C,
  3329. External_Name => "SetTextLineSpacing";
  3330. function Measure_Text (
  3331. Text : String := "";
  3332. Font_Size : Integer := 0
  3333. ) return Integer with
  3334. Import => True,
  3335. Convention => C,
  3336. External_Name => "MeasureText";
  3337. function Measure_Text_Ex (
  3338. Data : Font := Get_Font_Default;
  3339. Text : String := "";
  3340. Font_Size : Float := 0.0;
  3341. Spacing : Float := 0.0
  3342. ) return Vector_2D with
  3343. Import => True,
  3344. Convention => C,
  3345. External_Name => "MeasureTextEx";
  3346. function Get_Glyph_Index (
  3347. Data : Font := Get_Font_Default;
  3348. Code_Point : Integer := 0
  3349. ) return Integer with
  3350. Import => True,
  3351. Convention => C,
  3352. External_Name => "GetGlyphIndex";
  3353. function Get_Glyph_Info (
  3354. Data : Font := Get_Font_Default;
  3355. Code_Point : Integer := 0
  3356. ) return Glyph_Info with
  3357. Import => True,
  3358. Convention => C,
  3359. External_Name => "GetGlyphInfo";
  3360. function Get_Glyph_Atlas_Rec (
  3361. Data : Font := Get_Font_Default;
  3362. Code_Point : Integer := 0
  3363. ) return Rectangle with
  3364. Import => True,
  3365. Convention => C,
  3366. External_Name => "GetGlyphAtlasRec";
  3367. function Load_UTF8 (
  3368. Code_Points : access Integer := null;
  3369. Length : Integer := 0
  3370. ) return access Character with
  3371. Import => True,
  3372. Convention => C,
  3373. External_Name => "LoadUTF8";
  3374. procedure Unload_UTF8 (
  3375. Text : access Character := null
  3376. ) with
  3377. Import => True,
  3378. Convention => C,
  3379. External_Name => "UnloadUTF8";
  3380. function Load_Code_Points (
  3381. Text : String := "";
  3382. Count : access Integer := null
  3383. ) return access Integer with
  3384. Import => True,
  3385. Convention => C,
  3386. External_Name => "LoadCodepoints";
  3387. procedure Unload_Code_Points (
  3388. Code_Points : access Integer := null
  3389. ) with
  3390. Import => True,
  3391. Convention => C,
  3392. External_Name => "UnloadCodepoints";
  3393. function Get_Code_Point_Count (
  3394. Text : String := ""
  3395. ) return Integer with
  3396. Import => True,
  3397. Convention => C,
  3398. External_Name => "GetCodepointCount";
  3399. function Get_Code_Point (
  3400. Text : String := "";
  3401. Code_Point_Size : access Integer := null
  3402. ) return Integer with
  3403. Import => True,
  3404. Convention => C,
  3405. External_Name => "GetCodepoint";
  3406. function Get_Code_Point_Next (
  3407. Text : String := "";
  3408. Code_Point_Size : access Integer := null
  3409. ) return Integer with
  3410. Import => True,
  3411. Convention => C,
  3412. External_Name => "GetCodepointNext";
  3413. function Get_Code_Point_Previous (
  3414. Text : String := "";
  3415. Code_Point_Size : access Integer := null
  3416. ) return Integer with
  3417. Import => True,
  3418. Convention => C,
  3419. External_Name => "GetCodepointPrevious";
  3420. function Code_Point_To_UTF8 (
  3421. Code_Point : Integer := 0;
  3422. UTF8_Size : access Integer := null
  3423. ) return Strings with
  3424. Import => True,
  3425. Convention => C,
  3426. External_Name => "CodepointToUTF8";
  3427. function Text_Copy (
  3428. Destination : Strings := null;
  3429. Source : Strings := null
  3430. ) return Integer with
  3431. Import => True,
  3432. Convention => C,
  3433. External_Name => "TextCopy";
  3434. function Text_Is_Equal (
  3435. Text_1 : Strings := null;
  3436. Text_2 : Strings := null
  3437. ) return Logical with
  3438. Import => True,
  3439. Convention => C,
  3440. External_Name => "TextIsEqual";
  3441. function Text_Length (
  3442. Text : String := ""
  3443. ) return Natural with
  3444. Import => True,
  3445. Convention => C,
  3446. External_Name => "TextLength";
  3447. --~function Text_Format (
  3448. --~Text : String := "";
  3449. --~...
  3450. --~) return Strings with
  3451. --~Import => True,
  3452. --~Convention => C,
  3453. --~External_Name => "TextFormat";
  3454. function Text_Subtext (
  3455. Text : String := "";
  3456. Position : Integer := 0;
  3457. Length : Integer := 0
  3458. ) return Strings with
  3459. Import => True,
  3460. Convention => C,
  3461. External_Name => "TextSubtext";
  3462. function Text_Replace (
  3463. Text : Strings := null;
  3464. Replace : String := "";
  3465. By : String := ""
  3466. ) return Strings with
  3467. Import => True,
  3468. Convention => C,
  3469. External_Name => "TextReplace";
  3470. function Text_Insert (
  3471. Text : String := "";
  3472. Insert : String := "";
  3473. Position : Integer := 0
  3474. ) return Strings with
  3475. Import => True,
  3476. Convention => C,
  3477. External_Name => "TextInsert";
  3478. function Text_Join (
  3479. Text : Strings := null;
  3480. Count : Integer := 0;
  3481. Delimiter : String := ""
  3482. ) return Strings with
  3483. Import => True,
  3484. Convention => C,
  3485. External_Name => "TextJoin";
  3486. function Text_Split (
  3487. Text : String := "";
  3488. Delimiter : Character := ' ';
  3489. Count : access Integer := null
  3490. ) return Strings with
  3491. Import => True,
  3492. Convention => C,
  3493. External_Name => "TextSplit";
  3494. procedure Text_Append (
  3495. Text : Strings := null;
  3496. Append : String := "";
  3497. Position : access Integer := null
  3498. ) with
  3499. Import => True,
  3500. Convention => C,
  3501. External_Name => "TextAppend";
  3502. function Text_Find_Index (
  3503. Text : String := "";
  3504. Find : String := ""
  3505. ) return Integer with
  3506. Import => True,
  3507. Convention => C,
  3508. External_Name => "TextFindIndex";
  3509. function Text_To_Upper (
  3510. Text : String := ""
  3511. ) return Strings with
  3512. Import => True,
  3513. Convention => C,
  3514. External_Name => "TextToUpper";
  3515. function Text_To_Lower (
  3516. Text : String := ""
  3517. ) return Strings with
  3518. Import => True,
  3519. Convention => C,
  3520. External_Name => "TextToLower";
  3521. function Text_To_Pascal (
  3522. Text : String := ""
  3523. ) return Strings with
  3524. Import => True,
  3525. Convention => C,
  3526. External_Name => "TextToPascal";
  3527. function Text_To_Integer (
  3528. Text : String := ""
  3529. ) return Integer with
  3530. Import => True,
  3531. Convention => C,
  3532. External_Name => "TextToInteger";
  3533. procedure Draw_Line_3D (
  3534. From : Vector_3D := (others => 0.0);
  3535. To : Vector_3D := (others => 0.0);
  3536. Tint : Color := Black
  3537. ) with
  3538. Import => True,
  3539. Convention => C,
  3540. External_Name => "DrawLine3D";
  3541. procedure Draw_Point_3D (
  3542. Position : Vector_3D := (others => 0.0);
  3543. Tint : Color := Black
  3544. ) with
  3545. Import => True,
  3546. Convention => C,
  3547. External_Name => "DrawPoint3D";
  3548. procedure Draw_Circle_3D (
  3549. Center : Vector_3D := (others => 0.0);
  3550. Radius : Float := 0.0;
  3551. Rotation_Axis : Vector_3D := (others => 0.0);
  3552. Rotation_Angle : Float := 0.0;
  3553. Tint : Color := Black
  3554. ) with
  3555. Import => True,
  3556. Convention => C,
  3557. External_Name => "DrawCircle3D";
  3558. procedure Draw_Triangle_3D (
  3559. Point_1 : Vector_3D := (others => 0.0);
  3560. Point_2 : Vector_3D := (others => 0.0);
  3561. Point_3 : Vector_3D := (others => 0.0);
  3562. Tint : Color := Black
  3563. ) with
  3564. Import => True,
  3565. Convention => C,
  3566. External_Name => "DrawTriangle3D";
  3567. procedure Draw_Triangle_Strip_3D (
  3568. Points : access Vector_3D := null;
  3569. Point_Count : Integer := 0;
  3570. Tint : Color := Black
  3571. ) with
  3572. Import => True,
  3573. Convention => C,
  3574. External_Name => "DrawTriangleStrip3D";
  3575. procedure Draw_Cube (
  3576. Position : Vector_3D := (others => 0.0);
  3577. Width : Float := 0.0;
  3578. Height : Float := 0.0;
  3579. Length : Float := 0.0;
  3580. Tint : Color := White
  3581. ) with
  3582. Import => True,
  3583. Convention => C,
  3584. External_Name => "DrawCube";
  3585. procedure Draw_Cube_V (
  3586. Position : Vector_3D := (others => 0.0);
  3587. Size : Vector_3D := (others => 0.0);
  3588. Tint : Color := White
  3589. ) with
  3590. Import => True,
  3591. Convention => C,
  3592. External_Name => "DrawCubeV";
  3593. procedure Draw_Cube_Wires (
  3594. Position : Vector_3D := (others => 0.0);
  3595. Width : Float := 0.0;
  3596. Height : Float := 0.0;
  3597. Length : Float := 0.0;
  3598. Tint : Color := Black
  3599. ) with
  3600. Import => True,
  3601. Convention => C,
  3602. External_Name => "DrawCubeWires";
  3603. procedure Draw_Cube_Wires_V (
  3604. Position : Vector_3D := (others => 0.0);
  3605. Size : Vector_3D := (others => 0.0);
  3606. Tint : Color := White
  3607. ) with
  3608. Import => True,
  3609. Convention => C,
  3610. External_Name => "DrawCubeWiresV";
  3611. procedure Draw_Sphere (
  3612. Center : Vector_3D := (others => 0.0);
  3613. Radius : Float := 0.0;
  3614. Tint : Color := White
  3615. ) with
  3616. Import => True,
  3617. Convention => C,
  3618. External_Name => "DrawSphere";
  3619. procedure Draw_Sphere_Ex (
  3620. Center : Vector_3D := (others => 0.0);
  3621. Radius : Float := 0.0;
  3622. Rings : Integer := 0;
  3623. Slices : Integer := 0;
  3624. Tint : Color := White
  3625. ) with
  3626. Import => True,
  3627. Convention => C,
  3628. External_Name => "DrawSphereEx";
  3629. procedure Draw_Sphere_Wires (
  3630. Center : Vector_3D := (others => 0.0);
  3631. Radius : Float := 0.0;
  3632. Rings : Integer := 0;
  3633. Slices : Integer := 0;
  3634. Tint : Color := White
  3635. ) with
  3636. Import => True,
  3637. Convention => C,
  3638. External_Name => "DrawSphereWires";
  3639. procedure Draw_Cylinder (
  3640. Position : Vector_3D := (others => 0.0);
  3641. Radius_Top : Float := 0.0;
  3642. Radius_Bottom : Float := 0.0;
  3643. Height : Float := 0.0;
  3644. Slices : Natural := 0;
  3645. Tint : Color := White
  3646. ) with
  3647. Import => True,
  3648. Convention => C,
  3649. External_Name => "DrawCylinder";
  3650. procedure Draw_Cylinder_Ex (
  3651. From : Vector_3D := (others => 0.0);
  3652. To : Vector_3D := (others => 0.0);
  3653. From_Radius : Float := 0.0;
  3654. To_Radius : Float := 0.0;
  3655. Sides : Natural := 0;
  3656. Tint : Color := White
  3657. ) with
  3658. Import => True,
  3659. Convention => C,
  3660. External_Name => "DrawCylinderEx";
  3661. procedure Draw_Cylinder_Wires (
  3662. Position : Vector_3D := (others => 0.0);
  3663. Radius_Top : Float := 0.0;
  3664. Radius_Bottom : Float := 0.0;
  3665. Height : Float := 0.0;
  3666. Slices : Natural := 0;
  3667. Tint : Color := White
  3668. ) with
  3669. Import => True,
  3670. Convention => C,
  3671. External_Name => "DrawCylinderWires";
  3672. procedure Draw_Cylinder_Wires_Ex (
  3673. From : Vector_3D := (others => 0.0);
  3674. To : Vector_3D := (others => 0.0);
  3675. From_Radius : Float := 0.0;
  3676. To_Radius : Float := 0.0;
  3677. Sides : Natural := 0;
  3678. Tint : Color := White
  3679. ) with
  3680. Import => True,
  3681. Convention => C,
  3682. External_Name => "DrawCylinderWiresEx";
  3683. procedure Draw_Capsule (
  3684. From : Vector_3D := (others => 0.0);
  3685. To : Vector_3D := (others => 0.0);
  3686. Radius : Float := 0.0;
  3687. Slices : Natural := 0;
  3688. Rings : Natural := 0;
  3689. Tint : Color := White
  3690. ) with
  3691. Import => True,
  3692. Convention => C,
  3693. External_Name => "DrawCapsule";
  3694. procedure Draw_Capsule_Wires (
  3695. From : Vector_3D := (others => 0.0);
  3696. To : Vector_3D := (others => 0.0);
  3697. Radius : Float := 0.0;
  3698. Slices : Natural := 0;
  3699. Rings : Natural := 0;
  3700. Tint : Color := White
  3701. ) with
  3702. Import => True,
  3703. Convention => C,
  3704. External_Name => "DrawCapsuleWires";
  3705. procedure Draw_Plane (
  3706. Center : Vector_3D := (others => 0.0);
  3707. Size : Vector_2D := (others => 0.0);
  3708. Tint : Color := White
  3709. ) with
  3710. Import => True,
  3711. Convention => C,
  3712. External_Name => "DrawPlane";
  3713. procedure Draw_Ray (
  3714. Data : Ray := No_Ray;
  3715. Tint : Color := White
  3716. ) with
  3717. Import => True,
  3718. Convention => C,
  3719. External_Name => "DrawRay";
  3720. procedure Draw_Grid (
  3721. Slices : Integer := 0;
  3722. Spacing : Float := 0.0
  3723. ) with
  3724. Import => True,
  3725. Convention => C,
  3726. External_Name => "DrawGrid";
  3727. function Load_Model (
  3728. File_Name : String := ""
  3729. ) return Model with
  3730. Import => True,
  3731. Convention => C,
  3732. External_Name => "LoadModel";
  3733. function Load_Model_From_Mesh (
  3734. Data : Mesh := No_Mesh
  3735. ) return Model with
  3736. Import => True,
  3737. Convention => C,
  3738. External_Name => "LoadModelFromMesh";
  3739. function Is_Model_Ready (
  3740. Data : Model := No_Model
  3741. ) return Logical with
  3742. Import => True,
  3743. Convention => C,
  3744. External_Name => "IsModelReady";
  3745. procedure Unload_Model (
  3746. Data : Model := No_Model
  3747. ) with
  3748. Import => True,
  3749. Convention => C,
  3750. External_Name => "UnloadModel";
  3751. function GetModelBoundingBox (
  3752. Data : Model := No_Model
  3753. ) return Bounding_Box with
  3754. Import => True,
  3755. Convention => C,
  3756. External_Name => "GetModelBoundingBox";
  3757. procedure Draw_Model (
  3758. Data : Model := No_Model;
  3759. Position : Vector_3D := (others => 0.0);
  3760. Scale : Float := 1.0;
  3761. Tint : Color := White
  3762. ) with
  3763. Import => True,
  3764. Convention => C,
  3765. External_Name => "DrawModel";
  3766. procedure Draw_Model_Ex (
  3767. Data : Model := No_Model;
  3768. Position : Vector_3D := (others => 0.0);
  3769. Axis : Vector_3D := (others => 0.0);
  3770. Angle : Float := 0.0;
  3771. Scale : Vector_3D := (1.0, 1.0, 1.0);
  3772. Tint : Color := White
  3773. ) with
  3774. Import => True,
  3775. Convention => C,
  3776. External_Name => "DrawModelEx";
  3777. procedure Draw_Model_Wires (
  3778. Data : Model := No_Model;
  3779. Position : Vector_3D := (others => 0.0);
  3780. Scale : Float := 0.0;
  3781. Tint : Color := White
  3782. ) with
  3783. Import => True,
  3784. Convention => C,
  3785. External_Name => "DrawModelWires";
  3786. procedure Draw_Model_Wires_Ex (
  3787. Data : Model := No_Model;
  3788. Position : Vector_3D := (others => 0.0);
  3789. Axis : Vector_3D := (others => 0.0);
  3790. Angle : Float := 0.0;
  3791. Scale : Vector_3D := (1.0, 1.0, 1.0);
  3792. Tint : Color := White
  3793. ) with
  3794. Import => True,
  3795. Convention => C,
  3796. External_Name => "DrawModelWiresEx";
  3797. procedure Draw_Bounding_Box (
  3798. Box : Bounding_Box := No_Bounding_Box;
  3799. Tint : Color := White
  3800. ) with
  3801. Import => True,
  3802. Convention => C,
  3803. External_Name => "DrawBoundingBox";
  3804. procedure Draw_Billboard (
  3805. Camera : Camera_3D := No_Camera_3D;
  3806. Billboard : Texture := No_Texture;
  3807. Position : Vector_3D := (others => 0.0);
  3808. Size : Float := 0.0;
  3809. Tint : Color := White
  3810. ) with
  3811. Import => True,
  3812. Convention => C,
  3813. External_Name => "DrawBillboard";
  3814. procedure Draw_Billboard_Rec (
  3815. Camera : Camera_3D := No_Camera_3D;
  3816. Billboard : Texture := No_Texture;
  3817. Source : Rectangle := No_Rectangle;
  3818. Position : Vector_3D := (others => 0.0);
  3819. Size : Vector_2D := (others => 0.0);
  3820. Tint : Color := White
  3821. ) with
  3822. Import => True,
  3823. Convention => C,
  3824. External_Name => "DrawBillboardRec";
  3825. procedure Draw_Billboard_Pro (
  3826. Camera : Camera_3D := No_Camera_3D;
  3827. Billboard : Texture := No_Texture;
  3828. Source : Rectangle := No_Rectangle;
  3829. Position : Vector_3D := (others => 0.0);
  3830. Up : Vector_3D := (others => 0.0);
  3831. Size : Vector_2D := (others => 0.0);
  3832. Origin : Vector_2D := (others => 0.0);
  3833. Rotation : Float := 0.0;
  3834. Tint : Color := White
  3835. ) with
  3836. Import => True,
  3837. Convention => C,
  3838. External_Name => "DrawBillboardPro";
  3839. procedure Upload_Mesh (
  3840. Data : access Mesh := null;
  3841. Dynamic : Logical := False
  3842. ) with
  3843. Import => True,
  3844. Convention => C,
  3845. External_Name => "UploadMesh";
  3846. procedure Update_Mesh_Buffer (
  3847. Data : Mesh := No_Mesh;
  3848. Index : Integer := 0;
  3849. This : Pointer := null;
  3850. Data_Size : Natural := 0;
  3851. Offset : Integer := 0
  3852. ) with
  3853. Import => True,
  3854. Convention => C,
  3855. External_Name => "UpdateMeshBuffer";
  3856. procedure Unload_Mesh (
  3857. Data : Mesh := No_Mesh
  3858. ) with
  3859. Import => True,
  3860. Convention => C,
  3861. External_Name => "UnloadMesh";
  3862. procedure Draw_Mesh (
  3863. Data : Mesh := No_Mesh;
  3864. Pixels : Material := No_Material;
  3865. Transform : Matrix_4D := (others => 0.0)
  3866. ) with
  3867. Import => True,
  3868. Convention => C,
  3869. External_Name => "DrawMesh";
  3870. procedure Draw_Mesh_Instanced (
  3871. Data : Mesh := No_Mesh;
  3872. Use_Material : Material := No_Material;
  3873. Transforms : access Matrix_4D := null;
  3874. Instances : Integer := 0
  3875. ) with
  3876. Import => True,
  3877. Convention => C,
  3878. External_Name => "DrawMeshInstanced";
  3879. function Get_Mesh_Bounding_Box (
  3880. Data : Mesh := No_Mesh
  3881. ) return Bounding_Box with
  3882. Import => True,
  3883. Convention => C,
  3884. External_Name => "GetMeshBoundingBox";
  3885. procedure Gen_Mesh_Tangents (
  3886. Data : access Mesh := null
  3887. ) with
  3888. Import => True,
  3889. Convention => C,
  3890. External_Name => "GenMeshTangents";
  3891. function Export_Mesh (
  3892. Data : Mesh := No_Mesh;
  3893. File_Name : String := ""
  3894. ) return Logical with
  3895. Import => True,
  3896. Convention => C,
  3897. External_Name => "ExportMesh";
  3898. function Export_Mesh_As_Code (
  3899. Data : Mesh := No_Mesh;
  3900. File_Name : String := ""
  3901. ) return Logical with
  3902. Import => True,
  3903. Convention => C,
  3904. External_Name => "ExportMeshAsCode";
  3905. function Gen_Mesh_Poly (
  3906. Sides : Integer := 0;
  3907. Radius : Float := 0.0
  3908. ) return Mesh with
  3909. Import => True,
  3910. Convention => C,
  3911. External_Name => "GenMeshPoly";
  3912. function Gen_Mesh_Plane (
  3913. Width : Float := 1.0;
  3914. Height : Float := 1.0;
  3915. X : Integer := 1;
  3916. Z : Integer := 1
  3917. ) return Mesh with
  3918. Import => True,
  3919. Convention => C,
  3920. External_Name => "GenMeshPlane";
  3921. function Gen_Mesh_Cube (
  3922. Width : Float := 0.0;
  3923. Height : Float := 0.0;
  3924. Length : Float := 0.0
  3925. ) return Mesh with
  3926. Import => True,
  3927. Convention => C,
  3928. External_Name => "GenMeshCube";
  3929. function Gen_Mesh_Sphere (
  3930. Radius : Float := 0.0;
  3931. Rings : Integer := 0;
  3932. Slices : Integer := 0
  3933. ) return Mesh with
  3934. Import => True,
  3935. Convention => C,
  3936. External_Name => "GenMeshSphere";
  3937. function Gen_Mesh_Hemisphere (
  3938. Radius : Float := 0.0;
  3939. Rings : Integer := 0;
  3940. Slices : Integer := 0
  3941. ) return Mesh with
  3942. Import => True,
  3943. Convention => C,
  3944. External_Name => "GenMeshHemiSphere";
  3945. function Gen_Mesh_Cylinder (
  3946. Radius : Float := 0.0;
  3947. Height : Float := 0.0;
  3948. Slices : Integer := 0
  3949. ) return Mesh with
  3950. Import => True,
  3951. Convention => C,
  3952. External_Name => "GenMeshCylinder";
  3953. function Gen_Mesh_Cone (
  3954. Radius : Float := 0.0;
  3955. Height : Float := 0.0;
  3956. Slices : Integer := 0
  3957. ) return Mesh with
  3958. Import => True,
  3959. Convention => C,
  3960. External_Name => "GenMeshCone";
  3961. function Gen_Mesh_Torus (
  3962. Radius : Float := 0.0;
  3963. Size : Float := 0.0;
  3964. Segments : Integer := 0;
  3965. Sides : Integer := 0
  3966. ) return Mesh with
  3967. Import => True,
  3968. Convention => C,
  3969. External_Name => "GenMeshTorus";
  3970. function Gen_Mesh_Knot (
  3971. Radius : Float := 0.0;
  3972. Size : Float := 0.0;
  3973. Segments : Integer := 0;
  3974. Sides : Integer := 0
  3975. ) return Mesh with
  3976. Import => True,
  3977. Convention => C,
  3978. External_Name => "GenMeshKnot";
  3979. function Gen_Mesh_Height_Map (
  3980. Height_Map : Image := No_Image;
  3981. Size : Vector_3D := (others => 0.0)
  3982. ) return Mesh with
  3983. Import => True,
  3984. Convention => C,
  3985. External_Name => "GenMeshHeightmap";
  3986. function Gen_Mesh_Cubic_Map (
  3987. Cubic_Map : Image := No_Image;
  3988. Size : Vector_3D := (others => 0.0)
  3989. ) return Mesh with
  3990. Import => True,
  3991. Convention => C,
  3992. External_Name => "GenMeshCubicmap";
  3993. function Load_Materials (
  3994. File_Name : String := "";
  3995. Counts : access Integer := null
  3996. ) return access Material with
  3997. Import => True,
  3998. Convention => C,
  3999. External_Name => "LoadMaterials";
  4000. function Load_Material_Default return Material with
  4001. Import => True,
  4002. Convention => C,
  4003. External_Name => "LoadMaterialDefault";
  4004. function Is_Material_Ready (
  4005. Data : Material := No_Material
  4006. ) return Logical with
  4007. Import => True,
  4008. Convention => C,
  4009. External_Name => "IsMaterialReady";
  4010. procedure Unload_Material (
  4011. Data : Material := No_Material
  4012. ) with
  4013. Import => True,
  4014. Convention => C,
  4015. External_Name => "UnloadMaterial";
  4016. procedure Set_Material_Texture (
  4017. Data : access Material := null;
  4018. Kind : Material_Map_Index := Material_Map_Height;
  4019. This : Texture := No_Texture
  4020. ) with
  4021. Import => True,
  4022. Convention => C,
  4023. External_Name => "SetMaterialTexture";
  4024. procedure Set_Model_Mesh_Material (
  4025. Data : access Model := null;
  4026. Mesh_Id : Integer := 0;
  4027. Material_Id : Integer := 0
  4028. ) with
  4029. Import => True,
  4030. Convention => C,
  4031. External_Name => "SetModelMeshMaterial";
  4032. function Load_Model_Animations (
  4033. File_Name : String := "";
  4034. Counts : access Integer := null
  4035. ) return access Model_Animation with
  4036. Import => True,
  4037. Convention => C,
  4038. External_Name => "LoadModelAnimations";
  4039. procedure Update_Model_Animation (
  4040. Data : Model := No_Model;
  4041. Animation : Model_Animation := No_Model_Animation;
  4042. Frame : Integer := 0
  4043. ) with
  4044. Import => True,
  4045. Convention => C,
  4046. External_Name => "UpdateModelAnimation";
  4047. procedure Unload_Model_Animation (
  4048. Animation : Model_Animation := No_Model_Animation
  4049. ) with
  4050. Import => True,
  4051. Convention => C,
  4052. External_Name => "UnloadModelAnimation";
  4053. procedure Unload_Model_Animations (
  4054. Animations : access Model_Animation := null;
  4055. Animation_Count : Natural := 0
  4056. ) with
  4057. Import => True,
  4058. Convention => C,
  4059. External_Name => "UnloadModelAnimations";
  4060. function Is_Model_Animation_Valid (
  4061. Data : Model := No_Model;
  4062. Animation : Model_Animation := No_Model_Animation
  4063. ) return Logical with
  4064. Import => True,
  4065. Convention => C,
  4066. External_Name => "IsModelAnimationValid";
  4067. function Check_Collision_Spheres (
  4068. Center_1 : Vector_3D := (others => 0.0);
  4069. Radius_1 : Float := 0.0;
  4070. Center_2 : Vector_3D := (others => 0.0);
  4071. Radius_2 : Float := 0.0
  4072. ) return Logical with
  4073. Import => True,
  4074. Convention => C,
  4075. External_Name => "CheckCollisionSpheres";
  4076. function Check_Collision_Boxes (
  4077. Box_1 : Bounding_Box := No_Bounding_Box;
  4078. Box_2 : Bounding_Box := No_Bounding_Box
  4079. ) return Logical with
  4080. Import => True,
  4081. Convention => C,
  4082. External_Name => "CheckCollisionBoxes";
  4083. function Check_Collision_Box_Sphere (
  4084. Box : Bounding_Box := No_Bounding_Box;
  4085. Center : Vector_3D := (others => 0.0);
  4086. Radius : Float := 0.0
  4087. ) return Logical with
  4088. Import => True,
  4089. Convention => C,
  4090. External_Name => "CheckCollisionBoxSphere";
  4091. function Get_Ray_Collision_Sphere (
  4092. Hit : Ray := No_Ray;
  4093. Center : Vector_3D := (others => 0.0);
  4094. Radius : Float := 0.0
  4095. ) return Ray_Collision with
  4096. Import => True,
  4097. Convention => C,
  4098. External_Name => "GetRayCollisionSphere";
  4099. function Get_Ray_Collision_Box (
  4100. Hit : Ray := No_Ray;
  4101. Box : Bounding_Box := No_Bounding_Box
  4102. ) return Ray_Collision with
  4103. Import => True,
  4104. Convention => C,
  4105. External_Name => "GetRayCollisionBox";
  4106. function Get_Ray_Collision_Mesh (
  4107. Hit : Ray := No_Ray;
  4108. Data : Mesh := No_Mesh;
  4109. Transform : Matrix_4D := Id_Matrix
  4110. ) return Ray_Collision with
  4111. Import => True,
  4112. Convention => C,
  4113. External_Name => "GetRayCollisionMesh";
  4114. function Get_Ray_Collision_Triangle (
  4115. Hit : Ray := No_Ray;
  4116. Point_1 : Vector_3D := (others => 0.0);
  4117. Point_2 : Vector_3D := (others => 0.0);
  4118. Point_3 : Vector_3D := (others => 0.0)
  4119. ) return Ray_Collision with
  4120. Import => True,
  4121. Convention => C,
  4122. External_Name => "GetRayCollisionTriangle";
  4123. function Get_Ray_Collision_Quad (
  4124. Hit : Ray := No_Ray;
  4125. Point_1 : Vector_3D := (others => 0.0);
  4126. Point_2 : Vector_3D := (others => 0.0);
  4127. Point_3 : Vector_3D := (others => 0.0);
  4128. Point_4 : Vector_3D := (others => 0.0)
  4129. ) return Ray_Collision with
  4130. Import => True,
  4131. Convention => C,
  4132. External_Name => "GetRayCollisionQuad";
  4133. procedure Open_Audio_Device with
  4134. Import => True,
  4135. Convention => C,
  4136. External_Name => "InitAudioDevice";
  4137. procedure Close_Audio_Device with
  4138. Import => True,
  4139. Convention => C,
  4140. External_Name => "CloseAudioDevice";
  4141. function Is_Audio_Device_Ready return Logical with
  4142. Import => True,
  4143. Convention => C,
  4144. External_Name => "IsAudioDeviceReady";
  4145. procedure Set_Master_Volume (
  4146. Volume : Float := 1.0
  4147. ) with
  4148. Import => True,
  4149. Convention => C,
  4150. External_Name => "SetMasterVolume";
  4151. function Get_Master_Volume return Float with
  4152. Import => True,
  4153. Convention => C,
  4154. External_Name => "GetMasterVolume";
  4155. function Load_Wave (
  4156. File_Name : String := ""
  4157. ) return Wave with
  4158. Import => True,
  4159. Convention => C,
  4160. External_Name => "LoadWave";
  4161. function Load_Wave_From_Memory (
  4162. File_Type : String := "";
  4163. File_Data : Pointer := null;
  4164. Data_Size : Natural := 0
  4165. ) return Wave with
  4166. Import => True,
  4167. Convention => C,
  4168. External_Name => "LoadWaveFromMemory";
  4169. function Is_Wave_Ready (
  4170. Data : Wave := No_Wave
  4171. ) return Logical with
  4172. Import => True,
  4173. Convention => C,
  4174. External_Name => "IsWaveReady";
  4175. function Load_Sound (
  4176. File_Name : String := ""
  4177. ) return Sound with
  4178. Import => True,
  4179. Convention => C,
  4180. External_Name => "LoadSound";
  4181. function Load_Sound_From_Wave (
  4182. Data : Wave := No_Wave
  4183. ) return Sound with
  4184. Import => True,
  4185. Convention => C,
  4186. External_Name => "LoadSoundFromWave";
  4187. function Load_Sound_Alias (
  4188. Source : Sound := No_Sound
  4189. ) return Sound with
  4190. Import => True,
  4191. Convention => C,
  4192. External_Name => "LoadSoundAlias";
  4193. function Is_Sound_Ready (
  4194. Source : Sound := No_Sound
  4195. ) return Logical with
  4196. Import => True,
  4197. Convention => C,
  4198. External_Name => "IsSoundReady";
  4199. procedure Update_Sound (
  4200. Source : Sound := No_Sound;
  4201. Data : Pointer := null;
  4202. Sample_Count : Integer := 0
  4203. ) with
  4204. Import => True,
  4205. Convention => C,
  4206. External_Name => "UpdateSound";
  4207. procedure Unload_Wave (
  4208. Data : Wave := No_Wave
  4209. ) with
  4210. Import => True,
  4211. Convention => C,
  4212. External_Name => "UnloadWave";
  4213. procedure Unload_Sound (
  4214. Data : Sound := No_Sound
  4215. ) with
  4216. Import => True,
  4217. Convention => C,
  4218. External_Name => "UnloadSound";
  4219. procedure Unload_Sound_Alias (
  4220. Alias : Sound := No_Sound
  4221. ) with
  4222. Import => True,
  4223. Convention => C,
  4224. External_Name => "UnloadSoundAlias";
  4225. function Export_Wave (
  4226. Data : Wave := No_Wave;
  4227. File_Name : String := ""
  4228. ) return Logical with
  4229. Import => True,
  4230. Convention => C,
  4231. External_Name => "ExportWave";
  4232. function Export_Wave_As_Code (
  4233. Data : Wave := No_Wave;
  4234. File_Name : String := ""
  4235. ) return Logical with
  4236. Import => True,
  4237. Convention => C,
  4238. External_Name => "ExportWaveAsCode";
  4239. procedure Play_Sound (
  4240. Data : Sound := No_Sound
  4241. ) with
  4242. Import => True,
  4243. Convention => C,
  4244. External_Name => "PlaySound";
  4245. procedure Stop_Sound (
  4246. Data : Sound := No_Sound
  4247. ) with
  4248. Import => True,
  4249. Convention => C,
  4250. External_Name => "StopSound";
  4251. procedure Pause_Sound (
  4252. Data : Sound := No_Sound
  4253. ) with
  4254. Import => True,
  4255. Convention => C,
  4256. External_Name => "PauseSound";
  4257. procedure Resume_Sound (
  4258. Data : Sound := No_Sound
  4259. ) with
  4260. Import => True,
  4261. Convention => C,
  4262. External_Name => "ResumeSound";
  4263. function Is_Sound_Playing (
  4264. Data : Sound := No_Sound
  4265. ) return Logical with
  4266. Import => True,
  4267. Convention => C,
  4268. External_Name => "IsSoundPlaying";
  4269. procedure Set_Sound_Volume (
  4270. Data : Sound := No_Sound;
  4271. Volume : Float := 0.0
  4272. ) with
  4273. Import => True,
  4274. Convention => C,
  4275. External_Name => "SetSoundVolume";
  4276. procedure Set_Sound_Pitch (
  4277. Data : Sound := No_Sound;
  4278. Pitch : Float := 0.0
  4279. ) with
  4280. Import => True,
  4281. Convention => C,
  4282. External_Name => "SetSoundPitch";
  4283. procedure Set_Sound_Pan (
  4284. Data : Sound := No_Sound;
  4285. Pan : Float := 0.0
  4286. ) with
  4287. Import => True,
  4288. Convention => C,
  4289. External_Name => "SetSoundPan";
  4290. function Wave_Copy (
  4291. Data : Wave := No_Wave
  4292. ) return Wave with
  4293. Import => True,
  4294. Convention => C,
  4295. External_Name => "WaveCopy";
  4296. procedure Wave_Crop (
  4297. Data : access Wave := null;
  4298. First_Sample : Integer := 0;
  4299. Final_Sample : Integer := 0
  4300. ) with
  4301. Import => True,
  4302. Convention => C,
  4303. External_Name => "WaveCrop";
  4304. procedure Wave_Format (
  4305. Data : access Wave := null;
  4306. Sample_Rate : Integer := 0;
  4307. Sample_Size : Integer := 0;
  4308. Channels : Integer := 0
  4309. ) with
  4310. Import => True,
  4311. Convention => C,
  4312. External_Name => "WaveFormat";
  4313. function Load_Wave_Samples (
  4314. Data : Wave := No_Wave
  4315. ) return access Float with
  4316. Import => True,
  4317. Convention => C,
  4318. External_Name => "LoadWaveSamples";
  4319. procedure Unload_Wave_Samples (
  4320. Samples : access Float := null
  4321. ) with
  4322. Import => True,
  4323. Convention => C,
  4324. External_Name => "UnloadWaveSamples";
  4325. function Load_Music_Stream (
  4326. File_Name : String := ""
  4327. ) return Music with
  4328. Import => True,
  4329. Convention => C,
  4330. External_Name => "LoadMusicStream";
  4331. function Load_Music_Stream_From_Memory (
  4332. File_Type : String := "";
  4333. Data : Pointer := null;
  4334. Data_Size : Integer := 0
  4335. ) return Music with
  4336. Import => True,
  4337. Convention => C,
  4338. External_Name => "LoadMusicStreamFromMemory";
  4339. function Is_Music_Ready (
  4340. Data : Music := No_Music
  4341. ) return Logical with
  4342. Import => True,
  4343. Convention => C,
  4344. External_Name => "IsMusicReady";
  4345. procedure Unload_Music_Stream (
  4346. Data : Music := No_Music
  4347. ) with
  4348. Import => True,
  4349. Convention => C,
  4350. External_Name => "UnloadMusicStream";
  4351. procedure Play_Music_Stream (
  4352. Data : Music := No_Music
  4353. ) with
  4354. Import => True,
  4355. Convention => C,
  4356. External_Name => "PlayMusicStream";
  4357. function Is_Music_Stream_Playing (
  4358. Data : Music := No_Music
  4359. ) return Logical with
  4360. Import => True,
  4361. Convention => C,
  4362. External_Name => "IsMusicStreamPlaying";
  4363. procedure Update_Music_Stream (
  4364. Data : Music := No_Music
  4365. ) with
  4366. Import => True,
  4367. Convention => C,
  4368. External_Name => "UpdateMusicStream";
  4369. procedure Stop_Music_Stream (
  4370. Data : Music := No_Music
  4371. ) with
  4372. Import => True,
  4373. Convention => C,
  4374. External_Name => "StopMusicStream";
  4375. procedure Pause_Music_Stream (
  4376. Data : Music := No_Music
  4377. ) with
  4378. Import => True,
  4379. Convention => C,
  4380. External_Name => "PauseMusicStream";
  4381. procedure Resume_Music_Stream (
  4382. Data : Music := No_Music
  4383. ) with
  4384. Import => True,
  4385. Convention => C,
  4386. External_Name => "ResumeMusicStream";
  4387. procedure Seek_Music_Stream (
  4388. Data : Music := No_Music;
  4389. Position : Float := 0.0
  4390. ) with
  4391. Import => True,
  4392. Convention => C,
  4393. External_Name => "SeekMusicStream";
  4394. procedure Set_Music_Volume (
  4395. Data : Music := No_Music;
  4396. Volume : Float := 0.0
  4397. ) with
  4398. Import => True,
  4399. Convention => C,
  4400. External_Name => "SetMusicVolume";
  4401. procedure Set_Music_Pitch (
  4402. Data : Music := No_Music;
  4403. Pitch : Float := 0.0
  4404. ) with
  4405. Import => True,
  4406. Convention => C,
  4407. External_Name => "SetMusicPitch";
  4408. procedure Set_Music_Pan (
  4409. Data : Music := No_Music;
  4410. Pan : Float := 0.0
  4411. ) with
  4412. Import => True,
  4413. Convention => C,
  4414. External_Name => "SetMusicPan";
  4415. function Get_Music_Time_Length (
  4416. Data : Music := No_Music
  4417. ) return Float with
  4418. Import => True,
  4419. Convention => C,
  4420. External_Name => "GetMusicTimeLength";
  4421. function Get_Music_Time_Played (
  4422. Data : Music := No_Music
  4423. ) return Float with
  4424. Import => True,
  4425. Convention => C,
  4426. External_Name => "GetMusicTimePlayed";
  4427. function Load_Audio_Stream (
  4428. Sample_Rate : Natural := 0;
  4429. Sample_Size : Natural := 0;
  4430. Channels : Natural := 0
  4431. ) return Audio_Stream with
  4432. Import => True,
  4433. Convention => C,
  4434. External_Name => "LoadAudioStream";
  4435. function Is_Audio_Stream_Ready (
  4436. Data : Audio_Stream := No_Audio_Stream
  4437. ) return Logical with
  4438. Import => True,
  4439. Convention => C,
  4440. External_Name => "IsAudioStreamReady";
  4441. procedure Unload_Audio_Stream (
  4442. Data : Audio_Stream := No_Audio_Stream
  4443. ) with
  4444. Import => True,
  4445. Convention => C,
  4446. External_Name => "UnloadAudioStream";
  4447. procedure Update_Audio_Stream (
  4448. Data : Audio_Stream := No_Audio_Stream;
  4449. Raw_Data : Pointer := null;
  4450. Frame_Count : Integer := 0
  4451. ) with
  4452. Import => True,
  4453. Convention => C,
  4454. External_Name => "UpdateAudioStream";
  4455. function Is_Audio_Stream_Processed (
  4456. Data : Audio_Stream := No_Audio_Stream
  4457. ) return Logical with
  4458. Import => True,
  4459. Convention => C,
  4460. External_Name => "IsAudioStreamProcessed";
  4461. procedure Play_Audio_Stream (
  4462. Data : Audio_Stream := No_Audio_Stream
  4463. ) with
  4464. Import => True,
  4465. Convention => C,
  4466. External_Name => "PlayAudioStream";
  4467. procedure Pause_Audio_Stream (
  4468. Data : Audio_Stream := No_Audio_Stream
  4469. ) with
  4470. Import => True,
  4471. Convention => C,
  4472. External_Name => "PauseAudioStream";
  4473. procedure Resume_Audio_Stream (
  4474. Data : Audio_Stream := No_Audio_Stream
  4475. ) with
  4476. Import => True,
  4477. Convention => C,
  4478. External_Name => "ResumeAudioStream";
  4479. function Is_Audio_Stream_Playing (
  4480. Data : Audio_Stream := No_Audio_Stream
  4481. ) return Logical with
  4482. Import => True,
  4483. Convention => C,
  4484. External_Name => "IsAudioStreamPlaying";
  4485. procedure Stop_Audio_Stream (
  4486. Data : Audio_Stream := No_Audio_Stream
  4487. ) with
  4488. Import => True,
  4489. Convention => C,
  4490. External_Name => "StopAudioStream";
  4491. procedure Set_Audio_Stream_Volume (
  4492. Data : Audio_Stream := No_Audio_Stream;
  4493. Volume : Float := 0.0
  4494. ) with
  4495. Import => True,
  4496. Convention => C,
  4497. External_Name => "SetAudioStreamVolume";
  4498. procedure Set_Audio_Stream_Pitch (
  4499. Data : Audio_Stream := No_Audio_Stream;
  4500. Pitch : Float := 0.0
  4501. ) with
  4502. Import => True,
  4503. Convention => C,
  4504. External_Name => "SetAudioStreamPitch";
  4505. procedure Set_Audio_Stream_Pan (
  4506. Data : Audio_Stream := No_Audio_Stream;
  4507. Pan : Float := 0.0
  4508. ) with
  4509. Import => True,
  4510. Convention => C,
  4511. External_Name => "SetAudioStreamPan";
  4512. procedure Set_Audio_Stream_Buffer_Size_Default (
  4513. Size : Integer := 0
  4514. ) with
  4515. Import => True,
  4516. Convention => C,
  4517. External_Name => "SetAudioStreamBufferSizeDefault";
  4518. procedure Attach_Audio_Stream_Processor (
  4519. Stream : Audio_Stream := No_Audio_Stream;
  4520. Processor : Pointer := null
  4521. ) with
  4522. Import => True,
  4523. Convention => C,
  4524. External_Name => "AttachAudioStreamProcessor";
  4525. procedure Detach_Audio_Stream_Processor (
  4526. Stream : Audio_Stream := No_Audio_Stream;
  4527. Processor : Pointer := null
  4528. ) with
  4529. Import => True,
  4530. Convention => C,
  4531. External_Name => "DetachAudioStreamProcessor";
  4532. procedure Attach_Audio_Mixed_Processor (
  4533. Processor : Pointer := null
  4534. ) with
  4535. Import => True,
  4536. Convention => C,
  4537. External_Name => "AttachAudioMixedProcessor";
  4538. procedure Detach_Audio_Mixed_Processor (
  4539. Processor : Pointer := null
  4540. ) with
  4541. Import => True,
  4542. Convention => C,
  4543. External_Name => "DetachAudioMixedProcessor";
  4544. ------------------------------------------------------------------------
  4545. end Raylib;