From 6afba95ef62b22c303336adba6d891eeffe66c49 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 Jul 2011 18:16:49 +0300 Subject: Add basic tiles caching for opengl. --- src/graphicsvertexes.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/graphicsvertexes.h') diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h index 73346d08c..55740ac98 100644 --- a/src/graphicsvertexes.h +++ b/src/graphicsvertexes.h @@ -87,6 +87,14 @@ class OpenGLGraphicsVertexes void switchVp(int n); + GLfloat *continueFloatTexArray(); + + GLint *continueIntVertArray(); + + GLint *continueIntTexArray(); + + int continueVp(); + std::vector *getVp() { return &mVp; } @@ -110,7 +118,9 @@ typedef std::vector DoubleRects; class ImageVertexes { public: - ImageVertexes() : image(0) + ImageVertexes() : + image(0), + ogl(new OpenGLGraphicsVertexes()) { } ~ImageVertexes(); @@ -119,7 +129,7 @@ class ImageVertexes DoubleRects sdl; #ifdef USE_OPENGL - std::vector ogl; + OpenGLGraphicsVertexes *ogl; #endif }; -- cgit v1.2.3-70-g09d2