development:csdk:2.0:headers:draw_direct
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
development:csdk:2.0:headers:draw_direct [2024/11/22 09:01] – clyde | development:csdk:2.0:headers:draw_direct [2024/11/22 09:07] (current) – clyde | ||
---|---|---|---|
Line 2: | Line 2: | ||
draw_direct.h provides macros and functions to support setting up draw operations by direct manipulation of blitter registers. The functions and macros are largely convenience functions for setting up the control registers for common operations, like drawing sprites or colored boxes. | draw_direct.h provides macros and functions to support setting up draw operations by direct manipulation of blitter registers. The functions and macros are largely convenience functions for setting up the control registers for common operations, like drawing sprites or colored boxes. | ||
+ | |||
+ | In general the flow of Direct Drawing is: | ||
+ | |||
+ | - Set up either sprite or box mode with '' | ||
+ | - Set values for the blitter parameters using the '' | ||
+ | - Start the blitter with '' | ||
+ | - Before modifying parameters to prepare the next drawing, ensure that the last drawing is finished with '' | ||
===== Drawing Semantics ===== | ===== Drawing Semantics ===== | ||
- | ==== By indexing the hardware registers === | ||
- | These are actually defined in gametank.h but are used for direct drawing | ||
<code C> | <code C> | ||
#define DIRECT_SET_DEST_X(x) vram[VX] = (x); | #define DIRECT_SET_DEST_X(x) vram[VX] = (x); |
development/csdk/2.0/headers/draw_direct.1732266098.txt.gz · Last modified: 2024/11/22 09:01 by clyde