#include "testApp.h" //-------------------------------------------------------------- testApp::~testApp(){ saveSettings(); } //-------------------------------------------------------------- void testApp::setup(){ ofBackground(0,0,0); ///ofSetVerticalSync(true); //some model / light stuff glEnable (GL_DEPTH_TEST); glShadeModel (GL_SMOOTH); glColorMaterial (GL_FRONT_AND_BACK, GL_DIFFUSE); glEnable (GL_COLOR_MATERIAL); //load the bottle model - the 3ds and the texture file need to be in the same folder bottle.loadModel("bottle.3DS", 1); bottle.setRotation(0, 180, 1, 0, 0); bottle.setPosition(0, 112, 0); //ofDisableArbTex(); texture.loadMovie("gradblend01.mov"); texture.play(); mode=CALIBRATE; loadSettings(); light=true; } //-------------------------------------------------------------- void testApp::update(){ texture.idleMovie(); } //-------------------------------------------------------------- void testApp::draw(){ for (int i=0;ikeys; XML.getAttributeNames("settings", keys, 0); mapsettings; for (int k=0;kkeys; XML.getAttributeNames("settings", keys, 0); for (int k=0;k