From 1f246d9dcbc32e1049f4a8a6ac1777b313d9e547 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 29 Mar 2008 11:55:42 +0000 Subject: fixed protection so that the fonts doesn't get resampled --- src/engine/e_if_gfx.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/engine/e_if_gfx.h') diff --git a/src/engine/e_if_gfx.h b/src/engine/e_if_gfx.h index 525633b4..57af6072 100644 --- a/src/engine/e_if_gfx.h +++ b/src/engine/e_if_gfx.h @@ -337,6 +337,7 @@ int gfx_load_png(IMAGE_INFO *img, const char *filename); Arguments: filename - Null terminated string to the file to load. store_format - What format to store on gfx card as. + flags - controls how the texture is uploaded Returns: An ID to the texture. -1 on failure. @@ -344,7 +345,7 @@ int gfx_load_png(IMAGE_INFO *img, const char *filename); See Also: */ -int gfx_load_texture(const char *filename, int store_format); +int gfx_load_texture(const char *filename, int store_format, int flags); /* Function: gfx_load_texture_raw @@ -356,6 +357,7 @@ int gfx_load_texture(const char *filename, int store_format); data - Pointer to the pixel data. format - Format of the pixel data. store_format - The format to store the texture on the graphics card. + flags - controls how the texture is uploaded Returns: An ID to the texture. -1 on failure. @@ -367,7 +369,7 @@ int gfx_load_texture(const char *filename, int store_format); See Also: */ -int gfx_load_texture_raw(int w, int h, int format, const void *data, int store_format); +int gfx_load_texture_raw(int w, int h, int format, const void *data, int store_format, int flags); /* Function: gfx_texture_set -- cgit 1.4.1