summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-03-20 23:26:28 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-03-20 23:26:28 +0000
commit2dd7568047c7b0af8a7c8a656f1bb6708fb856c6 (patch)
tree42158bdf4b74309ab5c2193f690521d3c9c4111f /src/resources/image.h
parent70da45eca47e5d7c429b49f5c8ec02a5e2bfb47f (diff)
downloadmana-2dd7568047c7b0af8a7c8a656f1bb6708fb856c6.tar.gz
mana-2dd7568047c7b0af8a7c8a656f1bb6708fb856c6.tar.bz2
mana-2dd7568047c7b0af8a7c8a656f1bb6708fb856c6.tar.xz
mana-2dd7568047c7b0af8a7c8a656f1bb6708fb856c6.zip
Reduced amount of useless logging, calculate nearest power of two in a function
and only do the alpha check in software mode.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index c769ecb6..1bdfbf48 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -123,6 +123,12 @@ class Image : public Resource
#ifdef USE_OPENGL
Image(const std::string &idPath, GLuint glimage, int width, int height,
int texWidth, int texHeight);
+
+ /**
+ * Returns the first power of two equal or bigger than the input.
+ */
+ static int
+ powerOfTwo(int input);
#endif
Image(const std::string &idPath, SDL_Surface *image);