diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-21 21:13:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-01 22:58:18 +0300 |
commit | 04916c1b451e4400a496ae210b3faa10154c65ac (patch) | |
tree | fe7414434dcb6bcc1405b0d608d82348bc3ca466 /src/graphicsvertexes.h | |
parent | d48e360ea40536e9f3e7fb4ce381b7fdc2ee5954 (diff) | |
download | mv-04916c1b451e4400a496ae210b3faa10154c65ac.tar.gz mv-04916c1b451e4400a496ae210b3faa10154c65ac.tar.bz2 mv-04916c1b451e4400a496ae210b3faa10154c65ac.tar.xz mv-04916c1b451e4400a496ae210b3faa10154c65ac.zip |
Add batch drawing for any images.
Add this drawing to Button.
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r-- | src/graphicsvertexes.h | 22 |
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: |