From 7760ed560001714494d7a7de470123a4cd565873 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Oct 2012 02:52:22 +0300 Subject: improve map draw speed. --- src/normalopenglgraphics.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/normalopenglgraphics.h') 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 +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(); -- cgit v1.2.3-70-g09d2