compvis
29-06-2009 03:34:37
Hi,
With CEGUI, i can implement:
Now i switch to MyGUI library, How can i implement a mouse ray with MyGUI like the code fragment ?
With CEGUI, i can implement:
K_VALUE Core::mousePressed(const OIS::MouseEvent &e, OIS::MouseButtonID id)
{
//CEGUI's injection
.....................................
CEGUI::Point mousePos = CEGUI::MouseCursor::getSingleton().getPosition();
Ray mouseRay = mCamera->getCameraToViewportRay(mousePos.d_x/float(arg.state.width), mousePos.d_y/float(arg.state.height));
return true;
}
Now i switch to MyGUI library, How can i implement a mouse ray with MyGUI like the code fragment ?