|  | 
| virtual void | update () | 
|  | App update method.  More... 
 | 
|  | 
| template<typename T , typename... Targs, typename  = std::enable_if<std::is_base_of_v<AppState, T>>> | 
| void | setState (Targs... args) | 
|  | 
|  | App () | 
|  | Contructs an App from ns::Config configuration. 
 | 
|  | 
|  | App (std::string title, sf::Vector2u resolution, float scale=1.f, int fps=Settings::user_config.frame_rate, int ups=Settings::user_config.update_rate) | 
|  | Constructs an App from constructor arguments.  More... 
 | 
|  | 
| virtual | ~App () | 
|  | Delete all Scene, Camera and DebugText objects and free loaded resources. 
 | 
|  | 
| auto | getTitle () const -> const std::string & | 
|  | Returns the title of the App.  More... 
 | 
|  | 
| auto | getWindow () -> AppWindow & | 
|  | Get the AppWindow.  More... 
 | 
|  | 
| auto | getMousePosition () const -> sf::Vector2f | 
|  | 
| auto | getMousePosition (Camera &cam) const -> sf::Vector2f | 
|  | 
| auto | getTouchPosition (int finger) const -> sf::Vector2f | 
|  | 
| auto | getTouchPosition (int finger, Camera &cam) const -> sf::Vector2f | 
|  | 
| auto | allScenes () -> std::list< Scene > & | 
|  | Get all the Scene objects created within the App.  More... 
 | 
|  | 
| auto | getScene (const std::string &name) -> Scene & | 
|  | Get a Scene by name.  More... 
 | 
|  | 
| auto | allCameras () -> std::list< Camera > & | 
|  | Get all the Camera objects created within the App.  More... 
 | 
|  | 
| auto | getCamera (const std::string &name) -> Camera & | 
|  | Get a Camera by name.  More... 
 | 
|  | 
| void | toggleFullscreen () | 
|  | Toggle fullscreen display. 
 | 
|  | 
| auto | getDt () const -> float | 
|  | 
| void | run () | 
|  | Starts the game loop. 
 | 
|  | 
| virtual void | preRender () | 
|  | 
| void | setShader (sf::Shader *shader) | 
|  | Set the shader to be applied when rendering.  More... 
 | 
|  | 
| auto | getShader () const -> sf::Shader * | 
|  | Get the current Shader.  More... 
 | 
|  | 
| void | toggleShader () | 
|  | Toggle shader. 
 | 
|  | 
| void | clearShader () | 
|  | Remove the shader.  More... 
 | 
|  | 
|  | 
| auto | createScene (const std::string &name) -> Scene & | 
|  | Creates a Scene object and returns a reference to it.  More... 
 | 
|  | 
| auto | createCamera (const std::string &name, int order, const ns::IntRect &view={{0, 0}, sf::Vector2i(Settings::user_config.resolution)}, const ns::FloatRect &viewport={0, 0, 1.f, 1.f}) -> Camera & | 
|  | Creates a Camera object and returns a reference to it.  More... 
 | 
|  | 
| auto | createCamera (const std::string &name, int order, const ns::FloatRect &viewport) -> Camera & | 
|  | Creates a Camera object and returns a reference to it.  More... 
 | 
|  | 
| void | addDebugText (const std::string &label, const sf::Vector2f &position, const sf::Color &color=ns::DebugTextInterface::color) | 
|  | Creates a label only DebugText object and render it on the AppWindow directly. 
 | 
|  | 
| template<typename T > | 
| void | addDebugText (const std::string &label, T *var_address, const sf::Vector2f &position, const sf::Color &color=ns::DebugTextInterface::color) | 
|  | Creates a DebugText object and render it on the AppWindow directly.  More... 
 | 
|  | 
| template<typename T > | 
| void | addDebugText (const std::string &label, std::function< T()> fn, const sf::Vector2f &position, const sf::Color &color=ns::DebugTextInterface::color) | 
|  | Creates a DebugText object and render it on the AppWindow directly.  More... 
 | 
|  | 
| void | sleep () | 
|  | The App enters sleep mode, the App will not update. Used for Android when application runs in background. 
 | 
|  | 
| void | awake () | 
|  | The App awakes from sleep mode. Used for Android when application run as main process. 
 | 
|  | 
| void | onEvent (const sf::Event &event) override | 
|  | Handles SFML events.  More... 
 | 
|  | 
Definition at line 290 of file App.hpp.