From a2566b3ebd93e0bbc55a920a7be08054a9377f11 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 15 Dec 2007 10:24:49 +0000 Subject: cleaned up code structure a bit --- src/game/client/gc_mapres_image.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/game/client/gc_mapres_image.h (limited to 'src/game/client/gc_mapres_image.h') diff --git a/src/game/client/gc_mapres_image.h b/src/game/client/gc_mapres_image.h new file mode 100644 index 00000000..f841ca53 --- /dev/null +++ b/src/game/client/gc_mapres_image.h @@ -0,0 +1,19 @@ +/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */ + +// loads images from the map to textures +int img_init(); + +// returns the number of images in the map +int img_num(); + +// fetches the texture id for the image +int img_get(int index); + + +class mapres_image +{ +public: + int width; + int height; + int image_data; +}; -- cgit 1.4.1