summaryrefslogtreecommitdiff
path: root/src/testApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/testApp.cpp')
-rw-r--r--src/testApp.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testApp.cpp b/src/testApp.cpp
index ab0987b..37717fa 100644
--- a/src/testApp.cpp
+++ b/src/testApp.cpp
@@ -29,6 +29,8 @@ void testApp::setup(){
mode=CALIBRATE;
loadSettings();
+
+ light=true;
}
//--------------------------------------------------------------
@@ -41,6 +43,8 @@ void testApp::draw(){
for (int i=0;i<numViews;i++) {
views[i].setLight();
}
+ if (light) glEnable(GL_LIGHTING);
+ else glDisable(GL_LIGHTING);
for (int i=0;i<numViews;i++) {
views[i].begin();
ofSetColor(255, 255, 255, 255);
@@ -98,6 +102,10 @@ void testApp::keyPressed(int key){
saveSettings();
printf("saved settings.xml\n");
break;
+ case '/':
+ light=!light;
+ printf(light?"LIGHT ON\n":"LIGHT OFF\n");
+ break;
}