summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-17 18:16:49 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-17 20:08:12 +0300
commit6afba95ef62b22c303336adba6d891eeffe66c49 (patch)
tree2e395c216f22479064ad5cf2bda612d8ecb9f201 /src/graphicsvertexes.h
parentb83bca17d42761c41f097ea315d01bb89105f618 (diff)
downloadmv-6afba95ef62b22c303336adba6d891eeffe66c49.tar.gz
mv-6afba95ef62b22c303336adba6d891eeffe66c49.tar.bz2
mv-6afba95ef62b22c303336adba6d891eeffe66c49.tar.xz
mv-6afba95ef62b22c303336adba6d891eeffe66c49.zip
Add basic tiles caching for opengl.
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r--src/graphicsvertexes.h14
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
};