The following tables list the members exposed by TAgkApplication.
|
Name |
Description |
![]() ![]() ![]() |
Whether the application should keep running (and updating) even when it becomes inactive. Default to True. | |
![]() ![]() |
| |
![]() ![]() ![]() |
Is called if your app has been passed to the background and has just been reactivated. You should activate a pause screen when this happens. | |
![]() ![]() ![]() |
Performs application cleanup. This method is called before the window and OpenGL contexts will be destroyed. You can override this method to cleanup your application resources. | |
![]() ![]() ![]() |
Performs application startup. This method is called after the window and OpenGL contexts have been created. You can override this method to initialize the application and load application resources. | |
![]() ![]() ![]() |
Is called during each iteration of the main loop to update the game state. The DeltaTimeSec is the number of seconds that has passed since the last call to Update. By default, this method is passed on to the current scene, but you can override this behavior. |
|
Name |
Description |
![]() |
TAgkApplication | |
![]() ![]() |
Destroys and frees this object. | |
![]() |
Terminates the application. | |
![]() |
Set the current scene to display. If the previously active scene has AutoFree set to True, then the previous scene will be freed. | |
![]() |
Sets the desired rate that frames will be drawn to the screen, in frames per second (fps). | |
![]() |
The default approach for the coordinate system in AGK is to use a percentage based system where 0,0 represents the top left corner and 100,100 the bottom right. The alternative approach is to treat the platform with a fixed resolution e.g. 320 x 480. Any platforms that don't match this resolution will be scaled to fit as much as possible with black borders where necessary. |
|
Name |
Description |
![]() |
The device orientations the AGK will allow the app to rotate to. Defaults to all orientations. | |
![]() |
Sets how the screen transitions from a landscape to a portrait orientation and vice versa. This is only applicable when orientation changes are supported. To specify orientations use the AllowedDeviceOrientations property. | |
![]() ![]() |
The currently running scene. | |
![]() ![]() |
Sets the default filter for textures when the texture is larger than the screen space it is displayed in. | |
![]() ![]() |
Sets the default filter for textures when the texture is smaller than the screen space it is displayed in. | |
![]() |
This property is used in conjunction with the default percentage based positioning system in AGK. If using this approach you will need to specify a display aspect using this property, so that AGK knows how to correctly display entities on screen. | |
![]() ![]() |
The number of objects that this object owns. | |
![]() ![]() |
The objects that this object owns. | |
![]() ![]() |
The owner of this object. | |
![]() |
Desired height of the screen or application window. Mostly applicable to window based platforms (since screen size is usually fixed for full-screen application running on mobile devices). | |
![]() |
Desired width of the screen or application window. Mostly applicable to window based platforms (since screen size is usually fixed for full-screen application running on mobile devices). | |
![]() |
Sets whether sprites at the same depth should be sorted by creation order. | |
![]() |
Sets whether the AGK should sort opaque sprites by depth when drawing. This draws sprites at the front of the screen first, which fills the depth buffer so later sprites behind can be skipped. This will improve performance on fill rate limited devices where you are drawing lots of overlapping opaque sprites. | |
![]() |
Sets whether the AGK should sort sprites by texture when drawing to limit the number of texture changes. This will improve performance on devices that do not cope well with frequent state changes, but may reduce performance if textures on sprites are changed frequently. | |
![]() |
Sets whether the AGK should sort transparent sprites by depth when drawing. This draws sprites at the back of the screen first to achieve the correct blending result when transparent sprites overlap. | |
![]() |
The tile (caption) of the application window. Mostly applicable to window based platforms. | |
![]() |
Whether to use the native (high) resolution of the device, or a scale (low) resolution. | |
![]() ![]() |
Returns the coordinate for bottom of the screen. | |
![]() ![]() |
Returns the coordinate for the far right side of the screen. | |
![]() ![]() |
Sets whether vertical sync should be turned on or off. This is not supported on all devices. | |
![]() ![]() |
Internal handle to the main application window. |
Copyright (c) 2012. All rights reserved.
|