diff --git a/docs/assets/css/toolref.css b/docs/assets/css/toolref.css index 04221aa..7db65b0 100644 --- a/docs/assets/css/toolref.css +++ b/docs/assets/css/toolref.css @@ -1,4 +1,14 @@ /* Style for the fancy API documentation */ +div.example { + border-top: 1px solid red; +} + +div.example > h5 { + font-weight: bold; + font-size: larger; + color: #111; +} + div.api_intro h1, h2, h3, h4, h5 { font-family: helvetica, sans-serif; } @@ -24,6 +34,14 @@ div.api_intro h1, h2, h3, h4, h5 { margin: 1em 0; } + div.api:before { + border-bottom: 1px solid red; + content:""; + height: 1px; + width: 100%; + float: left; + } + div.api > p { margin-left: 100px; @@ -79,6 +97,11 @@ div.api_intro h1, h2, h3, h4, h5 { border-collapse: collapse; } + table.bitfield-definitions tr > td:first-child + { + white-space: nowrap; + } + table.bits td { padding: 5px; @@ -114,7 +137,9 @@ div.api_intro h1, h2, h3, h4, h5 { border-bottom: 1px solid black; font-family: helvetica; font-size: small; - margin-top: 2em; + /* margin-top: 2em; */ + margin-left: 100px; + margin-bottom: 15px; } div.warning:before diff --git a/docs/toolboxref.html b/docs/toolboxref.html index 39743df..173b615 100644 --- a/docs/toolboxref.html +++ b/docs/toolboxref.html @@ -326,7 +326,7 @@ style: toolref
Starts up the GTE Tool Set for use by an application.
@@ -733,9 +733,36 @@ style: toolrefNone
extern pascal Word GTEReadControl()
++ The value returned in userInput bitfield are show below. +
+15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | +
Bits 0-7 | keyCode | Keyboard code read from the Keyboard register. If no key is currently pressed, this value is zero. |
Bit 8 | Reserved | Must be zero. |
Bit 9 | fPadButtonB | Set to 1 if the B button of the gamepad is pressed. Mapped to the option key by default. |
Bit 10 | fPadButtonA | Set to 1 if the A button of the gamepad is pressed. Mapped to the command key by default. |
Bit 11 | fKeyDown | Set to 1 on the initial press of a key. If a key is held down, the keyCode will be set and this bit will be zero. |
Bits 12-15 | Reserved | Must be zero. |
extern pascal void GTESetScreenMode(width, height)
+Word width;
+Word height;
++ If the width value is set to a small number, then one of the pre-defined screen sizes will be selected. Set + the width to the index number of the screen sizes in the table below to set the screen size to + those dimension. The height value must still be passed, but is ignored. +
+Play Field Id | +Width | +Height | ++ | Size (bytes) | +Percent of Full Screen | +
---|---|---|---|---|---|
0 | +320 | +200 | +Full Screen | +32,000 | +100% | +
1 | +272 | +192 | +Sword of Sodan | +26,112 | +81.6% | +
2 | +256 | +200 | +NES (approx.) | +25,600 | +80.0% | +
3 | +256 | +176 | +Task Force | +22,528 | +70.4% | +
4 | +280 | +160 | +Defender of the World | +22,400 | +70.0% | +
5 | +256 | +160 | +Rastan | +20,480 | +64.0% | +
6 | +240 | +160 | +Game Boy Advanced | +19,200 | +60.0% | +
7 | +288 | +128 | +Ancient Land of Y's | +18,432 | +57.6% | +
8 | +160 | +144 | +Game Boy Color | +11,520 | +36.0% | +
extern pascal void GTESetTile(x, y, tileID)
+Word width;
+Word height;
+Word tileID;
++ The tile ID word is defined as follows +
+15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | +
Bits 0-8 | tileIndex | The index of the tile in the current Tile Set. A Tile Set can be defined by calling the GTELoadTileSet function |
Bit 9 | fTileHFlip | Flips the tile horizontally when set. |
Bit 10 | fTileVFlip | Flips the tile vertically when set. |
Bit 11 | fTileDynamic | Identifies this tile as a dynamic tile. The tileIndex is used to identify the dynamic tile data slow and must be in the range 0 to 31. |
Bit 12 | fTileSolid | Hint bit that marks a tile as having no mask. Can improve performance when ENGINE_MODE_TWO_LAYER is set. |
Bit 13 | fTileFringe | Unused. Must be zero. |
Bit 14 | fTilePriority | Sets the tile to high priority. Sprites will render under this tile, if supported. |
Bit 15 | Reserved | Must be zero. |