|
MochiEngine
|
The debug layer is a layer automatically injected in the Engine if the game is in debug mode. It provides a text indicating that it is a development build, an FPS counter and two perpendicular lines crossing at the center of the screen. More...
#include <DebugLayer.h>
Public Member Functions | |
| virtual void | InitLayer () override |
| Override this to initialize members and data of your layer when the engine adds this layer to the layer list. This is useful if you want to create the layer and delay its inclusion on the engine. | |
| virtual bool | Update (const float &dt) override |
| Override this to give your layer a way to be updated each frame. | |
| virtual void | Render () const override |
| Override this to send the render commands to the engine. This task could be done on the update, but making it here its clearer. | |
| virtual void | GUI () const override |
| Override this to draw the GUI of your layer. Even if this could be done anywhere, doing it here ensure it to be drawn after all rendering is done. | |
| virtual void | Debug () const override |
| Override this to print, draw or show debug GUI's. This will be called after all renderings and other GUIs and will only be shown while in DEBUG configuration. | |
| Public Member Functions inherited from Mochi::Layer | |
| Layer () | |
| Default constructor. It initializes with references to the engine subsystems. Should only be constructed after the engine is setup. | |
Additional Inherited Members | |
| Protected Attributes inherited from Mochi::Layer | |
| FS::PackCatalog * | mCatalog |
| Scripting::ScriptingManager * | mScripting |
| Graphics::Camera * | mCamera |
| Event::EventBus * | mEventBus |
| Graphics::AbstractGUI * | mGUI |
| Input::IActionManager * | mActionManager |
| Audio::IAudioManager * | mAudioManager |
| Graphics::IRenderer * | mRenderer |
| Debug::IGizmos * | mGizmos |
The debug layer is a layer automatically injected in the Engine if the game is in debug mode. It provides a text indicating that it is a development build, an FPS counter and two perpendicular lines crossing at the center of the screen.
|
overridevirtual |
Override this to print, draw or show debug GUI's. This will be called after all renderings and other GUIs and will only be shown while in DEBUG configuration.
Reimplemented from Mochi::Layer.
|
overridevirtual |
Override this to draw the GUI of your layer. Even if this could be done anywhere, doing it here ensure it to be drawn after all rendering is done.
Reimplemented from Mochi::Layer.
|
overridevirtual |
Override this to initialize members and data of your layer when the engine adds this layer to the layer list. This is useful if you want to create the layer and delay its inclusion on the engine.
Reimplemented from Mochi::Layer.
|
overridevirtual |
Override this to send the render commands to the engine. This task could be done on the update, but making it here its clearer.
Reimplemented from Mochi::Layer.
|
overridevirtual |
Override this to give your layer a way to be updated each frame.
| dt | The delta time |
Reimplemented from Mochi::Layer.