mirror of https://github.com/auygun/kaliber.git
23 lines
551 B
C
23 lines
551 B
C
#ifndef OPENGL_H
|
|
#define OPENGL_H
|
|
|
|
#if defined(__ANDROID__)
|
|
// Use the modified Khronos header from ndk-helper. This gives access to
|
|
// additional functionality the drivers may expose but which the system headers
|
|
// do not.
|
|
#include "../../../third_party/android/gl3stub.h"
|
|
#include <GLES2/gl2ext.h>
|
|
|
|
#elif defined(__linux__)
|
|
#include "../../../third_party/glew/glew.h"
|
|
#include "../../../third_party/glew/glxew.h"
|
|
|
|
// Define the missing format for the etc1
|
|
#ifndef GL_ETC1_RGB8_OES
|
|
#define GL_ETC1_RGB8_OES 0x8D64
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif // OPENGL_H
|