|
Aurore
A Switch-like interface for your app, on every screen
|
#include <aurore/core/inspector.hpp>
Public Types | |
| enum class | Mode { CLOSED , LIVE , BROWSE } |
Static Public Member Functions | |
| static void | setEnabled (bool enabled) |
| static bool | isEnabled () |
| static void | setMode (Mode mode) |
| static Mode | getMode () |
| static bool | isOpen () |
| static void | processInput (InputManager *input, ControllerState *state) |
| static void | beginFrame () |
| static void | draw (FrameContext *ctx) |
| static void | forgetView (View *view) |
| static void | recordColor (const std::string &name, NVGcolor color) |
| static void | recordMetric (const std::string &name, float value) |
Static Public Attributes | |
| static View * | recordTarget = nullptr |
| static bool | recording = false |
The built-in inspector, turned on with Application::setInspectorEnabled() (docs/inspector.md). Closed, it only watches for its toggle: F12 on a keyboard, or both sticks pressed in together (L3 + R3) on a controller. Each press goes one step further:
The rest of this class is what the core calls; an app only needs Application::setInspectorEnabled().
|
strong |
|
static |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
Reads the toggle and, when browsing, the controller, whose buttons it then clears from state so that the app does not see them.
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |