How to map a saved texture directly on a QuickItem & display it?

安稳与你 提交于 2019-12-24 08:08:59

问题


In my Qt app with C++, I am using a QQuickItem derived class to display textures which are produced on every frame render by running some filters on each frame render. this works fine.

Next, I used the takeTexture method provided by QOpenGLFramebufferObject to save some textures & display them back whenever required. These saved textures are of type GLuints. I am able to display it back using the normal OpenGL rendering pipeline. It works well.

But, Is there a way I can avoid the rendering pipeline calls & map this saved texture on GPU memory directly to my QQuickItem?

来源:https://stackoverflow.com/questions/42538001/how-to-map-a-saved-texture-directly-on-a-quickitem-display-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!