| OpenEnroth 9cf7432
    | 
#include <Camera.h>
| Public Member Functions | |
| void | ViewTransform (int x, int y, int z, int *transformed_x, int *transformed_y, int *transformed_z) | 
| void | ViewTransform (RenderVertexSoft *a1a, unsigned int uNumVertices) | 
| bool | ViewClip (int x, int y, int z, int *transformed_x, int *transformed_y, int *transformed_z, bool dont_show=false) | 
| void | Project (int x, int y, int z, int *screenspace_x, int *screenspace_y) | 
| void | Project (RenderVertexSoft *pVertices, unsigned int uNumVertices, bool fit_into_viewport=false) | 
| bool | CullFaceToCameraFrustum (RenderVertexSoft *pInVertices, unsigned int *pOutNumVertices, RenderVertexSoft *pVertices, signed int NumFrustumPlanes) | 
| bool | CullFaceToFrustum (RenderVertexSoft *inVerts, unsigned int *pOutNumVertices, RenderVertexSoft *pOutVertices, Planef *frustum, signed int uNumPlanes) | 
| bool | ClipFaceToFrustum (RenderVertexSoft *pInVertices, unsigned int *pOutNumVertices, RenderVertexSoft *pVertices, const Planef *CameraFrustrum) | 
| void | BuildViewFrustum () | 
| void | CreateViewMatrixAndProjectionScale () | 
| void | debug_outline_sw (RenderVertexSoft *a2, unsigned int uNumVertices, Color uDiffuse32, float a5) | 
| void | do_draw_debug_line_sw (RenderVertexSoft *pLineBegin, Color sStartDiffuse32, RenderVertexSoft *pLineEnd, Color sEndDiffuse32, unsigned int uOutNumVertices, float z_stuff) | 
| bool | is_face_faced_to_cameraBLV (BLVFace *pFace) | 
| bool | is_face_faced_to_cameraODM (ODMFace *pFace, RenderVertexSoft *a2) | 
| void | CullByNearClip (RenderVertexSoft *pverts, unsigned int *unumverts) | 
| void | CullByFarClip (RenderVertexSoft *pverts, unsigned int *unumverts) | 
| float | GetMouseInfoDepth () | 
| void | CalculateRotations (int cameraYaw, int cameraPitch) | 
| float | GetNearClip () const | 
| float | GetFarClip () const | 
| Static Public Member Functions | |
| static void | GetFacetOrientation (const Vec3f &normal, Vec3f *outU, Vec3f *outV) | 
| Public Attributes | |
| glm::mat3x3 | ViewMatrix = {} | 
| std::array< glm::vec4, 6 > | FrustumPlanes = {{}} | 
| float | fov_y_deg = 0 | 
| float | screenCenterX = 0 | 
| float | screenCenterY = 0 | 
| float | ViewPlaneDistPixels = 0 | 
| int | odm_fov_deg = 75 | 
| float | odm_fov_rad = odm_fov_deg * M_PI / 180.0f | 
| int | blv_fov_deg = 60 | 
| float | blv_fov_rad = blv_fov_deg * M_PI / 180.0f | 
| float | aspect = 0 | 
| int | _viewYaw = 0 | 
| int | _viewPitch = 0 | 
| float | _yawRotationSine = 0 | 
| float | _yawRotationCosine = 0 | 
| float | _pitchRotationSine = 0 | 
| float | _pitchRotationCosine = 0 | 
| glm::vec3 | vCameraPos = {} | 
| void Camera3D::BuildViewFrustum | ( | ) | 
| void Camera3D::CalculateRotations | ( | int | cameraYaw, | 
| int | cameraPitch | ||
| ) | 
| bool Camera3D::ClipFaceToFrustum | ( | RenderVertexSoft * | pInVertices, | 
| unsigned int * | pOutNumVertices, | ||
| RenderVertexSoft * | pVertices, | ||
| const Planef * | CameraFrustrum | ||
| ) | 
| void Camera3D::CreateViewMatrixAndProjectionScale | ( | ) | 
| void Camera3D::CullByFarClip | ( | RenderVertexSoft * | pverts, | 
| unsigned int * | unumverts | ||
| ) | 
| void Camera3D::CullByNearClip | ( | RenderVertexSoft * | pverts, | 
| unsigned int * | unumverts | ||
| ) | 
| bool Camera3D::CullFaceToCameraFrustum | ( | RenderVertexSoft * | pInVertices, | 
| unsigned int * | pOutNumVertices, | ||
| RenderVertexSoft * | pVertices, | ||
| signed int | NumFrustumPlanes | ||
| ) | 
| bool Camera3D::CullFaceToFrustum | ( | RenderVertexSoft * | inVerts, | 
| unsigned int * | pOutNumVertices, | ||
| RenderVertexSoft * | pOutVertices, | ||
| Planef * | frustum, | ||
| signed int | uNumPlanes | ||
| ) | 
| void Camera3D::debug_outline_sw | ( | RenderVertexSoft * | a2, | 
| unsigned int | uNumVertices, | ||
| Color | uDiffuse32, | ||
| float | a5 | ||
| ) | 
| void Camera3D::do_draw_debug_line_sw | ( | RenderVertexSoft * | pLineBegin, | 
| Color | sStartDiffuse32, | ||
| RenderVertexSoft * | pLineEnd, | ||
| Color | sEndDiffuse32, | ||
| unsigned int | uOutNumVertices, | ||
| float | z_stuff | ||
| ) | 
| float Camera3D::GetFarClip | ( | ) | const | 
| float Camera3D::GetMouseInfoDepth | ( | ) | 
| float Camera3D::GetNearClip | ( | ) | const | 
| bool Camera3D::is_face_faced_to_cameraBLV | ( | BLVFace * | pFace | ) | 
| bool Camera3D::is_face_faced_to_cameraODM | ( | ODMFace * | pFace, | 
| RenderVertexSoft * | a2 | ||
| ) | 
| void Camera3D::Project | ( | int | x, | 
| int | y, | ||
| int | z, | ||
| int * | screenspace_x, | ||
| int * | screenspace_y | ||
| ) | 
| void Camera3D::Project | ( | RenderVertexSoft * | pVertices, | 
| unsigned int | uNumVertices, | ||
| bool | fit_into_viewport = false | ||
| ) | 
| bool Camera3D::ViewClip | ( | int | x, | 
| int | y, | ||
| int | z, | ||
| int * | transformed_x, | ||
| int * | transformed_y, | ||
| int * | transformed_z, | ||
| bool | dont_show = false | ||
| ) | 
| void Camera3D::ViewTransform | ( | int | x, | 
| int | y, | ||
| int | z, | ||
| int * | transformed_x, | ||
| int * | transformed_y, | ||
| int * | transformed_z | ||
| ) | 
| void Camera3D::ViewTransform | ( | RenderVertexSoft * | a1a, | 
| unsigned int | uNumVertices | ||
| ) | 
| float Camera3D::_pitchRotationCosine = 0 | 
| float Camera3D::_pitchRotationSine = 0 | 
| int Camera3D::_viewPitch = 0 | 
| int Camera3D::_viewYaw = 0 | 
| float Camera3D::_yawRotationCosine = 0 | 
| float Camera3D::_yawRotationSine = 0 | 
| float Camera3D::aspect = 0 | 
| int Camera3D::blv_fov_deg = 60 | 
| float Camera3D::blv_fov_rad = blv_fov_deg * M_PI / 180.0f | 
| float Camera3D::fov_y_deg = 0 | 
| std::array<glm::vec4, 6> Camera3D::FrustumPlanes = {{}} | 
| int Camera3D::odm_fov_deg = 75 | 
| float Camera3D::odm_fov_rad = odm_fov_deg * M_PI / 180.0f | 
| float Camera3D::screenCenterX = 0 | 
| float Camera3D::screenCenterY = 0 | 
| glm::vec3 Camera3D::vCameraPos = {} | 
| glm::mat3x3 Camera3D::ViewMatrix = {} | 
| float Camera3D::ViewPlaneDistPixels = 0 |