summaryrefslogtreecommitdiff
path: root/src/openglgraphics.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-25 22:02:28 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-25 22:02:28 +0000
commit0de989625ed27003420ca3bd6a55183901564fbb (patch)
treea9a68f615e5d829cf7f2f9c3e80000205568d47b /src/openglgraphics.h
parent941e0cfda282b2461e500fcdf5828a7e20bf6da6 (diff)
downloadmana-0de989625ed27003420ca3bd6a55183901564fbb.tar.gz
mana-0de989625ed27003420ca3bd6a55183901564fbb.tar.bz2
mana-0de989625ed27003420ca3bd6a55183901564fbb.tar.xz
mana-0de989625ed27003420ca3bd6a55183901564fbb.zip
Reducing the code duplication a little more.
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r--src/openglgraphics.h7
1 files changed, 6 insertions, 1 deletions
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;