diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-12-25 23:23:53 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-12-25 23:23:53 +0200 |
commit | 822621f79239fadd232243a38120b4673efe60fe (patch) | |
tree | 35b0f77cabcb8ce39eb0a87efa144959725e8991 /src/irrlichtwrapper.cpp | |
parent | 07a759fdb8c3239aabb271cbd24e8b24b2dee435 (diff) | |
download | minetest-822621f79239fadd232243a38120b4673efe60fe.tar.gz minetest-822621f79239fadd232243a38120b4673efe60fe.tar.bz2 minetest-822621f79239fadd232243a38120b4673efe60fe.zip |
some... stuff. dunno. 8-)
Diffstat (limited to 'src/irrlichtwrapper.cpp')
-rw-r--r-- | src/irrlichtwrapper.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/irrlichtwrapper.cpp b/src/irrlichtwrapper.cpp index 81cd7f9f0..8bd29b634 100644 --- a/src/irrlichtwrapper.cpp +++ b/src/irrlichtwrapper.cpp @@ -120,17 +120,22 @@ video::ITexture * CrackTextureMod::make(video::ITexture *original, assert(baseimage); video::ITexture *other = driver->getTexture("../data/crack.png"); + + dstream<<__FUNCTION_NAME<<": crack texture size is " + <<other->getSize().Width<<"x" + <<other->getSize().Height<<std::endl; // We have to get the whole texture because getting a smaller area // messes the whole thing. It is probably a bug in Irrlicht. // NOTE: This doesn't work probably because some systems scale // the image to fit a texture or something... - /*video::IImage *otherimage = driver->createImage( - other, core::position2d<s32>(0,0), other->getSize());*/ - // This should work on more systems video::IImage *otherimage = driver->createImage( + other, core::position2d<s32>(0,0), other->getSize()); + // This should work on more systems + // - no, it doesn't, output is more random. + /*video::IImage *otherimage = driver->createImage( other, core::position2d<s32>(0,0), - v2u32(16, CRACK_ANIMATION_LENGTH * 16)); + v2u32(16, CRACK_ANIMATION_LENGTH * 16));*/ assert(otherimage); |