development:csdk:2.0:headers:draw_queue
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
development:csdk:2.0:headers:draw_queue [2024/11/08 05:01] – clyde | development:csdk:2.0:headers:draw_queue [2024/11/20 22:05] (current) – clyde | ||
---|---|---|---|
Line 23: | Line 23: | ||
===== Functions ===== | ===== Functions ===== | ||
- | ==== name ==== | + | ==== queue_draw_box |
<code C> | <code C> | ||
void queue_draw_box(unsigned char x, unsigned char y, unsigned char w, unsigned char h, unsigned char c); | void queue_draw_box(unsigned char x, unsigned char y, unsigned char w, unsigned char h, unsigned char c); | ||
</ | </ | ||
Subimit a box with the top corner at X,Y with size WxH and color C to the draw queue | Subimit a box with the top corner at X,Y with size WxH and color C to the draw queue | ||
- | ==== name ==== | + | ==== queue_draw_sprite_rect==== |
<code C> | <code C> | ||
void queue_draw_sprite_rect(); | void queue_draw_sprite_rect(); | ||
</ | </ | ||
Submits the temp variable " | Submits the temp variable " | ||
- | ==== name ==== | + | ==== queue_draw_sprite_frame |
<code C> | <code C> | ||
void queue_draw_sprite_frame(SpriteSlot sprite, char x, char y, char frame, char flip); | void queue_draw_sprite_frame(SpriteSlot sprite, char x, char y, char frame, char flip); | ||
Line 39: | Line 39: | ||
Draws a packed sprite as exported from Aseprite with a given X,Y position and frame number. Uses a SpriteSlot handle given by allocate_sprite from " | Draws a packed sprite as exported from Aseprite with a given X,Y position and frame number. Uses a SpriteSlot handle given by allocate_sprite from " | ||
- | ==== name ==== | + | ==== queue_clear_border |
<code C> | <code C> | ||
void queue_clear_border(char c); | void queue_clear_border(char c); | ||
</ | </ | ||
Draws a border around the screen with the provided color by submitting four queued box draws. | Draws a border around the screen with the provided color by submitting four queued box draws. | ||
- | ==== name ==== | + | ==== queue_clear_screen |
<code C> | <code C> | ||
void queue_clear_screen(char c); | void queue_clear_screen(char c); | ||
</ | </ | ||
Draws a full screen box with the given color. | Draws a full screen box with the given color. | ||
- | ==== name ==== | + | ==== await_draw_queue |
<code C> | <code C> | ||
void await_draw_queue(); | void await_draw_queue(); | ||
Line 55: | Line 55: | ||
Wait for all draw operations in the queue to finish. | Wait for all draw operations in the queue to finish. | ||
===== Macros ===== | ===== Macros ===== | ||
- | ==== name ==== | + | ==== queue_draw_sprite |
<code C> | <code C> | ||
#define queue_draw_sprite(X, | #define queue_draw_sprite(X, |
development/csdk/2.0/headers/draw_queue.1731042062.txt.gz · Last modified: 2024/11/08 05:01 by clyde