Exemplo n.º 1
0
//----------------------------------------------------------
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);
}
Exemplo n.º 3
0
//----------------------------------------------------------
void ofGLRenderer::unbind(const ofBaseVideoDraws & video) const{
	if(video.isInitialized() && video.isUsingTexture()){
		video.getTextureReference().unbind();
	}
}
Exemplo n.º 4
0
//----------------------------------------------------------
void ofGLRenderer::bind(ofBaseVideoDraws & video){
	if(video.isInitialized() && video.isUsingTexture()){
		video.getTextureReference().bind();
	}
}
Exemplo n.º 5
0
//----------------------------------------------------------
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);
	}
}