#ifndef LLMR_RENDERER_GL #define LLMR_RENDERER_GL #if __APPLE__ #include "TargetConditionals.h" #if TARGET_OS_IPHONE #include #include #define glGenVertexArrays glGenVertexArraysOES #define glBindVertexArray glBindVertexArrayOES #define glDeleteVertexArrays glDeleteVertexArraysOES #elif TARGET_IPHONE_SIMULATOR #include #include #elif TARGET_OS_MAC #include #include #define glGenVertexArrays glGenVertexArraysAPPLE #define glBindVertexArray glBindVertexArrayAPPLE #define glDeleteVertexArrays glDeleteVertexArraysAPPLE #else #error Unsupported Apple platform #endif #else #define GL_GLEXT_PROTOTYPES #include #include #include #endif #endif