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_MATERIAL_HANDLE_H
17 #define INC_MAPE_C4_MATERIAL_HANDLE_H
18 
19 #include <glib.h>
20 
21 #include "mape/cpp-handles/group-handle.h"
22 #include "mape/cpp-handles/texture-handle.h"
23 
24 G_BEGIN_DECLS
25 
26 typedef struct _C4MaterialHandle C4MaterialHandle;
27 typedef struct _C4MaterialMapHandle C4MaterialMapHandle;
28 
29 C4MaterialMapHandle* c4_material_map_handle_new(void);
30 void c4_material_map_handle_free(C4MaterialMapHandle* material_map);
31 
32 guint c4_material_map_handle_load(C4MaterialMapHandle* material_map, C4GroupHandle* group);
33 void c4_material_map_crossmap_materials(C4MaterialMapHandle* material_map, C4TextureMapHandle* texture_map);
34 
35 guint c4_material_map_handle_get_num(C4MaterialMapHandle* material_map);
36 C4MaterialHandle* c4_material_map_handle_get_material(C4MaterialMapHandle* material_map, guint index);
37 
38 const gchar* c4_material_handle_get_name(C4MaterialHandle* material);
39 const gchar* c4_material_handle_get_texture_overlay(C4MaterialHandle* material);
40 
41 G_END_DECLS
42 
43 #endif /* INC_MAPE_C4_MATERIAL_HANDLE_H */
44