From 04916c1b451e4400a496ae210b3faa10154c65ac Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 21 Nov 2012 21:13:31 +0300 Subject: Add batch drawing for any images. Add this drawing to Button. --- src/graphicsvertexes.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/graphicsvertexes.h') 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 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: -- cgit v1.2.3-60-g2f50