mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
Add files via upload
This commit is contained in:
commit
e1cdcf01e9
49 changed files with 2866 additions and 0 deletions
12
src/lighting/Lightmap.cpp
Normal file
12
src/lighting/Lightmap.cpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include "Lightmap.h"
|
||||
|
||||
Lightmap::Lightmap(){
|
||||
map = new unsigned short[CHUNK_VOL];
|
||||
for (unsigned int i = 0; i < CHUNK_VOL; i++){
|
||||
map[i] = 0x0000;
|
||||
}
|
||||
}
|
||||
|
||||
Lightmap::~Lightmap(){
|
||||
delete[] map;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue