diff options
| author | Jakob Fries <jakob.fries@gmail.com> | 2008-01-11 16:48:34 +0000 |
|---|---|---|
| committer | Jakob Fries <jakob.fries@gmail.com> | 2008-01-11 16:48:34 +0000 |
| commit | 24e17b41a8a5d600e0f116bc059ba121ac21bad5 (patch) | |
| tree | 36edd4d0ca27caa9434b3e43064c0d4807bddd34 /src/engine/e_interface.h | |
| parent | ac25b91088626a432722a2d74b16c4e0b7e9a97e (diff) | |
| download | zcatch-24e17b41a8a5d600e0f116bc059ba121ac21bad5.tar.gz zcatch-24e17b41a8a5d600e0f116bc059ba121ac21bad5.zip | |
Minimized font's gfx memory footprint.
Diffstat (limited to 'src/engine/e_interface.h')
| -rw-r--r-- | src/engine/e_interface.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/engine/e_interface.h b/src/engine/e_interface.h index a4f3baa9..3f14745c 100644 --- a/src/engine/e_interface.h +++ b/src/engine/e_interface.h @@ -20,8 +20,10 @@ enum SNAP_CURRENT=0, SNAP_PREV=1, + IMG_AUTO=-1, IMG_RGB=0, IMG_RGBA=1, + IMG_ALPHA=2, MASK_NONE=0, MASK_SET, @@ -149,6 +151,7 @@ int gfx_window_open(); Arguments: filename - Null terminated string to the file to load. + store_format - What format to store on gfx card as. Returns: An ID to the texture. -1 on failure. @@ -156,7 +159,7 @@ int gfx_window_open(); See Also: <gfx_unload_texture> */ -int gfx_load_texture(const char *filename); +int gfx_load_texture(const char *filename, int store_format); /* Function: gfx_load_texture_raw @@ -177,7 +180,7 @@ int gfx_load_texture(const char *filename); See Also: <gfx_unload_texture> */ -int gfx_load_texture_raw(int w, int h, int format, const void *data); +int gfx_load_texture_raw(int w, int h, int format, const void *data, int store_format); /*int gfx_load_mip_texture_raw(int w, int h, int format, const void *data);*/ /* |