diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-08 02:52:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-08 02:52:22 +0300 |
commit | 7760ed560001714494d7a7de470123a4cd565873 (patch) | |
tree | eacc42d883a83191c94edb3e265c982ef8d963fc /src/normalopenglgraphics.h | |
parent | 56cfe4d3a38a2440622cf32f613a2b57ae5b3852 (diff) | |
download | manaplus-7760ed560001714494d7a7de470123a4cd565873.tar.gz manaplus-7760ed560001714494d7a7de470123a4cd565873.tar.bz2 manaplus-7760ed560001714494d7a7de470123a4cd565873.tar.xz manaplus-7760ed560001714494d7a7de470123a4cd565873.zip |
improve map draw speed.
Diffstat (limited to 'src/normalopenglgraphics.h')
-rw-r--r-- | src/normalopenglgraphics.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/normalopenglgraphics.h b/src/normalopenglgraphics.h index 64649f5c8..46f88bfe3 100644 --- a/src/normalopenglgraphics.h +++ b/src/normalopenglgraphics.h @@ -39,6 +39,8 @@ #include <set> +class NormalOpenGLGraphicsVertexes; + class NormalOpenGLGraphics final : public Graphics { public: @@ -90,7 +92,7 @@ class NormalOpenGLGraphics final : public Graphics void calcTile(ImageVertexes *const vert, const Image *const image, int x, int y) override; - void drawTile(const ImageVertexes *const vert) override; + void drawTile(ImageVertexes *const vert) override; void drawImagePattern2(GraphicsVertexes *const vert, const Image *const image) override; @@ -119,18 +121,22 @@ class NormalOpenGLGraphics final : public Graphics void drawQuadArrayfi(int size); - void drawQuadArrayfi(GLint *intVertArray, GLfloat *floatTexArray, - int size); + void drawQuadArrayfi(GLint *intVertArray, + GLfloat *floatTexArray, + const int size); void drawQuadArrayii(int size); - void drawQuadArrayii(GLint *intVertArray, GLint *intTexArray, - int size); + void drawQuadArrayii(GLint *intVertArray, + GLint *intTexArray, + const int size); void drawLineArrayi(int size); void drawLineArrayf(int size); + void drawVertexes(NormalOpenGLGraphicsVertexes &ogl); + void initArrays() override; static void dumpSettings(); |