Esempio n. 1
0
//Ogre::Camera::rotate(Ogre::Quaternion const&)
void camera_rotate_q(CameraHandle handle, const coiQuaternion* q)
{
    Ogre::Camera* camera = static_cast<Ogre::Camera*>(handle);
    const Ogre::Quaternion quat(q->w, q->x, q->y, q->z);

    camera->rotate(quat);
}
Esempio n. 2
0
//Ogre::Camera::rotate(Ogre::Vector3 const&, Ogre::Radian const&)
void camera_rotate(CameraHandle handle, const coiVector3* axis, coiReal angle)
{
    Ogre::Camera* camera = static_cast<Ogre::Camera*>(handle);
    const Ogre::Vector3 v(axis->x, axis->y, axis->z);
    Ogre::Radian r(angle);

    camera->rotate(v, r);
}