| 1178 | } |
| 1179 | |
| 1180 | void OpenGLGuiHelper::resetCamera(float camDist, float yaw, float pitch, float camPosX, float camPosY, float camPosZ) |
| 1181 | { |
| 1182 | if (getRenderInterface() && getRenderInterface()->getActiveCamera()) |
| 1183 | { |
| 1184 | getRenderInterface()->getActiveCamera()->setCameraDistance(camDist); |
| 1185 | getRenderInterface()->getActiveCamera()->setCameraPitch(pitch); |
| 1186 | getRenderInterface()->getActiveCamera()->setCameraYaw(yaw); |
| 1187 | getRenderInterface()->getActiveCamera()->setCameraTargetPosition(camPosX, camPosY, camPosZ); |
| 1188 | } |
| 1189 | } |
| 1190 | |
| 1191 | bool OpenGLGuiHelper::getCameraInfo(int* width, int* height, float viewMatrix[16], float projectionMatrix[16], float camUp[3], float camForward[3], float hor[3], float vert[3], float* yaw, float* pitch, float* camDist, float cameraTarget[3]) const |
| 1192 | { |
no test coverage detected