summary refs log tree commit diff
path: root/src/Builder.h
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2024-06-16 10:35:45 +0300
committerWlodekM <[email protected]>2024-06-16 10:35:45 +0300
commitabef6da56913f1c55528103e60a50451a39628b1 (patch)
treeb3c8092471ecbb73e568cd0d336efa0e7871ee8d /src/Builder.h
initial commit
Diffstat (limited to 'src/Builder.h')
-rw-r--r--src/Builder.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Builder.h b/src/Builder.h
new file mode 100644
index 0000000..5610b18
--- /dev/null
+++ b/src/Builder.h
@@ -0,0 +1,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