diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-29 11:55:42 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-29 11:55:42 +0000 |
| commit | 1f246d9dcbc32e1049f4a8a6ac1777b313d9e547 (patch) | |
| tree | 4a4e025a6211fedf7732d837e0027aa37e6e4d1a /src/engine/e_if_gfx.h | |
| parent | 7a3874745ca370a799d95b5f86e85fcc8eadefbb (diff) | |
| download | zcatch-1f246d9dcbc32e1049f4a8a6ac1777b313d9e547.tar.gz zcatch-1f246d9dcbc32e1049f4a8a6ac1777b313d9e547.zip | |
fixed protection so that the fonts doesn't get resampled
Diffstat (limited to 'src/engine/e_if_gfx.h')
| -rw-r--r-- | src/engine/e_if_gfx.h | 6 |
1 files changed, 4 insertions, 2 deletions
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: <gfx_unload_texture, gfx_load_png> */ -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: <gfx_unload_texture> */ -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 |