Hi everybody, I’m trying to share a texture created in OpenGL with a directX texture. (I’m using directx9). I’m starting from https://sites.google.com/site/snippetsanddriblits/OpenglDxInterop but I’m having some problems because i can’t find no full example code in the web. Has anyone some code in order to list the steps needed for this kind of sharing (what API to call) and above all how to draw in the render function?
The steps I made are that in the opengl texture creation I fill it with values from png file. Then, as in the “BeginGlDraw()” this code binds the framebuffer, I should render the textures on the framebuffer. That is the problem. How can i attach it? In the same way I should draw the textures on the screen? After this it calls “EndGlDraw() and Flush()” methods. In the Flush methods it should “Present” the buffer to the screen. Does this mean that I have to avoid calling the glSwapBuffer?