本文整理汇总了C++中ofFbo::getTexture方法的典型用法代码示例。如果您正苦于以下问题:C++ ofFbo::getTexture方法的具体用法?C++ ofFbo::getTexture怎么用?C++ ofFbo::getTexture使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ofFbo
的用法示例。
在下文中一共展示了ofFbo::getTexture方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: draw
void mdQuad::draw(ofFbo fbo,ofShader shader){
fbo.getTexture(0).bind();
glBegin(GL_QUADS);
glTexCoord2f(0.0,0.0);
glVertex3f(x1, y1, 0.0); // Bottom Left Of The Texture and Quad
glTexCoord2f(320,0);
glVertex3f(x2, y2, 0.0); // Bottom Right Of The Texture and Quad
glTexCoord2f(320,240);
glVertex3f( x3, y3, 0.0); // Top Right Of The Texture and Quad
glTexCoord2f(0,240);
glVertex3f(x4, y4, 0.0); // Top Left Of The Texture and Quad
glEnd();
//glActiveTexture(GL_TEXTURE0);
fbo.getTexture().unbind();
if(videoOn){
videoTexture.setPoints(x1,y1,x2,y2,x3,y3,x4,y4);
//videoTexture.loadData(vPlayer->getPixels(), vPlayer->getWidth(), vPlayer->getHeight(), GL_RGB);
///videoTexture.loadData(fbo.getPixels(),fbo.getWidth(), fbo.getHeight(), GL_RGB);
videoTexture.draw();
}
}