Scene editor interface.
More...
#include <SceneEditor.hpp>
|
EditorRenderer | _renderer |
| Scene renderer.
|
|
Texture | _sceneColor |
| Scene texture.
|
|
Texture | _sceneDepth |
| Scene depth texture.
|
|
Program * | _passthrough |
| Passthrough program.
|
|
std::vector< std::shared_ptr< Scene > > | _scenes |
| The existing scenes.
|
|
std::vector< std::string > | _sceneNames |
| The associated scene names.
|
|
int | _selectedObject = -1 |
| Currently selected object.
|
|
size_t | _currentScene = 0 |
| Currently selected scene.
|
|
bool | _paused = false |
| Pause the scene animations.
|
|
Inherits CameraApp.
◆ SceneEditor()
Constructor.
- Parameters
-
config | the configuration to apply |
window | the window to render to |
◆ draw()
void SceneEditor::draw |
( |
| ) |
|
|
overridevirtual |
◆ physics()
void SceneEditor::physics |
( |
double |
fullTime, |
|
|
double |
frameTime |
|
) |
| |
|
overridevirtual |
Perform physics simulation update.
- Parameters
-
fullTime | the time elapsed since the beginning of the render loop |
frameTime | the duration of the last frame |
- Note
- This function can be called multiple times per frame.
Reimplemented from CameraApp.
◆ resize()
void SceneEditor::resize |
( |
| ) |
|
|
overridevirtual |
◆ setScene()
void SceneEditor::setScene |
( |
const std::shared_ptr< Scene > & |
scene | ) |
|
|
private |
Set the scene to display.
- Parameters
-
◆ update()
void SceneEditor::update |
( |
| ) |
|
|
overridevirtual |
Perform once-per-frame update (buttons, GUI,...)
Reimplemented from CameraApp.
The documentation for this class was generated from the following files:
- src/tools/sceneeditor/SceneEditor.hpp
- src/tools/sceneeditor/SceneEditor.cpp