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