diff options
author | Konstantin Käfer <github@kkaefer.com> | 2014-01-07 12:10:14 +0100 |
---|---|---|
committer | Konstantin Käfer <github@kkaefer.com> | 2014-01-07 12:10:14 +0100 |
commit | 44b43fe5a608ef0d2f83b2c99ec5b87c6e00f6e0 (patch) | |
tree | a65c62c85ee579e45ae30fd406a81bb7d9f03a0a /include/llmr/platform | |
download | qtlocation-mapboxgl-44b43fe5a608ef0d2f83b2c99ec5b87c6e00f6e0.tar.gz |
glfw version of sample app
Diffstat (limited to 'include/llmr/platform')
-rw-r--r-- | include/llmr/platform/gl.hpp | 22 | ||||
-rw-r--r-- | include/llmr/platform/platform.hpp | 24 |
2 files changed, 46 insertions, 0 deletions
diff --git a/include/llmr/platform/gl.hpp b/include/llmr/platform/gl.hpp new file mode 100644 index 0000000000..4fa0cf4775 --- /dev/null +++ b/include/llmr/platform/gl.hpp @@ -0,0 +1,22 @@ +#ifndef LLMR_RENDERER_GL +#define LLMR_RENDERER_GL + +#ifdef __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 diff --git a/include/llmr/platform/platform.hpp b/include/llmr/platform/platform.hpp new file mode 100644 index 0000000000..46a1383c42 --- /dev/null +++ b/include/llmr/platform/platform.hpp @@ -0,0 +1,24 @@ +#ifndef LLMR_PLATFORM_IOS +#define LLMR_PLATFORM_IOS + +namespace llmr { + +class tile; + +class platform { +public: + platform(void *obj) : obj(obj) {} + + const char *shaderSource(const char *name, const char *extension); + void restart(); + void request(tile *tile); + +private: + void *obj; +}; + +} + + + +#endif |