meshgen.h 824 B

123456789101112131415161718192021222324252627
  1. #ifndef _MESHGEN_H_
  2. #define _MESHGEN_H_
  3. #include "content.h"
  4. #include "graphics.h"
  5. #include "map.h"
  6. /* defined in meshgen_utils.c */
  7. uint8_t meshgen_hardface(block_t *b1, block_t *b2, uint8_t dir);
  8. void meshgen_hardfaces(chunk_t *ch, block_t *b, pos_t *p, uint8_t f[6]);
  9. block_t *meshgen_get_block(chunk_t *ch, pos_t *p, uint8_t only_chunk);
  10. mesh_t *meshgen_get_mesh(mapobj_t *o, block_t *b, uint8_t face, uint8_t lod);
  11. /* defined in meshgen_chunk.c */
  12. int meshgen_init(void);
  13. void meshgen_exit(void);
  14. void meshgen_add_chunk(chunk_t *ch, pos_t *p);
  15. void meshgen_free_chunk(chunk_t *ch, pos_t *p);
  16. /* defined in meshgen_block.c */
  17. int meshgen_block(mapobj_t *o, block_t *b, v3_t *p, pos_t *bp);
  18. /* defined in meshgen_cubelike.c */
  19. void meshgen_cubelike(mapobj_t *o, block_t *b, v3_t *p, pos_t *bp, uint8_t lod);
  20. #endif