|
3 | 3 | //-------------------------------------------------------------- |
4 | 4 | void ofApp::setup(){ |
5 | 5 |
|
6 | | - //ofSetOrientation(OF_ORIENTATION_90_LEFT); |
| 6 | +// ofSetOrientation(OF_ORIENTATION_90_LEFT); |
7 | 7 | ofSetVerticalSync(true); |
8 | | - |
| 8 | + |
9 | 9 | // we add this listener before setting up so the initial circle resolution is correct |
10 | 10 | circleResolution.addListener(this, &ofApp::circleResolutionChanged); |
11 | 11 | ringButton.addListener(this,&ofApp::ringButtonPressed); |
|
16 | 16 | ofxGuiSetDefaultWidth(300); |
17 | 17 | ofxGuiSetDefaultHeight(18); |
18 | 18 |
|
19 | | - gui.setup("panel"); // most of the time you don't need a name but don't forget to call setup |
| 19 | +// gui.setup("panel"); // most of the time you don't need a name but don't forget to call setup |
20 | 20 | gui.add(filled.set("bFill", true)); |
21 | 21 | gui.add(radius.set( "radius", 140, 10, 300 )); |
22 | 22 | gui.add(center.set("center",glm::vec2(ofGetWidth()*.5,ofGetHeight()*.75),glm::vec2(0,0),glm::vec2(ofGetWidth(),ofGetHeight()))); |
23 | | - gui.add(color.set("color",ofColor(100,100,140),ofColor(0,0),ofColor(255,255))); |
| 23 | + gui.add(color.set("color",ofColor(100,100,140),ofColor(0,0,0),ofColor(255,255,255))); |
24 | 24 | gui.add(circleResolution.set("circleRes", 5, 3, 90)); |
25 | 25 | gui.add(twoCircles.setup("twoCircles")); |
26 | 26 | gui.add(ringButton.setup("ring")); |
27 | 27 | gui.add(screenSize.set("screenSize", ofToString(ofGetWidth()) + "x" + ofToString(ofGetHeight()))); |
28 | | - |
| 28 | + |
29 | 29 | bHide = true; |
30 | 30 |
|
31 | 31 | ring.load("ring.wav"); |
|
65 | 65 | }else{ |
66 | 66 | ofDrawCircle((glm::vec2)center, radius ); |
67 | 67 | } |
68 | | - |
| 68 | + |
69 | 69 | if( bHide ){ |
70 | 70 | gui.draw(); |
71 | 71 | } |
|
0 commit comments