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
Shader.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 SHADER_H
12 #define SHADER_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 Shader
28  {
29  private:
35  static char *loadShader(const char *filename);
36  public:
47  static void processShader(GLuint *shader, const char *filename, GLint shaderType);
48  };
49 }
50 #endif /* SHADER_H */