| 345 | } |
| 346 | |
| 347 | void SimpleCamera::getCameraUpVector(float up[3]) const |
| 348 | { |
| 349 | if (m_data->m_enableVR) |
| 350 | { |
| 351 | float viewMatTotal[16]; |
| 352 | getCameraViewMatrix(viewMatTotal); |
| 353 | up[0] = viewMatTotal[0]; |
| 354 | up[1] = viewMatTotal[4]; |
| 355 | up[2] = viewMatTotal[8]; |
| 356 | } |
| 357 | else |
| 358 | { |
| 359 | up[0] = float(m_data->m_cameraUp[0]); |
| 360 | up[1] = float(m_data->m_cameraUp[1]); |
| 361 | up[2] = float(m_data->m_cameraUp[2]); |
| 362 | } |
| 363 | } |
| 364 | |
| 365 | void SimpleCamera::getCameraForwardVector(float fwd[3]) const |
| 366 | { |
no outgoing calls
no test coverage detected