| 33 | } |
| 34 | |
| 35 | void ofApp::draw() |
| 36 | { |
| 37 | input->draw(); |
| 38 | string str = "Text Input: "+input->getText(); |
| 39 | ofRectangle bounds = font.getStringBoundingBox(str, ofGetWidth()/2, ofGetHeight()/2); |
| 40 | ofSetColor(ofColor::black); |
| 41 | font.drawString(str, bounds.x-bounds.width/2, bounds.y-bounds.height/2); |
| 42 | } |
| 43 |