Android 压缩纹理加载(缺少 GL 扩展)
当尝试在 Android 上用 Java 加载 ATITC、S3TC 或 PVRTC 压缩纹理 (glCompressedTexImage2D
) 时,应该为第三个参数设置哪些 GL 常量?
例如...如果我想加载支持 Alpha 的 PVRTC 纹理。
我是否应该使用描述格式的常量(但名称中不一定包含格式)?前任。 GL_RGBA
When trying to load an ATITC, S3TC, or PVRTC compressed texture in Java on Android (glCompressedTexImage2D
), which GL constants should be set for the third parameter?
For example...if I wanted to load a PVRTC texture that supports alpha.
Am I supposed to use a constant that describes the format (but does not necessarily have the format in the name)? ex. GL_RGBA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果有人对此有疑问......我终于找到了如何实现这一点。找到扩展文档(例如 AMD_compressed_ATC_texture)后,值各种格式的列表在“新令牌”部分下。仅当我第一次看到该页面时向下滚动。
If anyone has problems with this..I finally find out how to accomplish this. After finding the extension documentation (ex. AMD_compressed_ATC_texture), the values of the various formats are listed under the section "New Tokens". Only if I had scrolled down the first time I saw the page..