diff options
Diffstat (limited to 'testDir/src')
| -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); } //-------------------------------------------------------------- |
