![]() |
Mali OpenGL ES SDK
2.0.0
A simple framework to aid development of OpenGL ES applications targeting ARM Mali platforms.
|
Class to extract information from the ETC headers of compressed textures. More...
#include <ETCHeader.h>
Public Member Functions | |
ETCHeader () | |
Default constructor. | |
ETCHeader (unsigned char *data) | |
Extract the ETC header information from a loaded ETC compressed texture. | |
unsigned short | getWidth (void) |
The width of the original texture. | |
unsigned short | getHeight (void) |
The height of the original texture. | |
unsigned short | getPaddedWidth (void) |
The width of the compressed texture with the padding added. | |
unsigned short | getPaddedHeight (void) |
The height of the compressed texture with the padding added. | |
GLsizei | getSize (GLenum internalFormat) |
The size of the compressed texture with the padding added. |
Class to extract information from the ETC headers of compressed textures.
unsigned short MaliSDK::ETCHeader::getHeight | ( | void | ) |
The height of the original texture.
The height of a compressed texture is padded to 4x4 blocks by the compression method. The resulting height of the compressed texture may therefore be larger if it's original height was not a multiple of 4. By using the unpadded height, the original texture can be drawn.
unsigned short MaliSDK::ETCHeader::getPaddedHeight | ( | void | ) |
The height of the compressed texture with the padding added.
The height of a compressed texture is padded to 4x4 blocks by the compression method. The resulting height of the compressed texture may therefore be larger if it's original height was not a multiple of 4.
unsigned short MaliSDK::ETCHeader::getPaddedWidth | ( | void | ) |
The width of the compressed texture with the padding added.
The width of a compressed texture is padded to 4x4 blocks by the compression method. The resulting width of the compressed texture may therefore be larger if it's original width was not a multiple of 4.
GLsizei MaliSDK::ETCHeader::getSize | ( | GLenum | internalFormat | ) |
The size of the compressed texture with the padding added.
The size is computed as padded width multiplied by padded height.
[in] | internalFormat | The internal format of the compressed texture. |
unsigned short MaliSDK::ETCHeader::getWidth | ( | void | ) |
The width of the original texture.
The width of a compressed texture is padded to 4x4 blocks by the compression method. The resulting width of the compressed texture may therefore be larger if it's original width was not a multiple of 4. By using the unpadded width, the original texture can be drawn.