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