I try to modify the source of the tutorial n°3, i want to draw on the window the coordinates of the camera, but i don't know, how can i do that... Somebody can help me please?
Bob (a French user of Irrlicht
Code: Select all
vector3df cam_pos = YourSceneManager->getActiveCamera()->getPosition();
Code: Select all
using namespace std;
stringstream sstr << cam_pos.X << "-" << cam_pos.Y << "-" << cam_pos.Z;
string str << sstr;
Code: Select all
YouGuiHandle->addStaticText( str.c_str(), rect<int>(10,10,200,30), true);