diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-17 18:16:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-17 20:08:12 +0300 |
commit | 6afba95ef62b22c303336adba6d891eeffe66c49 (patch) | |
tree | 2e395c216f22479064ad5cf2bda612d8ecb9f201 /src/graphicsvertexes.h | |
parent | b83bca17d42761c41f097ea315d01bb89105f618 (diff) | |
download | plus-6afba95ef62b22c303336adba6d891eeffe66c49.tar.gz plus-6afba95ef62b22c303336adba6d891eeffe66c49.tar.bz2 plus-6afba95ef62b22c303336adba6d891eeffe66c49.tar.xz plus-6afba95ef62b22c303336adba6d891eeffe66c49.zip |
Add basic tiles caching for opengl.
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r-- | src/graphicsvertexes.h | 14 |
1 files changed, 12 insertions, 2 deletions
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<int> *getVp() { return &mVp; } @@ -110,7 +118,9 @@ typedef std::vector<DoubleRect*> 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<OpenGLGraphicsVertexes*> ogl; + OpenGLGraphicsVertexes *ogl; #endif }; |