void MissingControl::draw() { ofPushStyle(); ofEnableAlphaBlending(); ofBackground(0); ofSetColor(255, 128); drawPerspective(); drawPlan(ofGetWidth() - 256, 0, 256); drawSection(ofGetWidth() - 256, 256, 256); vector<unsigned char>& packet = driver.getPacket(); string msg; for(int i = 0; i < packet.size(); i++) { msg += ofToString(i, 2, '0') + " 0x" + ofToHex(packet[i]) + "\n"; } MiniFont::draw(msg, 10, 10); ofPushMatrix(); ofPushStyle(); ofTranslate(10, ofGetHeight() - 10); ofScale(100, 1); ofSetColor(ofColor::fromHex(0xffee00)); ofLine(0, 0, (rawPresence ? 1 : 0), 0); ofSetColor(ofColor::fromHex(0x00abec)); ofLine(0, 2, presence.get(), 2); ofSetColor(ofColor::fromHex(0xec008c)); ofLine(0, 4, volume.get(), 4); ofPopStyle(); ofPopMatrix(); ofPopStyle(); }
void DepthVisualizerInput::drawDebug(){ //ofTranslate((ofGetWidth() - camWidth) / 2, 0, 0); ofSetColor(255, 255, 255); depthImage.draw(0, 0); ofPushMatrix(); ofTranslate(camWidth/2.0, ofGetHeight()*0.85, -500); ofRotateY(panel->getValueF("rotateY")); if (panel->getValueB("autoRotate")){ ofRotateY(ofGetElapsedTimef()*5); } ofScale(2,2,2); // need something here.... drawPerspective(); ofPopMatrix(); }