//---------------------------------------------------------- void ofGLRenderer::draw(const ofBaseVideoDraws & video, float x, float y, float w, float h) const{ if(video.isInitialized() && video.isUsingTexture()){ const ofTexture& tex = video.getTextureReference(); tex.bind(); draw(tex.getMeshForSubsection(x,y,0,w,h,0,0,w,h),false,true,false); tex.unbind(); } }
//-------------------------------------------- void ofCairoRenderer::draw(const ofBaseVideoDraws & video, float x, float y, float w, float h) const{ draw(video.getPixels(),x,y,0,w,h,x,y,w,h); }
//---------------------------------------------------------- void ofGLRenderer::unbind(const ofBaseVideoDraws & video) const{ if(video.isInitialized() && video.isUsingTexture()){ video.getTextureReference().unbind(); } }
//---------------------------------------------------------- void ofGLRenderer::bind(ofBaseVideoDraws & video){ if(video.isInitialized() && video.isUsingTexture()){ video.getTextureReference().bind(); } }
//---------------------------------------------------------- void ofGLRenderer::draw(ofBaseVideoDraws & video, float x, float y, float w, float h){ if(video.isInitialized() && video.isUsingTexture()){ video.getTextureReference().draw(x,y,w,h); } }