Manages scene initialization and lifecycle for the viewport.
More...
#include <ViewportScene.h>
Manages scene initialization and lifecycle for the viewport.
◆ ViewportScene()
| Editor::Components::ViewportScene::ViewportScene |
( |
| ) |
|
◆ ~ViewportScene()
| Editor::Components::ViewportScene::~ViewportScene |
( |
| ) |
|
◆ GetCamera()
| ::BaseCamera & Editor::Components::ViewportScene::GetCamera |
( |
| ) |
|
|
inline |
Get the camera instance.
- Returns
- Reference to the camera
◆ GetCurrentCameraType()
| CameraType Editor::Components::ViewportScene::GetCurrentCameraType |
( |
| ) |
const |
Get current camera type.
- Returns
- Current camera type
◆ GetRenderer()
| ::Renderer & Editor::Components::ViewportScene::GetRenderer |
( |
| ) |
|
|
inline |
Get the renderer instance.
- Returns
- Reference to the renderer
◆ GetScene()
| ::Scene & Editor::Components::ViewportScene::GetScene |
( |
| ) |
|
|
inline |
Get the scene instance.
- Returns
- Reference to the scene
◆ Initialize()
| void Editor::Components::ViewportScene::Initialize |
( |
| ) |
|
Initialize the scene with demo objects.
◆ IsInitialized()
| bool Editor::Components::ViewportScene::IsInitialized |
( |
| ) |
const |
Check if scene is properly initialized.
- Returns
- True if all components are created
◆ SetCameraViewportBounds()
| void Editor::Components::ViewportScene::SetCameraViewportBounds |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
width, |
|
|
float |
height |
|
) |
| |
Set camera viewport bounds for input handling.
- Parameters
-
| x | X position |
| y | Y position |
| width | Width |
| height | Height |
◆ SwitchCamera()
| void Editor::Components::ViewportScene::SwitchCamera |
( |
CameraType |
type | ) |
|
Switch to a different camera type.
- Parameters
-
| type | The camera type to switch to |
◆ UpdateCameraAspect()
| void Editor::Components::ViewportScene::UpdateCameraAspect |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Update camera aspect ratio.
- Parameters
-
◆ UpdateCameraSettings()
| void Editor::Components::ViewportScene::UpdateCameraSettings |
( |
float |
fov, |
|
|
float |
orthoSize, |
|
|
float |
nearPlane, |
|
|
float |
farPlane |
|
) |
| |
Update camera settings.
- Parameters
-
| fov | Field of view for perspective cameras |
| orthoSize | Orthographic size for parallel cameras |
The documentation for this class was generated from the following files: