1 /* 2 * mape - C4 Landscape.txt editor 3 * 4 * Copyright (c) 2005-2009, Armin Burgmeier 5 * 6 * Distributed under the terms of the ISC license; see accompanying file 7 * "COPYING" for details. 8 * 9 * "Clonk" is a registered trademark of Matthes Bender, used with permission. 10 * See accompanying file "TRADEMARK" for details. 11 * 12 * To redistribute this file separately, substitute the full license texts 13 * for the above references. 14 */ 15 16 #ifndef INC_MAPE_C4_TEXTURE_HANDLE_H 17 #define INC_MAPE_C4_TEXTURE_HANDLE_H 18 19 #include <glib.h> 20 21 #include "mape/cpp-handles/group-handle.h" 22 23 G_BEGIN_DECLS 24 25 typedef struct _C4TextureMapHandle C4TextureMapHandle; 26 27 C4TextureMapHandle* c4_texture_map_handle_new(void); 28 void c4_texture_map_handle_free(C4TextureMapHandle* texture_map); 29 30 guint c4_texture_map_handle_load_map(C4TextureMapHandle* texture_map, C4GroupHandle* group, const char* entry_name, gboolean* overload_materials, gboolean* overload_textures); 31 gboolean c4_texture_map_handle_add_texture(C4TextureMapHandle* texture_map, const char* texture, guint32 avg_color); 32 const char* c4_texture_map_handle_get_texture(C4TextureMapHandle* texture_map, guint index); 33 34 const char* c4_texture_handle_get_entry_material_name(C4TextureMapHandle* texture_map, guint index); 35 const char* c4_texture_handle_get_entry_texture_name(C4TextureMapHandle* texture_map, guint index); 36 37 guint32 c4_texture_handle_get_average_texture_color(C4TextureMapHandle* texture_map, const char* name); 38 39 G_END_DECLS 40 41 #endif /* INC_MAPE_C4_TEXTURE_HANDLE_H */ 42