Scaleform::Platform::AppBase
class AppBase : public NewOverrideBase<Stat_Default_Mem>;
AppBase is a base application class that sample programs using the Platform derive from. AppBase class handles system-specific window initialization, input handling and frame processing.
Application is expected to work in three steps:
1. OnInit() - Called on startup, expected to setup window and graphics.
2. OnUpdateFrame() - Called in a loop by the system, expecting to both advance the frame and update display. Application should call Shutdown() to begin exit procedure.
3. OnShutdown() - Called when shutting down application.
Enumeration |
Description |
Mask bits for the type of multi-touch event that is performed such as pan, rotate, swipe, zoom, tap etc. | |
|
Method |
Description |
AppBase constructor. | |
AppBase Main function body used on some platforms. | |
Applies default command line arguments to ViewConfig. | |
Brings the window to the front. | |
AppBase class creation function used by SF_PLATFORM_APP. | |
AppBase class deletion function. | |
Enables the cursor on the window. | |
Gets the platform-specific app implementation. | |
Returns the render thread on which the application is running. | |
Returns the command line arguments once they have been parsed. | |
Returns the threading type suggested by arguments. | |
Gets the device capabilities. | |
Returns directory for additional content. | |
Returns the cursor set on the window. | |
Returns default file path prefix for platform. | |
Returns the rendering device. | |
Returns the window of the rendering device. | |
Returns the number of displays that the platform has. | |
Returns the actual frame time applied to OnUpdateFrame. | |
Returns the number of keyboards available. | |
Returns the number of mice or similar controllers available. | |
Returns the current position of the mouse. | |
Returns current orientation. | |
Returns the platform name as a string. | |
Returns the amount to reduce the viewport by to fit in the visible area on TVs. | |
Returns directory for save data. | |
Reports the current view configuration. | |
Returns the current view size. | |
Returns the title set for the window. | |
Called during initialization to allow user to add program-specific command line argument descriptions. | |
Checks if the platform is a console. | |
| |
Determines if the cursor is enabled on the window. | |
Determines whether the orientation is locked. | |
Determines whether the game pad is connected with the application. | |
Returns true once Shutdown was called or program was closed. | |
Maximizes the window. | |
Minimizes the window size. | |
A notification that comes from a system to the player about virtual keyboard disappearance. | |
A notification that comes from a system to the player about virtual keyboard appearance. | |
Called to notify application about updates from accelerometer sensor. | |
Called after parsing the command line. | |
Called when "UI" closebox is pressed. Default behavior triggers program shutdown. | |
Used for changing stereo after the startup. | |
Called to notify application about file(s) dropped into the window. | |
Called to set/kill focus. | |
Called to pass IME events to the IME Manager. | |
Called to do initialization, including SetupWindow, render thread creation and graphics init. | |
Called to notify application about a keyboard event. | |
Called to notify application about mouse button events. | |
Invoked whenever mouse movement occurs. | |
Invoked for mouse wheel support. | |
Notifies the application when the screen orientation changes. | |
Called to notify application about gamepad events. | |
Called to pause the movie clip. | |
Called to notify application about updates from location sensor. | |
Called to notify application about a manipulation/gesture event. | |
Called to notify application about a manipulation/gesture being performed such as movement of fingers. | |
Called to notify application when a manipulation is completed. | |
Called to notify application about a multi-touch event. | |
Called to resume a movie clip that is paused. | |
Called to perform shutdown tasks before application exit. | |
Called on window resize and should re-initialize renderer for the new view. | |
Called when sizing begins and ends. | |
| |
| |
Called to notify application about beginning of a touch event such as a finger placed on the screen. | |
Called to notify application about the end of a touch event such as release of finger from the screen. | |
Called to notify application about touch movement across the window screen. | |
Called to notify application about keyboard content change. | |
Called in a loop to advance and update frame rendering. | |
Resets current input focus to null. | |
Restores the window to its previous size. | |
Sets the cursor state for the window to the desired type. | |
Configures how often OnUpdateFrame will be called by default. | |
Sets the screen orientation mode. | |
Creates a window and initializes the application class. | |
Changes/sets the window title. | |
Cleans up the application and kills the window. | |
Takes a screen shot, saving it as the provided filename. | |
Determines if the ViewConfig has the passed flag set. |
Structure |
Description |
Base class for platform specific IME events passed to OnIMEEvent. |
Platform.h