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/normalopenglgraphics.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/normalopenglgraphics.h') diff --git a/src/normalopenglgraphics.h b/src/normalopenglgraphics.h index 0c5bb40ac..2c70a0fbe 100644 --- a/src/normalopenglgraphics.h +++ b/src/normalopenglgraphics.h @@ -95,14 +95,34 @@ class NormalOpenGLGraphics final : public Graphics const int x, const int y, const int w, const int h) const override; + void calcImagePattern(ImageVertexes* const vert, + const Image *const image, + const int x, const int y, + const int w, const int h) const override; + + void calcImagePattern(ImageCollection* const vert, + const Image *const image, + const int x, const int y, + const int w, const int h) const override; + void calcTile(ImageVertexes *const vert, const Image *const image, int x, int y) const override; + void calcTile(ImageCollection *const vertCol, + const Image *const image, int x, int y) override; + + void drawTile(const ImageCollection *const vertCol) override; + void drawTile(const ImageVertexes *const vert) override; void drawImagePattern2(const GraphicsVertexes *const vert, const Image *const image) override; + bool calcWindow(ImageCollection *const vertCol, + const int x, const int y, + const int w, const int h, + const ImageRect &imgRect) override; + void updateScreen() override; void _beginDraw(); -- cgit v1.2.3-60-g2f50