summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-11-21 21:13:31 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-01 22:58:18 +0300
commit04916c1b451e4400a496ae210b3faa10154c65ac (patch)
treefe7414434dcb6bcc1405b0d608d82348bc3ca466 /src/graphicsvertexes.h
parentd48e360ea40536e9f3e7fb4ce381b7fdc2ee5954 (diff)
downloadmanaplus-04916c1b451e4400a496ae210b3faa10154c65ac.tar.gz
manaplus-04916c1b451e4400a496ae210b3faa10154c65ac.tar.bz2
manaplus-04916c1b451e4400a496ae210b3faa10154c65ac.tar.xz
manaplus-04916c1b451e4400a496ae210b3faa10154c65ac.zip
Add batch drawing for any images.
Add this drawing to Button.
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r--src/graphicsvertexes.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h
index cce9491c1..8a8c1133e 100644
--- a/src/graphicsvertexes.h
+++ b/src/graphicsvertexes.h
@@ -154,6 +154,28 @@ class ImageVertexes final
#endif
};
+typedef std::vector<ImageVertexes*> ImageVertexesVector;
+typedef ImageVertexesVector::const_iterator ImageCollectionCIter;
+
+class ImageCollection final
+{
+ public:
+ ImageCollection();
+
+ ~ImageCollection();
+
+ void clear();
+
+#ifdef USE_OPENGL
+ GLuint currentGLImage;
+#endif
+ const Image *currentImage;
+
+ ImageVertexes *currentVert;
+
+ ImageVertexesVector draws;
+};
+
class GraphicsVertexes final
{
public: