From 0de989625ed27003420ca3bd6a55183901564fbb Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 25 Aug 2005 22:02:28 +0000 Subject: Reducing the code duplication a little more. --- src/openglgraphics.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/openglgraphics.h') diff --git a/src/openglgraphics.h b/src/openglgraphics.h index e303c803..b082d0d3 100644 --- a/src/openglgraphics.h +++ b/src/openglgraphics.h @@ -54,7 +54,7 @@ class OpenGLGraphics : public Graphics void drawLine(int x1, int y1, int x2, int y2); - void _drawRectangle(const gcn::Rectangle &rect, bool filled); + void drawRectangle(const gcn::Rectangle &rect, bool filled); void drawRectangle(const gcn::Rectangle &rect); @@ -62,6 +62,11 @@ class OpenGLGraphics : public Graphics void setTargetPlane(int width, int height); + protected: + void setTexturingAndBlending(bool enable); + void drawTexedQuad(int x, int y, int w, int h, + float texX1, float texY1, float texX2, float texY2); + private: bool mAlpha, mTexture; bool mColorAlpha; -- cgit v1.2.3-70-g09d2