blob: 5610b184f492c01e0858abc9cb3707a9ced628ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef CC_BUILDER_H
#define CC_BUILDER_H
#include "Core.h"
/*
Converts a 16x16x16 chunk into a mesh of vertices
NormalMeshBuilder:
Implements a simple chunk mesh builder, where each block face is a single colour
(whatever lighting engine returns as light colour for given block face at given coordinates)
Copyright 2014-2023 ClassiCube | Licensed under BSD-3
*/
struct ChunkInfo;
struct IGameComponent;
extern struct IGameComponent Builder_Component;
extern int Builder_SidesLevel, Builder_EdgeLevel;
/* Whether smooth/advanced lighting mesh builder is used. */
extern cc_bool Builder_SmoothLighting;
/* Builds the mesh of vertices for the given chunk. */
void Builder_MakeChunk(struct ChunkInfo* info);
void Builder_ApplyActive(void);
#endif
|