-
Notifications
You must be signed in to change notification settings - Fork 2
Tool Reference
Lucas Scharenbroich edited this page Jun 7, 2022
·
4 revisions
To introduce you to the capabilities of the GTE Tool Set the routines are grouped by function and briefly described in Table 1. These routines are described in detail later where they are separated into housekeeping routines (discussed in routine number order) and the rest of the GTE Tool Set routines (discussed in alphabetical order).
| Table 1 | ||
|---|---|---|
| GTE Tool Set routines and their functions | ||
| Routine | Description | |
| Housekeeping Routines | ||
| GTEBootInit | Initializes the GTE Tool Set; called only by the Tool Locator — must not be called by an application | |
| GTEStartUp | Starts up the GTE Tool Set for use by an application | |
| GTEShutDown | Shuts down the GTE Tool Set when an application quits | |
| GTEVersion | Returns the version number of the GTE Tool Set | |
| GTEReset | Resets the GTE Tool Set; called only when the system is reset — must not be called by an application | |
| GTEStatus | Indicates whether the GTE Tool Set is active | |
| Sprite Routines | ||
| GTECreateSpriteStamp | Creates a sprite stamp from the tile set | |
| GTEAddSprite | Add a active sprite to the scene | |
| GTEMoveSprite | Changes a sprite's location | |
| GTEUpdateSprite | Changes a sprite's tile set | |
| GTERemoveSprite | Removes a sprite from the scene | |
| Tile Routines | ||
| GTELoadTileSet | Copies a tileset into the GTE tileset memory | |
| GTESetTile | Assigns a tile to a tile map index | |
| Primary Background Routines | ||
| GTESetBG0Origin | Sets the upper-left origin point in the primary background | |
| GTERender | Draws the current scene to the graphics screen | |
| Functions affecting the global state | ||
| GTESetScreenMode | Sets the playing field's port rectangle to a pre-defined size, or a specified width and height | |
| Misc. Functions | ||
| GTEReadControl | Reads the keyboard and returns key events in a gamepad structure | |
| GTEGetSeconds | Returns the number of seconds elapsed since the toolset was started | |