From 190154aac8dca71f7b89b50fd1cd22f040827f88 Mon Sep 17 00:00:00 2001 From: xolatile Date: Sun, 12 May 2024 11:29:20 -0400 Subject: [PATCH] Added window icon... --- icon.png | Bin 0 -> 277 bytes source/core.adb | 10 +++++++++- source/ray.ads | 8 ++++++-- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 icon.png diff --git a/icon.png b/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..d48f68791c54462fa57ec46315172bf4151bbb79 GIT binary patch literal 277 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz&H|6fVg?31We{epSZZGe6g=+f z;usQf_-%L~U#kMo?K6HGe$OuqKfpg#qp9o%Q-6zUO@df>hGz3woq*#4N=l(`gYKL$ zV>rGfRi=B|6J_(L$|bc6&lxguOqguF>`!wHhr@}ve4)HE<*SPlxh%eR)Si|P3wR%rJ9Iw0wy6S8ZM&C&M4L+X9OQ76vCon4;B?j>`ak!vd# zgVqKufy*8L true, convention => c, external_name => "LoadTexture"; function load_sound (file_path : in string) return sound with import => true, convention => c, external_name => "LoadSound"; function load_font (file_path : in string) return font with import => true, convention => c, external_name => "LoadFont"; + function load_image (file_path : in string) return image with import => true, convention => c, external_name => "LoadImage"; procedure unload_texture (data : in texture) with import => true, convention => c, external_name => "UnloadTexture"; procedure unload_sound (data : in sound) with import => true, convention => c, external_name => "UnloadSound"; procedure unload_font (data : in font) with import => true, convention => c, external_name => "UnloadFont"; + procedure unload_image (data : in image) with import => true, convention => c, external_name => "UnloadImage"; function image_colour (width, height : in integer; tint : in colour) return image with import => true, convention => c, external_name => "GenImageColor"; function image_import (data : in texture) return image with import => true, convention => c, external_name => "LoadImageFromTexture"; @@ -163,8 +165,10 @@ package ray is procedure pause_sound (data : in sound) with import => true, convention => c, external_name => "PauseSound"; procedure resume_sound (data : in sound) with import => true, convention => c, external_name => "ResumeSound"; - --~void ToggleFullscreen(void); - --~void SetWindowIcon(Image image); + procedure toggle_fullscreen with import => true, convention => c, external_name => "ToggleFullscreen"; + + procedure window_icon (icon : in image) with import => true, convention => c, external_name => "SetWindowIcon"; + --~void SetWindowMinSize(int width, int height); --~void SetWindowMaxSize(int width, int height); --~void SetWindowSize(int width, int height);