OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
mapgen.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_MAPGEN_H
17 #define INC_MAPE_MAPGEN_H
18 
19 #include <glib.h>
20 #include <gdk-pixbuf/gdk-pixbuf.h>
21 
22 #include "mape/material.h"
23 #include "mape/texture.h"
24 
25 G_BEGIN_DECLS
26 
37 typedef enum _MapeMapgenError {
41 
50 typedef enum _MapeMapgenType {
55 
56 gboolean
57 mape_mapgen_init(GError** error);
58 
59 void
61 
62 void
64 
65 GdkPixbuf*
66 mape_mapgen_render(const gchar* filename,
67  const gchar* source,
68  MapeMapgenType type,
69  const gchar* script_path,
70  MapeMaterialMap* material_map,
71  MapeTextureMap* texture_map,
72  guint width,
73  guint height,
74  GError** error);
75 
76 G_END_DECLS
77 
78 #endif /* INC_MAPE_MAPGEN_H */
79 
80 /* vim:set et sw=2 ts=2: */
enum _MapeMapgenType MapeMapgenType
void mape_mapgen_deinit()
Definition: mapgen.c:156
unsigned int height
gboolean mape_mapgen_init(GError **error)
Definition: mapgen.c:144
void mape_mapgen_set_root_group(MapeGroup *group)
Definition: mapgen.c:169
_MapeMapgenError
Definition: mapgen.h:37
G_BEGIN_DECLS enum _MapeMapgenError MapeMapgenError
unsigned int width
_MapeMapgenType
Definition: mapgen.h:50
GdkPixbuf * mape_mapgen_render(const gchar *filename, const gchar *source, MapeMapgenType type, const gchar *script_path, MapeMaterialMap *material_map, MapeTextureMap *texture_map, guint width, guint height, GError **error)
Definition: mapgen.c:227