Skip to content

Instantly share code, notes, and snippets.

@fkaa
Created January 20, 2014 18:02
Show Gist options
  • Select an option

  • Save fkaa/8525435 to your computer and use it in GitHub Desktop.

Select an option

Save fkaa/8525435 to your computer and use it in GitHub Desktop.
// header
private:
Chunk* chunks[SCX][SCY][SCZ];
//
// ctor
for(int x = 0; x < SCX; x++) {
for(int y = 0; y < SCX; y++) {
for(int z = 0; z < SCX; z++) {
chunks[x][y][z] = new Chunk();
}
}
}
//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment