简体   繁体   English

OpenGL ES纹理部分删除

[英]OpenGL ES texture partially removing

Is there any way to remove a part of texture by using opengles for ios? 有没有办法通过使用openg为ios删除纹理的一部分? for example i have a rectangle and want to destroy part of it 例如,我有一个矩形,想要破坏它的一部分

I believe you need this: How to manipulate texture content on the fly? 我相信你需要这个: 如何动态操纵纹理内容?

Either create an empty texture and render a small quad using this empty texture on top of the FBO for your texture or use the glTexSubImage2D, which is easier for this simple purpose. 创建一个空纹理并使用FBO顶部的空纹理为纹理渲染一个小四边形或使用glTexSubImage2D,这对于这个简单的目的更容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM