mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
the final rename
This commit is contained in:
parent
f27a418dbe
commit
1627e21c1d
196 changed files with 836 additions and 815 deletions
31
src/lighting/LightSolver.hpp
Normal file
31
src/lighting/LightSolver.hpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef LIGHTING_LIGHTSOLVER_HPP_
|
||||
#define LIGHTING_LIGHTSOLVER_HPP_
|
||||
|
||||
#include <queue>
|
||||
|
||||
class Chunks;
|
||||
class ContentIndices;
|
||||
|
||||
struct lightentry {
|
||||
int x;
|
||||
int y;
|
||||
int z;
|
||||
unsigned char light;
|
||||
};
|
||||
|
||||
class LightSolver {
|
||||
std::queue<lightentry> addqueue;
|
||||
std::queue<lightentry> remqueue;
|
||||
const ContentIndices* const contentIds;
|
||||
Chunks* chunks;
|
||||
int channel;
|
||||
public:
|
||||
LightSolver(const ContentIndices* contentIds, Chunks* chunks, int channel);
|
||||
|
||||
void add(int x, int y, int z);
|
||||
void add(int x, int y, int z, int emission);
|
||||
void remove(int x, int y, int z);
|
||||
void solve();
|
||||
};
|
||||
|
||||
#endif /* LIGHTING_LIGHTSOLVER_HPP_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue