map rendering - it actually renders, partially
[voxelands-alt.git] / inc / meshgen.h
blob8dec1f06cc2c7750302f7f5d375a142bb3670294
1 #ifndef _MESHGEN_H_
2 #define _MESHGEN_H_
4 #include "content.h"
5 #include "graphics.h"
6 #include "map.h"
8 /* defined in meshgen_utils.c */
9 uint8_t meshgen_hardface(block_t *b1, block_t *b2, uint8_t dir);
10 void meshgen_hardfaces(chunk_t *ch, block_t *b, pos_t *p, uint8_t f[6]);
11 block_t *meshgen_get_block(chunk_t *ch, pos_t *p, uint8_t only_chunk);
12 mesh_t *meshgen_get_mesh(mapobj_t *o, block_t *b, uint8_t face, uint8_t lod);
14 /* defined in meshgen_chunk.c */
15 int meshgen_init(void);
16 void meshgen_exit(void);
17 void meshgen_add_chunk(chunk_t *ch, pos_t *p);
18 void meshgen_free_chunk(chunk_t *ch, pos_t *p);
20 /* defined in meshgen_block.c */
21 void meshgen_block(mapobj_t *o, block_t *b, v3_t *p, pos_t *bp);
23 /* defined in meshgen_cubelike.c */
24 void meshgen_cubelike(mapobj_t *o, block_t *b, v3_t *p, pos_t *bp, uint8_t lod);
26 #endif