|
| | DialogWindow (const char *title, GameInfo gInfo) |
| | Constructs a DialogWindow.
|
| void | render () override |
| | Overrides the Engine's render function to draw the dialog content.
|
| void | close () |
| | Cleans up and shuts down the core engine components used by the dialog.
|
| void | stop () |
| | Sets the internal running flag to false, effectivelly stopping the dialog's run loop.
|
| bool | isRunning () const |
| | Checks if the dialog window is currently running.
|
| void | setDialogContent (const std::string &content) |
| | Sets the content string to be displayed in the dialog.
|
| | Engine (const char *title, int width, int height, GameInfo gInfo) |
| | Constructor for the Engine class.
|
| virtual bool | IsEditor () |
| | Returns true if the engine is running in editor mode.
|
| void | run (std::function< void()> onUpdateLoop=nullptr) |
| | Starts and runs the main game loop.
|
| vex::Entity | getCamera () |
| | Function returning the entity of the camera.
|
| void | setResolutionMode (ResolutionMode mode) |
| | Sets the resolution mode and updates the resolution manager.
|
| void | setPaused (bool paused) |
| | Internal function for handling pausing and resuming the game.
|
| bool | isPaused () const |
| | Function returning the current state of the game.
|
| ResolutionMode | getResolutionMode () const |
| | Returns the current resolution mode.
|
| ResolutionManager * | getResolutionManager () const |
| | returns a pointer to the resolution manager.
|
| void | setInputMode (InputMode mode) |
| | Function allowing for changing input mode at runtime.
|
| InputMode | getInputMode () const |
| | Returns the current input mode.
|
| void | setEnvironmentSettings (environment settings) |
| | Applies new global environment settings (lighting, shading) to the interface.
|
| environment | getEnvironmentSettings () |
| | Returns the current environment settings.
|
| Interface * | getInterface () |
| | Returns Interface, used internally.
|
| std::shared_ptr< VirtualFileSystem > | getFileSystem () |
| | Returns std::shared_ptr of VirtualFileSystem.
|
| vex::Registry & | getRegistry () |
| | Returns a reference to vex::Registry.
|
| PhysicsSystem * | getPhysicsSystem () |
| | Returns pointer to PhysicsSystem.
|
| SceneManager * | getSceneManager () |
| | Returns pointer to SceneManager.
|
| std::shared_ptr< VexUI > | createVexUI () |
| | Creates and returns a shared pointer to a VexUI instance.
|
| int | GetCurrentFrame () |
| | Returns current frame number.
|
| void | setRenderPhysicsDebug (bool value) |
| | Function to enable/disable rendering collision shapes.
|
| virtual void | setFullscreen (bool enabled, bool exclusive=false) |
| | Function to enable/disable fullscreen mode. with optional exclusive parameter.
|
| bool | isFullscreen () |
| | Function to check if fullscreen mode is enabled.
|
| std::vector< std::string > | getLastLoadedScenes () |
| | Function to get the last loaded scenes.
|
| void | prepareScenesForHotReload () |
| | Prepares the engine for a hot-reload event.
|
| virtual void | processEvent (const SDL_Event &event, float deltaTime) |
| | Internal virtual function for handling window/keyboard events.
|
| virtual void | beginGame () |
| | Internal virtual function for handling stuff right at the beginning of the game but after initialization of the engine.
|
| virtual void | update (float deltaTime) |
| | Internal function for handling updates; called every frame before rendering.
|
| virtual void | refreshForObject () |
| | Internal virtual function for editor.
|
| void | quit () |
| | Simply sets m_running to false, Effectivelly soft shuting down the engine.
|
| void | WaitForGpu () |
| | Waits for the GPU to finish all pending operations.
|
| void | setFrameLimit (int fps) |
| | Sets the target frame rate limit.
|
| int | getFrameLimit () const |
| void | setVSync (bool enabled) |
| | Toggles VSync (Vertical Synchronization).
|
| bool | getVSync () const |
| | Returns the current state of VSync.
|
| float | getDeltaTime () const |
| | Returns the time since last frame.
|
| std::shared_ptr< AudioSystem > | getAudioSystem () const |
| | Returns the audio system.
|
A specialized Engine class for creating and managing modal dialog windows.
Definition at line 17 of file DialogWindow.hpp.