This is exactly what I need. Thank you for your work.
However, I have problem implementing it. I paste the code into Dev C++ and i got several errors. 43 C:\irrlicht1.6\examples\06.2DGraphics - Copy\main.cpp conversion from `const irr::core::dimension2d<irr::u32>' to non-scalar type `irr::core ...