Mali OpenGL ES SDK  2.0.0
A simple framework to aid development of OpenGL ES applications targeting ARM Mali platforms.
 All Classes Files Functions Variables Enumerations Enumerator
ETCHeader.h
1 /*
2  * This confidential and proprietary software may be used only as
3  * authorised by a licensing agreement from ARM Limited
4  * (C) COPYRIGHT 2012 ARM Limited
5  * ALL RIGHTS RESERVED
6  * The entire notice above must be reproduced on all authorised
7  * copies and copies may only be made to the extent permitted
8  * by a licensing agreement from ARM Limited.
9  */
10 
11 #ifndef ETCHEADER_H
12 #define ETCHEADER_H
13 
14 #if GLES_VERSION == 2
15 #include <GLES2/gl2.h>
16 #elif GLES_VERSION == 3
17 #include <GLES3/gl3.h>
18 #else
19 #error "GLES_VERSION must be defined as either 2 or 3"
20 #endif
21 
22 namespace MaliSDK
23 {
27  class ETCHeader
28  {
29  private:
30  unsigned char paddedWidthMSB;
31  unsigned char paddedWidthLSB;
32  unsigned char paddedHeightMSB;
33  unsigned char paddedHeightLSB;
34  unsigned char widthMSB;
35  unsigned char widthLSB;
36  unsigned char heightMSB;
37  unsigned char heightLSB;
38  public:
42  ETCHeader();
43 
47  ETCHeader(unsigned char *data);
48 
57  unsigned short getWidth(void);
58 
67  unsigned short getHeight(void);
68 
76  unsigned short getPaddedWidth(void);
77 
85  unsigned short getPaddedHeight(void);
86 
94  GLsizei getSize(GLenum internalFormat);
95  };
96 }
97 #endif /* ETCHEADER_H */