IVideoDriver
Code: Select all
m_pDriver->draw2DImage(windowskin, rect<s32>(x, y+6, x+6, tempY-6), irr::core::rect<irr::s32>(LT_LIN_ST_X, LT_LIN_ST_Y, LT_LIN_END_X, LT_LIN_END_Y), 0, wincolor, true);
virtual void irr::video::IVideoDriver::draw2DImage ( const video::ITexture * texture,
const core::rect< s32 > & destRect,
const core::rect< s32 > & sourceRect,
const core::rect< s32 > * clipRect = 0,
video::SColor * colors = 0,
bool useAlphaChannelOfTexture = false
)
is implemented in the engine (checked docs and source) but, then why do I get this error when compiling
c:\source\gui\cwindow.cpp(62) : error C2664: 'void irr::video::IVideoDriver::draw2DImage(const irr::video::ITexture *,const irr::core::position2d<T> &,const irr::core::rect<T> &,const irr::core::rect<T> *,irr::video::SColor,bool)' : cannot convert parameter 2 from 'irr::core::rect<T>' to 'const irr::core::position2d<T> &'
with
[
T=irr::s32
]
Reason: cannot convert from 'irr::core::rect<T>' to 'const irr::core::position2d<T>'
with
[
T=irr::s32
]
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Oh,and I use MSVC 2005 express (MS C++ compiler 2005)