added key interface to toggle voxels

This commit is contained in:
ZappoMan 2013-04-10 00:46:04 -07:00
parent e910bece1d
commit e19b53a344

View file

@ -864,6 +864,7 @@ void key(unsigned char k, int x, int y)
if (k == 'q') ::terminate();
if (k == '/') statsOn = !statsOn; // toggle stats
if (k == '*') ::starsOn = !::starsOn; // toggle stars
if (k == 'V') ::showingVoxels = !::showingVoxels; // toggle voxels
if (k == '&') {
::paintOn = !::paintOn; // toggle paint
::setupPaintingVoxel(); // also randomizes colors