Various functions...
This commit is contained in:
parent
b9c1b2c8c2
commit
5c3f17af05
221
raylib.ads
221
raylib.ads
@ -2988,25 +2988,35 @@ package Raylib is
|
|||||||
Convention => C,
|
Convention => C,
|
||||||
External_Name => "LoadTexture";
|
External_Name => "LoadTexture";
|
||||||
|
|
||||||
--~function Texture2D LoadTextureFromImage (Image image) with
|
function Load_Texture_From_Image (
|
||||||
--~Import => True,
|
Data : Image := No_Image
|
||||||
--~Convention => C,
|
) return Texture with
|
||||||
--~External_Name => "";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "LoadTextureFromImage";
|
||||||
|
|
||||||
--~function TextureCubemap LoadTextureCubemap (Image image, int layout) with
|
function Load_Texture_Cubemap (
|
||||||
--~Import => True,
|
Data : Image := No_Image;
|
||||||
--~Convention => C,
|
Layout : Integer := 0
|
||||||
--~External_Name => "";
|
) return Texture with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "LoadTextureCubemap";
|
||||||
|
|
||||||
--~function RenderTexture2D LoadRenderTexture (int width, int height) with
|
function Load_Render_Texture (
|
||||||
--~Import => True,
|
Width : Natural := 0;
|
||||||
--~Convention => C,
|
Height : Natural := 0
|
||||||
--~External_Name => "";
|
) return Render_Texture with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "LoadRenderTexture";
|
||||||
|
|
||||||
--~function bool IsTextureReady (Texture2D texture) with
|
function Is_Texture_Ready (
|
||||||
--~Import => True,
|
Data : Texture := No_Texture
|
||||||
--~Convention => C,
|
) return Logical with
|
||||||
--~External_Name => "";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "IsTextureReady";
|
||||||
|
|
||||||
procedure Unload_Texture (
|
procedure Unload_Texture (
|
||||||
Data : Texture := No_Texture
|
Data : Texture := No_Texture
|
||||||
@ -3121,85 +3131,136 @@ package Raylib is
|
|||||||
Convention => C,
|
Convention => C,
|
||||||
External_Name => "DrawTexturePro";
|
External_Name => "DrawTexturePro";
|
||||||
|
|
||||||
--~procedure DrawTextureNPatch (Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) with
|
procedure Draw_Texture_NPatch (
|
||||||
--~Import => True,
|
Data : Texture := No_Texture;
|
||||||
--~Convention => C,
|
-- ERROR NPatch_Info : NPatch_Info := No_NPatch_Info;
|
||||||
--~External_Name => "";
|
Destination : Rectangle := No_Rectangle;
|
||||||
|
Origin : Vector_2D := (others => 0.0);
|
||||||
|
Rotation : Float := 0.0;
|
||||||
|
Tint : Color := White
|
||||||
|
) with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "DrawTextureNPatch";
|
||||||
|
|
||||||
--~function Color Fade (Color color, float alpha) with
|
function Fade (
|
||||||
--~Import => True,
|
Data : Color := White;
|
||||||
--~Convention => C,
|
Alpha : Float := 0.0
|
||||||
--~External_Name => "";
|
) return Color with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "Fade";
|
||||||
|
|
||||||
--~function int ColorToInt (Color color) with
|
function Color_To_Integer (
|
||||||
--~Import => True,
|
Data : Color := White
|
||||||
--~Convention => C,
|
) return Integer with
|
||||||
--~External_Name => "";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "ColorToInt";
|
||||||
|
|
||||||
--~function Vector4 ColorNormalize (Color color) with
|
function Color_Normalize (
|
||||||
--~Import => True,
|
Data : Color := White
|
||||||
--~Convention => C,
|
) return Vector_4D with
|
||||||
--~External_Name => "";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "ColorNormalize";
|
||||||
|
|
||||||
--~function Color ColorFromNormalized (Vector4 normalized) with
|
function Color_From_Normalized (
|
||||||
--~Import => True,
|
Normalized : Vector_4D := (others => 0.0)
|
||||||
--~Convention => C,
|
) return Color with
|
||||||
--~External_Name => "";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "ColorFromNormalized";
|
||||||
|
|
||||||
--~function Vector3 ColorToHSV (Color color) with
|
function Color_To_HSV (
|
||||||
--~Import => True,
|
Data : Color := White
|
||||||
--~Convention => C,
|
) return Vector_3D with
|
||||||
--~External_Name => "";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "ColorToHSV";
|
||||||
|
|
||||||
--~function Color ColorFromHSV (float hue, float saturation, float value) with
|
function Color_From_HSV (
|
||||||
--~Import => True,
|
Hue : Float := 0.0;
|
||||||
--~Convention => C,
|
Saturation : Float := 0.0;
|
||||||
--~External_Name => "";
|
Value : Float := 0.0
|
||||||
|
) return Color with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "ColorFromHSV";
|
||||||
|
|
||||||
--~function Color ColorTint (Color color, Color tint) with
|
function Color_Tint (
|
||||||
--~Import => True,
|
Data : Color := White;
|
||||||
--~Convention => C,
|
Tint : Color := Black
|
||||||
--~External_Name => "";
|
) return Color with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "ColorTint";
|
||||||
|
|
||||||
--~function Color ColorBrightness (Color color, float factor) with
|
function Color_Brightness (
|
||||||
--~Import => True,
|
Data : Color := White;
|
||||||
--~Convention => C,
|
Factor : Float := 0.0
|
||||||
--~External_Name => "";
|
) return Color with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "ColorBrightness";
|
||||||
|
|
||||||
--~function Color ColorContrast (Color color, float contrast) with
|
function Color_Contrast (
|
||||||
--~Import => True,
|
Data : Color := White;
|
||||||
--~Convention => C,
|
Contrast : Float := 0.0
|
||||||
--~External_Name => "";
|
) return Color with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "ColorContrast";
|
||||||
|
|
||||||
--~function Color ColorAlpha (Color color, float alpha) with
|
function Color_Alpha (
|
||||||
--~Import => True,
|
Data : Color := White;
|
||||||
--~Convention => C,
|
Alpha : Float := 0.0
|
||||||
--~External_Name => "";
|
) return Color with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "ColorAlpha";
|
||||||
|
|
||||||
--~function Color ColorAlphaBlend (Color dst, Color src, Color tint) with
|
function Color_Alpha_Blend (
|
||||||
--~Import => True,
|
Destination : Color := White;
|
||||||
--~Convention => C,
|
Source : Color := Black;
|
||||||
--~External_Name => "";
|
Tint : Color := Ray_White
|
||||||
|
) return Color with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "ColorAlphaBlend";
|
||||||
|
|
||||||
--~function Color GetColor (unsigned int hexValue) with
|
function Get_Color (
|
||||||
--~Import => True,
|
Value : Natural := 0
|
||||||
--~Convention => C,
|
) return Color with
|
||||||
--~External_Name => "";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "GetColor";
|
||||||
|
|
||||||
--~function Color GetPixelColor (void *srcPtr, int format) with
|
function Get_Pixel_Color (
|
||||||
--~Import => True,
|
Source : Pointer := null;
|
||||||
--~Convention => C,
|
Format : Integer := 0
|
||||||
--~External_Name => "";
|
) return Color with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "GetPixelColor";
|
||||||
|
|
||||||
--~procedure SetPixelColor (void *dstPtr, Color color, int format) with
|
procedure Set_Pixel_Color (
|
||||||
--~Import => True,
|
Destination : Pointer := null;
|
||||||
--~Convention => C,
|
Data : Color := White;
|
||||||
--~External_Name => "";
|
Format : Integer := 0
|
||||||
|
) with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "SetPixelColor";
|
||||||
|
|
||||||
--~function int GetPixelDataSize (int width, int height, int format) with
|
function Get_Pixel_Data_Size (
|
||||||
--~Import => True,
|
Width : Natural := 0;
|
||||||
--~Convention => C,
|
Height : Natural := 0;
|
||||||
--~External_Name => "";
|
Format : Integer := 0
|
||||||
|
) return Integer with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "GetPixelDataSize";
|
||||||
|
|
||||||
function Get_Font_Default return Font with
|
function Get_Font_Default return Font with
|
||||||
Import => True,
|
Import => True,
|
||||||
|
Loading…
Reference in New Issue
Block a user