This compiles well:
Code: Select all
m_driver->draw2DImage(m_buf[id].img, dest, m_buf[id].src, NULL, NULL, true);
Code: Select all
m_driver->draw2DImage(m_buf[id].img, dest, m_buf[id].src, NULL, SColor(255,255,255,255), true);
Code: Select all
error: no matching function for call to `irr::video::IVideoDriver::draw2DImage(irr::video::ITexture*&, irr::core::rect<irr::s32>&, irr::core::rect<irr::s32>&, NULL, irr::video::SColor, bool)'
s\irrlicht-1.3\include\IVideoDriver.h:481: note: candidates are: virtual void irr::video::IVideoDriver::draw2DImage(irr::video::ITexture*, const irr::core::position2d<irr::s32>&)
s\irrlicht-1.3\include\IVideoDriver.h:498: note: virtual void irr::video::IVideoDriver::draw2DImage(irr::video::ITexture*, const irr::core::position2d<irr::s32>&, const irr::core::rect<irr::s32>&, const irr::core::rect<irr::s32>*, irr::video::SColor, bool)
s\irrlicht-1.3\include\IVideoDriver.h:523: note: virtual void irr::video::IVideoDriver::draw2DImage(irr::video::ITexture*, const irr::core::position2d<irr::s32>&, const irr::core::array<irr::core::rect<irr::s32>, irr::core::irrAllocator<irr::core::rect<irr::s32> > >&, const irr::core::array<irr::s32, irr::core::irrAllocator<irr::s32> >&, irr::s32, const irr::core::rect<irr::s32>*, irr::video::SColor, bool)
s\irrlicht-1.3\include\IVideoDriver.h:535: note: virtual void irr::video::IVideoDriver::draw2DImage(irr::video::ITexture*, const irr::core::rect<irr::s32>&, const irr::core::rect<irr::s32>&, const irr::core::rect<irr::s32>*, irr::video::SColor*, bool)
:: === Build finished: 5 errors, 0 warnings ===
What did I do wrong?