Clip Window Sprites Register: Difference between revisions

From SpecNext Wiki
Jump to: navigation, search
added info + Core 2.00.22 changes (readable now)
 
Adding details how sprite clipping works in "over border" mode.
Line 12: Line 12:
The values are 0,255,0,191 after a Reset
The values are 0,255,0,191 after a Reset


Clip window on Sprites works by default only when the "draw over border" is disabled. With "over border" enabled, the clip window must be enabled extra by bit 5 in {{NextRegNo|$15}}.
Clip window on Sprites works by default only when the "draw over border" is disabled. With "over border" enabled, the clip window must be enabled extra by bit 5 in {{NextRegNo|$15}}, and X-axis coordinates of clip-window are then doubled, see the {{NextRegNo|$15}} for details and example.
 
The current read/write index (which coordinate is next) can be read or reset by {{NextRegNo|$1C}}.

Revision as of 12:51, 23 December 2018

Number TBRegisterNumber::$19
Readable TBRegisterReadable::Yes
Writable TBRegisterWritable::Yes
Short Description ShortDesc::Sets and reads clip-window for Sprites
  1. read/write: X1 position
  2. read/write: X2 position
  3. read/write: Y1 position
  4. read/write: Y2 position

The values are 0,255,0,191 after a Reset

Clip window on Sprites works by default only when the "draw over border" is disabled. With "over border" enabled, the clip window must be enabled extra by bit 5 in {{#ask: TBRegisterNumber::$15 }} ($15), and X-axis coordinates of clip-window are then doubled, see the {{#ask: TBRegisterNumber::$15 }} ($15) for details and example.

The current read/write index (which coordinate is next) can be read or reset by {{#ask: TBRegisterNumber::$1C }} ($1C).