VoxelEngine/src/lighting/Lighting.h
2022-10-28 22:44:32 +03:00

25 lines
533 B
C++

#ifndef LIGHTING_LIGHTING_H_
#define LIGHTING_LIGHTING_H_
class Chunks;
class LightSolver;
class Lighting {
Chunks* chunks = nullptr;
LightSolver* solverR = nullptr;
LightSolver* solverG = nullptr;
LightSolver* solverB = nullptr;
LightSolver* solverS = nullptr;
public:
Lighting(Chunks* chunks);
~Lighting();
void clear();
void prebuildSkyLight(int cx, int cz);
void buildSkyLight(int cx, int cz);
void onChunkLoaded(int cx, int cz);
void onBlockSet(int x, int y, int z, int id);
};
#endif /* LIGHTING_LIGHTING_H_ */