开发者

Android Compressed Texture Loading (GL Extensions Missing)

开发者 https://www.devze.com 2023-04-10 02:49 出处:网络
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?

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)?开发者_如何学Go ex. GL_RGBA


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..

0

精彩评论

暂无评论...
验证码 换一张
取 消