| 39 | }; |
| 40 | |
| 41 | void FlickrTestMTApp::setup() |
| 42 | { |
| 43 | mShouldQuit = false; |
| 44 | mImages = new ConcurrentCircularBuffer<gl::TextureRef>( 5 ); // room for 5 images |
| 45 | // create and launch the thread with a new gl::Context just for that thread |
| 46 | gl::ContextRef backgroundCtx = gl::Context::create( gl::context() ); |
| 47 | mThread = shared_ptr<thread>( new thread( bind( &FlickrTestMTApp::loadImagesThreadFn, this, backgroundCtx ) ) ); |
| 48 | mLastTime = getElapsedSeconds() - 10; // force an initial update by make it "ten seconds ago" |
| 49 | |
| 50 | gl::enableAlphaBlending(); |
| 51 | } |
| 52 | |
| 53 | void FlickrTestMTApp::loadImagesThreadFn( gl::ContextRef context ) |
| 54 | { |
nothing calls this directly
no test coverage detected