From 3d41884cb65bd5c5a7e0d6596fb1ebfa39d6fa5b Mon Sep 17 00:00:00 2001 From: Chastity White Rose Date: Sun, 30 Apr 2023 23:41:12 -0500 Subject: [PATCH] Add files via upload --- src/ray_chastefont.h | 77 ++++++-------------------------------------- 1 file changed, 10 insertions(+), 67 deletions(-) diff --git a/src/ray_chastefont.h b/src/ray_chastefont.h index 4207eb9..2772182 100644 --- a/src/ray_chastefont.h +++ b/src/ray_chastefont.h @@ -15,7 +15,6 @@ struct chaste_font int char_height; /*height of a char*/ Image image; /*image that will be loaded*/ Texture2D texture; /*the texture of the image of loaded font*/ - int pixels[1280*720]; }; /*global fonts that will be reused many times*/ @@ -24,41 +23,16 @@ struct chaste_font main_font,font_8,font_16,font_32,font_64,font_128,font_pico8; /*function to load a font and return a structure with the needed data to draw later*/ struct chaste_font chaste_font_load(char *s) { - int x,y; /*coordinates used when loading the pixels into array*/ - int pixel; - Color color; struct chaste_font new_font; printf("This function tries to load a font\n"); /*load the file into an image*/ new_font.image=LoadImage(s); - - /*load every pixel in the image into the pixels array to be referenced for the rest of the program*/ - y=0; - while(y