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

4165 lines
115KB

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