mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
Add files via upload
This commit is contained in:
commit
e1cdcf01e9
49 changed files with 2866 additions and 0 deletions
29
src/lighting/LightSolver.h
Normal file
29
src/lighting/LightSolver.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef LIGHTING_LIGHTSOLVER_H_
|
||||
#define LIGHTING_LIGHTSOLVER_H_
|
||||
|
||||
#include <queue>
|
||||
|
||||
class Chunks;
|
||||
|
||||
struct lightentry {
|
||||
int x;
|
||||
int y;
|
||||
int z;
|
||||
unsigned char light;
|
||||
};
|
||||
|
||||
class LightSolver {
|
||||
std::queue<lightentry> addqueue;
|
||||
std::queue<lightentry> remqueue;
|
||||
Chunks* chunks;
|
||||
int channel;
|
||||
public:
|
||||
LightSolver(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_H_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue