Application for the stencil demo.
More...
#include <StenciledApp.hpp>
|
std::unique_ptr< StenciledRenderer > | _renderer |
| Stenciled renderer.
|
|
Texture | _finalRender |
| The final render.
|
|
std::vector< std::shared_ptr< Scene > > | _scenes |
| The existing scenes.
|
|
std::vector< std::string > | _sceneNames |
| The associated scene names.
|
|
size_t | _currentScene = 0 |
| Currently selected scene.
|
|
Application for the stencil demo.
Inherits CameraApp.
◆ StenciledApp()
Constructor.
- Parameters
-
config | the configuration to apply when setting up |
window | the window to render to |
◆ draw()
void StenciledApp::draw |
( |
| ) |
|
|
overridevirtual |
◆ physics()
void StenciledApp::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 StenciledApp::resize |
( |
| ) |
|
|
overridevirtual |
Handle a window resize event, the configuration has been updated with the new size.
Implements Application.
◆ setScene()
void StenciledApp::setScene |
( |
const std::shared_ptr< Scene > & |
scene | ) |
|
|
private |
Select the scene to display.
- Parameters
-
◆ update()
void StenciledApp::update |
( |
| ) |
|
|
overridevirtual |
Per-frame update.
Reimplemented from CameraApp.
The documentation for this class was generated from the following files: