14#define VOXEL_3D_LUA_NAME "Voxel3D"
15#define VOXEL_3D_LUA_FLAG "cfVoxel3D"
16#define CHECK_VOXEL_3D(L, arg) static_cast<Voxel3D*>(CheckNodeLuaType(L, arg, VOXEL_3D_LUA_NAME, VOXEL_3D_LUA_FLAG));
21 static int SetVoxel(lua_State* L);
22 static int GetVoxel(lua_State* L);
23 static int GetVoxelWorldPosition(lua_State* L);
24 static int RayTest(lua_State* L);
25 static int RayTestScreen(lua_State* L);
26 static int RayTestCenterCamera(lua_State* L);
27 static int GetVoxelAtWorldPosition(lua_State* L);
30 static int Fill(lua_State* L);
31 static int FillRegion(lua_State* L);
32 static int FillSphere(lua_State* L);
33 static int FillCylinder(lua_State* L);
36 static int GetVoxelsInSphere(lua_State* L);
37 static int GetVoxelsInBox(lua_State* L);
38 static int GetVoxelsInCylinder(lua_State* L);
39 static int GetVoxelNeighbors(lua_State* L);
42 static int MarkDirty(lua_State* L);
43 static int RebuildMesh(lua_State* L);
44 static int IsDirty(lua_State* L);
47 static int GetDimensions(lua_State* L);
50 static int SetAtlasTexture(lua_State* L);
51 static int GetAtlasTexture(lua_State* L);
52 static int SetAtlasEnabled(lua_State* L);
53 static int IsAtlasEnabled(lua_State* L);
54 static int SetMaterialTexture(lua_State* L);
55 static int SetMaterialTint(lua_State* L);
56 static int DisableMaterialTexture(lua_State* L);