TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ ShowSettings()

void Camera::ShowSettings ( bool  renderWindow = false,
bool *  pOpen = nullptr 
)

Definition at line 107 of file Camera.cpp.

108{
109 if(pOpen == nullptr || *pOpen)
110 {
111 if (renderWindow)
112 {
113 ImGui::Begin(("Camera Controls##" + std::to_string(camID)).c_str(), pOpen);
114 }
115
116 ImGui::Text("Camera Position");
117 ImGui::DragFloat3("##cameraPosition", position, 0.1f);
118 ImGui::Separator();
119 ImGui::Separator();
120 ImGui::Text("Camera Rotation");
121 ImGui::DragFloat3("##cameraRotation", rotation, 10);
122 ImGui::Separator();
123 ImGui::Separator();
124 ImGui::Text("Projection Settings");
125 ImGui::Separator();
126 ImGui::DragFloat("FOV", &fov, 0.01f);
127 ImGui::DragFloat("Aspect Ratio", &aspect, 0.01f);
128 ImGui::DragFloat("Near Clipping", &cNear, 0.01f);
129 ImGui::DragFloat("Far Clipping", &cFar, 0.01f);
130
131 if (renderWindow)
132 {
133 ImGui::End();
134 }
135 }
136}