25 lines
568 B
C++
25 lines
568 B
C++
#ifndef LLMR_RENDERER_GL
|
|
#define LLMR_RENDERER_GL
|
|
|
|
#ifdef EMSCRIPTEN
|
|
#include <GLES2/gl2.h>
|
|
#elif __APPLE__
|
|
#include "TargetConditionals.h"
|
|
#if TARGET_OS_IPHONE
|
|
#include <OpenGLES/ES2/gl.h>
|
|
#include <OpenGLES/ES2/glext.h>
|
|
#elif TARGET_IPHONE_SIMULATOR
|
|
#include <OpenGLES/ES2/gl.h>
|
|
#include <OpenGLES/ES2/glext.h>
|
|
#elif TARGET_OS_MAC
|
|
#include <GLFW/glfw3.h>
|
|
#include <OpenGL/OpenGL.h>
|
|
#else
|
|
#error Unsupported Apple platform
|
|
#endif
|
|
#else
|
|
#error Unsupported platform
|
|
#endif
|
|
|
|
#endif
|