diff options
author | Konstantin Käfer <github@kkaefer.com> | 2014-01-07 16:52:23 +0100 |
---|---|---|
committer | Konstantin Käfer <github@kkaefer.com> | 2014-01-07 16:52:23 +0100 |
commit | 528eaf475e084508cb2d2d26df7d4136f1eb5e04 (patch) | |
tree | 87f9a7ecec23cb7cc37450e7cd5f34fa6248f750 /include/llmr/renderer/painter.hpp | |
parent | 044a7b5dcd92b1ba095f0768d24aa504fdf71a16 (diff) | |
download | qtlocation-mapboxgl-528eaf475e084508cb2d2d26df7d4136f1eb5e04.tar.gz |
emscripten support
Diffstat (limited to 'include/llmr/renderer/painter.hpp')
-rw-r--r-- | include/llmr/renderer/painter.hpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/llmr/renderer/painter.hpp b/include/llmr/renderer/painter.hpp index ac6012b0d0..6c75171846 100644 --- a/include/llmr/renderer/painter.hpp +++ b/include/llmr/renderer/painter.hpp @@ -1,8 +1,6 @@ #ifndef LLMR_RENDERER_PAINTER #define LLMR_RENDERER_PAINTER -#include "../platform/gl.hpp" - #include "shader-fill.hpp" #include "shader-line.hpp" @@ -19,7 +17,7 @@ public: void setup(); void teardown(); - void resize(GLuint new_width, GLuint new_height); + void resize(uint32_t new_width, uint32_t new_height); void viewport(); @@ -38,16 +36,16 @@ public: private: platform *platform; transform *transform; - GLuint width, height; - GLfloat matrix[16]; + uint32_t width, height; + float matrix[16]; Shader *currentShader; FillShader *fillShader; LineShader *lineShader; - GLuint vertexArray; - GLuint triangleVertexBuffer; - GLuint fillVertexBuffer; + uint32_t vertexArray; + uint32_t triangleVertexBuffer; + uint32_t fillVertexBuffer; }; } |