//--------------------------------------------------------------- void CloudsRGBDVideoPlayer::drawSubtitles(int x, int y, float fade){ bool playing = isPlaying() ; if( hasSubtitles() && playing) { ofPushStyle(); ofDisableLighting(); ofEnableAlphaBlending(); ofSetColor(0, 200*fade); currentSubtitles->draw(x+2, y+2); ofSetColor(255,255*fade); currentSubtitles->draw(x, y); ofDisableAlphaBlending(); ofPopStyle(); } }
void CloudsRGBDVideoPlayer::drawSubtitles() { #ifdef SHOW_SUBTITLES if (hasSubtitles()) { int x = CloudsVisualSystem::getStaticRenderTarget().getWidth()/2.0; int y = CloudsVisualSystem::getStaticRenderTarget().getHeight()*0.7; ofPushStyle(); ofSetColor(0, 200); currentSubtitles.draw(x+3, y-2); ofSetColor(255); currentSubtitles.draw(x, y); ofPopStyle(); } #endif }