Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SceneEditor Class Referencefinal

Scene editor interface. More...

#include <SceneEditor.hpp>

Public Member Functions

 SceneEditor (RenderingConfig &config, Window &window)
 
void draw () override
 
void update () override
 
void physics (double fullTime, double frameTime) override
 
void resize () override
 
- Public Member Functions inherited from CameraApp
 CameraApp (RenderingConfig &config, Window &window)
 
virtual void update () override
 
virtual void physics (double fullTime, double frameTime)
 
- Public Member Functions inherited from Application
 Application (RenderingConfig &config, Window &window)
 
virtual void draw ()=0
 
virtual void update ()
 
virtual void finish ()
 
virtual void resize ()=0
 
double timeElapsed ()
 
double frameTime ()
 
double frameRate ()
 
Windowwindow ()
 
virtual ~Application ()
 
 Application (const Application &)=delete
 
Applicationoperator= (const Application &)=delete
 
 Application (Application &&)=delete
 
Applicationoperator= (Application &&)=delete
 

Private Member Functions

void setScene (const std::shared_ptr< Scene > &scene)
 

Private Attributes

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.
 

Additional Inherited Members

- Protected Member Functions inherited from CameraApp
void freezeCamera (bool shouldFreeze)
 
- Protected Attributes inherited from CameraApp
ControllableCamera _userCamera
 The interactive camera.
 
- Protected Attributes inherited from Application
RenderingConfig_config
 The current configuration.
 
std::unique_ptr< DebugViewer_debug
 Debug viewer.
 

Detailed Description

Scene editor interface.

Inherits CameraApp.

Constructor & Destructor Documentation

◆ SceneEditor()

SceneEditor::SceneEditor ( RenderingConfig config,
Window window 
)
explicit

Constructor.

Parameters
configthe configuration to apply
windowthe window to render to

Member Function Documentation

◆ draw()

void SceneEditor::draw ( )
overridevirtual

Draw the scene and effects

Implements Application.

◆ physics()

void SceneEditor::physics ( double  fullTime,
double  frameTime 
)
overridevirtual

Perform physics simulation update.

Parameters
fullTimethe time elapsed since the beginning of the render loop
frameTimethe duration of the last frame
Note
This function can be called multiple times per frame.

Reimplemented from CameraApp.

◆ resize()

void SceneEditor::resize ( )
overridevirtual

Handle a window resize event.

Implements Application.

◆ setScene()

void SceneEditor::setScene ( const std::shared_ptr< Scene > &  scene)
private

Set the scene to display.

Parameters
scenethe new scene

◆ 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: