Commit 28482fb6 authored by hybrid's avatar hybrid

Add aprroximated implementation of one of the 2d image methods in Nulldriver....

Add aprroximated implementation of one of the 2d image methods in Nulldriver. This enables support in the software drivers as well.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2795 dfc29bdd-3216-0410-991c-e03cc46cb475
parent de53c9b7
...@@ -697,6 +697,9 @@ void CNullDriver::draw2DImage(const video::ITexture* texture, const core::rect<s ...@@ -697,6 +697,9 @@ void CNullDriver::draw2DImage(const video::ITexture* texture, const core::rect<s
const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect, const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect,
const video::SColor* const colors, bool useAlphaChannelOfTexture) const video::SColor* const colors, bool useAlphaChannelOfTexture)
{ {
draw2DImage(texture, core::position2d<s32>(destRect.UpperLeftCorner),
sourceRect, clipRect, colors?colors[0]:0xffffffff,
useAlphaChannelOfTexture);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment