diff options
| author | tim <tim@eclectronics.org> | 2017-06-01 10:53:27 +0100 |
|---|---|---|
| committer | tim <tim@eclectronics.org> | 2017-06-01 10:53:27 +0100 |
| commit | 55fc823bc3921e071b97afbc68039f8b02a8d0a3 (patch) | |
| tree | 93a9d10b4495e3e49673fe52688dd1e24b55d961 /testDir | |
| parent | a0e8fefd1bf241b805c4542421bdbc6a4447fdc3 (diff) | |
updateosx_build
Diffstat (limited to 'testDir')
| -rw-r--r-- | testDir/src/dirscanner.cpp | 9 | ||||
| -rw-r--r-- | testDir/src/main.cpp | 4 | ||||
| -rw-r--r-- | testDir/src/ofApp.cpp | 2 |
3 files changed, 8 insertions, 7 deletions
diff --git a/testDir/src/dirscanner.cpp b/testDir/src/dirscanner.cpp index f3aa974..0acd3eb 100644 --- a/testDir/src/dirscanner.cpp +++ b/testDir/src/dirscanner.cpp @@ -33,8 +33,8 @@ void playItem::draw(){ if (image.isAllocated()){ //ofEnableAlphaBlending(); - //ofSetColor(255,255,255,1.0); - image.draw(0,0); + //ofSetColor(255,255,255,0.1); + image.draw(0,0,540,960); //ofDisableAlphaBlending(); if (ofGetElapsedTimef()-startTime>5.0){ @@ -42,7 +42,7 @@ void playItem::draw(){ } } if (video.isLoaded()){ - video.draw(0,0); + video.draw(0,0,540,960); if (video.getIsMovieDone()){ isFinished=true; } @@ -105,7 +105,8 @@ void dirPlayer::load(std::string path){ items.push_back(item); } } - currentItem=0; + currentItem=dir.size()-1; + items[currentItem].isFinished=true; ofLogNotice() << "found "<<items.size()<<" items"; } diff --git a/testDir/src/main.cpp b/testDir/src/main.cpp index 120f5a0..7672de4 100644 --- a/testDir/src/main.cpp +++ b/testDir/src/main.cpp @@ -5,9 +5,9 @@ int main( ){ #ifdef FULLSCREEN - ofSetupOpenGL(1080,1920,OF_FULLSCREEN); + ofSetupOpenGL(540,960,OF_FULLSCREEN); #else - ofSetupOpenGL(1080,1920,OF_WINDOW); // <-------- setup the GL context + ofSetupOpenGL(540,960,OF_WINDOW); // <-------- setup the GL context #endif // this kicks off the running of my app // can be OF_WINDOW or OF_FULLSCREEN diff --git a/testDir/src/ofApp.cpp b/testDir/src/ofApp.cpp index 9ac9e12..f66ef3f 100644 --- a/testDir/src/ofApp.cpp +++ b/testDir/src/ofApp.cpp @@ -10,7 +10,7 @@ void ofApp::setup(){ player=dirPlayer(&scanner); - ofSetFrameRate(5); + //ofSetFrameRate(5); } //-------------------------------------------------------------- |
