@@ -172,7 +172,7 @@ typedef enum {
172
172
gfx_tile_16_pixel , /**< Set when using 16 pixel tiles */
173
173
gfx_tile_32_pixel , /**< Set when using 32 pixel tiles */
174
174
gfx_tile_64_pixel , /**< Set when using 64 pixel tiles */
175
- gfx_tile_128_pixel , /**< Set when using 128 pixel tiles */
175
+ gfx_tile_128_pixel /**< Set when using 128 pixel tiles */
176
176
} gfx_tilemap_type_t ;
177
177
178
178
/**
@@ -906,6 +906,16 @@ gfx_image_t *gfx_RotateSpriteCC(gfx_image_t *sprite_in, gfx_image_t *sprite_out)
906
906
*/
907
907
gfx_image_t * gfx_RotateSpriteHalf (gfx_image_t * sprite_in , gfx_image_t * sprite_out );
908
908
909
+ /**
910
+ * Resizes a sprite to new dimensions
911
+ *
912
+ * Place new image dimensions in sprite_out; i.e. sprite_out->width = 80; sprite_out->height = 20.
913
+ * @param sprite_in Input sprite to scale
914
+ * @param sprite_out Pointer to where scaled sprite will be stored
915
+ * @returns A pointer to sprite_out
916
+ */
917
+ gfx_image_t * gfx_ScaleSprite (gfx_image_t * sprite_in , gfx_image_t * sprite_out );
918
+
909
919
/**
910
920
* Creates a temporary character sprite
911
921
*
@@ -930,11 +940,20 @@ void gfx_SetFontData(uint8_t *data);
930
940
*/
931
941
void gfx_SetFontSpacing (uint8_t * spacing );
932
942
943
+ /**
944
+ * Sets the height in pixels of each character
945
+ *
946
+ * The default value is 8 pixels
947
+ * @param height New font height in pixels
948
+ * @returns Previous height of font in pixels
949
+ */
950
+ uint8_t gfx_SetFontHeight (uint8_t height );
951
+
933
952
/**
934
953
* Sets monospaced font
935
954
*
936
955
* @param spacing Distance between characters
937
- * @note To disable monospaced font set to 0
956
+ * @note To disable monospaced font, set to 0
938
957
*/
939
958
void gfx_SetMonospaceFont (uint8_t spacing );
940
959
@@ -955,15 +974,6 @@ unsigned int gfx_GetStringWidth(const char *string);
955
974
*/
956
975
unsigned int gfx_GetCharWidth (const char c );
957
976
958
- /**
959
- * Gets pixel height of a character
960
- *
961
- * @param c Character to get height of
962
- * @returns Height in pixels of character
963
- */
964
- #define gfx_GetCharHeight (c ) \
965
- 8
966
-
967
977
/**
968
978
* Sets the clipping window
969
979
*
0 commit comments