diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-03-20 23:26:28 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-03-20 23:26:28 +0000 |
commit | 2dd7568047c7b0af8a7c8a656f1bb6708fb856c6 (patch) | |
tree | 42158bdf4b74309ab5c2193f690521d3c9c4111f /src/resources/image.h | |
parent | 70da45eca47e5d7c429b49f5c8ec02a5e2bfb47f (diff) | |
download | mana-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.h | 6 |
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); |