Closed o2co2 closed 8 years ago
you using the develop branch?
@jvcleave yes develop branch
anything but master often a work in progress
You may want to try to use ofDisableArbTex()
before allocating your FBO. I think that you may be able to give an ofFbo and external texture that you allocate yourself.
The issue is that OF uses ARB textures by default
Here's how you have to do it
ofFbo::Settings fboSettings;
fboSettings.width = videoPlayer.getWidth();
fboSettings.height = videoPlayer.getHeight();
fboSettings.internalformat = GL_RGBA;
fboSettings.textureTarget = GL_TEXTURE_2D;
videoFBO.allocate(fboSettings);
videoButtonID = videoFBO.getTexture().texData.textureID;
Thank you @jvcleave
GLuint id = m_ui.loadTexture(image_fbo.getTexture()); ImGui::Image((ImTextureID)(uintptr_t)id, ImVec2(fingerMovie.getWidth(), fingerMovie.getHeight()));
display blank