Code: Select all
void Draw2DStuff()
{
wchar_t tmp[1024];
core::vector3df v=camera->getRotation();
swprintf(tmp, 1024, L"camera x- %f",
v.X);
font->draw(tmp,
core::rect<s32>(0,00,300,80),
video::SColor(255,255,255,255));
swprintf(tmp, 1024, L"camera y- %f",
v.Y);
font->draw(tmp,
core::rect<s32>(0,20,300,80),
video::SColor(255,255,255,255));
swprintf(tmp, 1024, L"camera z- %f",
v.Z);
font->draw(tmp,
core::rect<s32>(0,40,300,80),
video::SColor(255,255,255,255));
}