OpenClonk
mapgen-handle.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_C4_MAPGEN_HANDLE_H
17 #define INC_MAPE_C4_MAPGEN_HANDLE_H
18 
19 #include <glib.h>
20 
23 
24 G_BEGIN_DECLS
25 
26 typedef struct _C4MapgenHandle C4MapgenHandle;
27 
31 
32 C4MapgenHandle* c4_mapgen_handle_new_script(const char* filename, const char* source, C4MaterialMapHandle* material_map, C4TextureMapHandle* texture_map, unsigned int map_width, unsigned int map_height);
33 C4MapgenHandle* c4_mapgen_handle_new(const char* filename, const char* source, const char* script_path, C4MaterialMapHandle* material_map, C4TextureMapHandle* texture_map, unsigned int map_width, unsigned int map_height);
35 
36 const unsigned char* c4_mapgen_handle_get_map(C4MapgenHandle* mapgen);
37 unsigned int c4_mapgen_handle_get_width(C4MapgenHandle* mapgen);
38 unsigned int c4_mapgen_handle_get_height(C4MapgenHandle* mapgen);
40 const char* c4_mapgen_handle_get_error(C4MapgenHandle* mapgen);
41 
42 G_END_DECLS
43 
44 #endif /* INC_MAPE_C4_MAPGEN_HANDLE_H */
typedefG_BEGIN_DECLS struct _C4GroupHandle C4GroupHandle
Definition: group-handle.h:23
typedefG_BEGIN_DECLS struct _C4MapgenHandle C4MapgenHandle
Definition: log-handle.h:23
unsigned int c4_mapgen_handle_get_height(C4MapgenHandle *mapgen)
void c4_mapgen_handle_init_script_engine()
const char * c4_mapgen_handle_get_error(C4MapgenHandle *mapgen)
const unsigned char * c4_mapgen_handle_get_map(C4MapgenHandle *mapgen)
void c4_mapgen_handle_deinit_script_engine()
C4MapgenHandle * c4_mapgen_handle_new_script(const char *filename, const char *source, C4MaterialMapHandle *material_map, C4TextureMapHandle *texture_map, unsigned int map_width, unsigned int map_height)
unsigned int c4_mapgen_handle_get_width(C4MapgenHandle *mapgen)
void c4_mapgen_handle_free(C4MapgenHandle *mapgen)
C4MapgenHandle * c4_mapgen_handle_new(const char *filename, const char *source, const char *script_path, C4MaterialMapHandle *material_map, C4TextureMapHandle *texture_map, unsigned int map_width, unsigned int map_height)
void c4_mapgen_handle_set_map_library(C4GroupHandle *group_handle)
unsigned int c4_mapgen_handle_get_rowstride(C4MapgenHandle *mapgen)
struct _C4MaterialMapHandle C4MaterialMapHandle
typedefG_BEGIN_DECLS struct _C4TextureMapHandle C4TextureMapHandle