summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-10-18 18:39:48 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-10-18 18:39:48 +0000
commit86441fda9c561dd264039edc68ddabbf7cb54ce2 (patch)
treef9d15edf9587bc149a42399369bfcf3b9d5c5b27 /src/graphics.h
parentd3ab0ef7be4c1f0098acc08748c308091e75dfff (diff)
downloadmana-client-86441fda9c561dd264039edc68ddabbf7cb54ce2.tar.gz
mana-client-86441fda9c561dd264039edc68ddabbf7cb54ce2.tar.bz2
mana-client-86441fda9c561dd264039edc68ddabbf7cb54ce2.tar.xz
mana-client-86441fda9c561dd264039edc68ddabbf7cb54ce2.zip
Merged removal of dependency on Guichan OpenGL from trunk to 0.0 branch,
including optimization of OpenGL memory usage on modern OpenGL drivers. Patches by Guillaume Melquiond.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/graphics.h b/src/graphics.h
index 4637973f..564826a2 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -86,6 +86,12 @@ class Graphics : public gcn::SDLGraphics {
bool drawImage(Image *image, int x, int y);
/**
+ * Overrides with our own drawing method.
+ */
+ void drawImage(gcn::Image const *image, int srcX, int srcY,
+ int dstX, int dstY, int width, int height);
+
+ /**
* Blits an image onto the screen.
*
* @return <code>true</code> if the image was blitted properly
@@ -95,7 +101,8 @@ class Graphics : public gcn::SDLGraphics {
drawImage(Image *image,
int srcX, int srcY,
int dstX, int dstY,
- int width, int height);
+ int width, int height,
+ bool useColor = false);
virtual void
drawImagePattern(Image *image,