OpenClonk
texture.h
Go to the documentation of this file.
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_TEXTURE_MAP_H
17 #define INC_MAPE_TEXTURE_MAP_H
18 
19 #include <glib-object.h>
20 #include <gdk-pixbuf/gdk-pixbuf.h>
21 
22 #include "mape/group.h"
23 
24 G_BEGIN_DECLS
25 
26 #define MAPE_TYPE_TEXTURE_MAP (mape_texture_map_get_type())
27 #define MAPE_TEXTURE_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), MAPE_TYPE_TEXTURE_MAP, MapeTextureMap))
28 #define MAPE_TEXTURE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), MAPE_TYPE_TEXTURE_MAP, MapeTextureMapClass))
29 #define MAPE_IS_TEXTURE_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), MAPE_TYPE_TEXTURE_MAP))
30 #define MAPE_IS_TEXTURE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), MAPE_TYPE_TEXTURE_MAP))
31 #define MAPE_TEXTURE_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), MAPE_TYPE_TEXTURE_MAP, MapeTextureMapClass))
32 
33 typedef struct _MapeTextureMap MapeTextureMap;
35 
43 typedef enum _MapeTextureMapError {
46 
53  /*< private >*/
54  GObjectClass parent_class;
55 };
56 
64  /*< private >*/
65  GObject parent;
66 };
67 
68 GType
69 mape_texture_map_get_type(void) G_GNUC_CONST;
70 
73 
74 gboolean
76  MapeGroup* group,
77  GError** error);
78 
79 gboolean
81  MapeGroup* group,
82  GError** error);
83 
84 gboolean
86 
87 gboolean
89 
90 guint
92 
93 const gchar*
95  guint index);
96 
97 GdkPixbuf*
99  const gchar* name);
100 
101 const gchar*
103  guint index);
104 
105 const gchar*
107  guint index);
108 
109 guint32
111  const gchar* name);
112 
113 G_END_DECLS
114 
115 #endif /* INC_MAPE_TEXTURE_MAP_H */
116 
117 /* vim:set et sw=2 ts=2: */
gboolean mape_texture_map_get_overload_textures(MapeTextureMap *texture_map)
Definition: texture.c:443
const gchar * mape_texture_map_get_texture_name_from_mapping(MapeTextureMap *texture_map, guint index)
Definition: texture.c:559
gboolean mape_texture_map_load_textures(MapeTextureMap *texture_map, MapeGroup *group, GError **error)
Definition: texture.c:304
MapeTextureMap * mape_texture_map_new(void)
Definition: texture.c:247
const gchar * mape_texture_map_get_material_name_from_mapping(MapeTextureMap *texture_map, guint index)
Definition: texture.c:536
enum _MapeTextureMapError MapeTextureMapError
gboolean mape_texture_map_get_overload_materials(MapeTextureMap *texture_map)
Definition: texture.c:427
const gchar * mape_texture_map_get_texture_name(MapeTextureMap *texture_map, guint index)
Definition: texture.c:478
GdkPixbuf * mape_texture_map_lookup_texture(MapeTextureMap *texture_map, const gchar *name)
Definition: texture.c:504
GType mape_texture_map_get_type(void) G_GNUC_CONST
_MapeTextureMapError
Definition: texture.h:43
@ MAPE_TEXTURE_MAP_ERROR_LOAD
Definition: texture.h:44
GObjectClass parent_class
Definition: texture.h:54
gboolean mape_texture_map_load_map(MapeTextureMap *texture_map, MapeGroup *group, GError **error)
Definition: texture.c:265
GObject parent
Definition: texture.h:65
guint32 mape_texture_map_get_average_texture_color(MapeTextureMap *texture_map, const gchar *name)
Definition: texture.c:580
guint mape_texture_map_get_texture_count(MapeTextureMap *texture_map)
Definition: texture.c:459