-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from avivbeeri/release/1.2.0
Release/1.2.0
- Loading branch information
Showing
15 changed files
with
378 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,80 @@ | ||
[< Back](.) | ||
|
||
dome | ||
================ | ||
# dome | ||
|
||
The `dome` module allows you to control various aspects of how DOME as an application operates. | ||
|
||
It contains the following classes: | ||
|
||
* [Process](#process) | ||
* [Window](#window) | ||
- [Process](#process) | ||
- [Version](#version) | ||
- [Window](#window) | ||
|
||
## Process | ||
|
||
### Static Methods | ||
|
||
#### `static exit(): Void` | ||
|
||
#### `static exit(code: Number): Void` | ||
|
||
Allows you to programmatically close DOME. This command behaves a little differently based on whether an error code is provided (defaults to `0`): | ||
* If `code` is `0`, then this will immediately shutdown DOME in a graceful manner, but no other Wren code will execute after this call. | ||
* Otherwise, the current Fiber will be aborted, the game loop will exit and DOME will shutdown. | ||
|
||
- If `code` is `0`, then this will immediately shutdown DOME in a graceful manner, but no other Wren code will execute after this call. | ||
- Otherwise, the current Fiber will be aborted, the game loop will exit and DOME will shutdown. | ||
|
||
## Version | ||
This class provides information about the version of DOME which is currently running. You can use this to check that all the features you require are supported. | ||
DOME uses semantic versioning, split into a major.minor.patch breakdown. | ||
|
||
### Static Fields | ||
#### `static major: Number` | ||
The major component of the version number. | ||
#### `static minor: Number` | ||
The minor component of the version number. | ||
#### `static patch: Number` | ||
The patch component of the version number. | ||
#### `static toString: String` | ||
A string containing the complete semantic version of the DOME instance running. | ||
|
||
#### `static toList: List<Number>` | ||
A list of the version components, in `[major, minor, patch]` order. | ||
|
||
### Static Methods | ||
#### `static atLeast(version: String): boolean` | ||
This takes a version as a string of the form `x.y.z`, and returns true if the current version of DOME is at least that of the version specified. | ||
|
||
|
||
## Window | ||
|
||
### Static Fields | ||
|
||
#### `static fullscreen: Boolean` | ||
|
||
Set this to switch between Windowed and Fullscreen modes. | ||
|
||
#### `static height: Number` | ||
|
||
This is the height of the window/viewport, in pixels. | ||
|
||
#### `static lockstep: Boolean` | ||
|
||
Setting this to true will disable "catch up" game loop behaviour. This is useful for lighter games, or on systems where you experience a little stuttering at 60fps. | ||
|
||
#### `static title: String` | ||
|
||
This allows you to set and get the title of the DOME window. | ||
|
||
#### `static vsync: String` | ||
|
||
Setting this to true will make the renderer wait for VSync before presenting to the display. Changing this value is an expensive operation and so shouldn't be done frequently. | ||
|
||
### Static Methods | ||
#### `static width: Number` | ||
|
||
This is the width of the window/viewport, in pixels. | ||
|
||
### Static Methods | ||
|
||
#### `static resize(width: Number, height: Number): Void` | ||
|
||
This allows you to control the size of DOME's window. The viewport will scale accordingly, but the canvas will NOT resize. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.