Voltray Engine Docs
Loading...
Searching...
No Matches
Settings.h
Go to the documentation of this file.
1#pragma once
2#include "../UI/Panel.h"
3#include "../../Engine/Graphics/Camera/BaseCamera.h"
4
10namespace Editor::Components
11{
17 class Settings : public Panel
18 {
19 public:
24 void Draw() override;
25
26 private:
27 // Camera settings
28 CameraType m_selectedCameraType = CameraType::PERSPECTIVE;
29 float m_perspectiveFOV = 60.0f;
30 float m_orthographicSize = 5.0f;
31 float m_cameraNearPlane = 0.1f;
32 float m_cameraFarPlane = 100.0f;
33
34 // Helper methods
35 void DrawCameraSettings();
36 void DrawCameraSelector();
37 void DrawCameraSpecificSettings();
38 const char *GetCameraTypeName(CameraType type) const;
39 const char *GetCameraCategory(CameraType type) const;
40 };
41}
CameraType
Enumeration of all supported camera types.
Definition BaseCamera.h:17
A panel component that provides settings interface in the editor.
Definition Settings.h:18
void Draw() override
Renders the settings panel interface. @override Implements the abstract method from the Panel base cl...
Definition Settings.cpp:17
Base class for all UI panels in the editor.
Definition Panel.h:19
Represents the Inspector panel component in the Editor.
Definition Console.cpp:7