Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
CameraSettings.h
1/*
2Copyright (C) 2019,2022,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16#ifndef AEONGAMES_CAMERA_SETTINGS_H
17#define AEONGAMES_CAMERA_SETTINGS_H
18
19#include "ui_CameraSettings.h"
20
21namespace AeonGames
22{
24 class CameraSettings : public QDialog
25 {
26 Q_OBJECT
27 public:
33 CameraSettings ( QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags() );
35 ~CameraSettings() override;
38 float GetFieldOfView() const;
41 float GetNear() const;
44 float GetFar() const;
45 private slots:
48 void setFieldOfView ( double aFieldOfView );
51 void setNear ( double aNear );
54 void setFar ( double aFar );
57 void clicked ( QAbstractButton* aButton );
58 signals:
61 void fieldOfViewChanged ( double aFieldOfView );
64 void nearChanged ( double aNear );
67 void farChanged ( double aFar );
68 private:
69 Ui::CameraSettings mUi;
70 };
71}
72#endif
void nearChanged(double aNear)
Emitted when the near plane changes.
void fieldOfViewChanged(double aFieldOfView)
Emitted when the field of view changes.
float GetNear() const
Get the near clipping plane distance.
~CameraSettings() override
Destructor.
float GetFar() const
Get the far clipping plane distance.
void farChanged(double aFar)
Emitted when the far plane changes.
CameraSettings(QWidget *parent=Q_NULLPTR, Qt::WindowFlags f=Qt::WindowFlags())
Construct the camera settings dialog.
float GetFieldOfView() const
Get the field of view angle.
<- This is here just for the literals
Definition AABB.hpp:31