User Tools

Site Tools


development:csdk:2.0:headers:draw_queue

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
development:csdk:2.0:headers:draw_queue [2024/11/08 05:01] clydedevelopment: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);
 </code> </code>
 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();
 </code> </code>
 Submits the temp variable "rect" to the draw queue. See macro "queue_draw_sprite" below. Submits the temp variable "rect" to the draw queue. See macro "queue_draw_sprite" below.
-==== 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 "sprites.h". 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 "sprites.h".
  
-==== name ====+==== queue_clear_border ====
 <code C> <code C>
 void queue_clear_border(char c); void queue_clear_border(char c);
 </code> </code>
 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);
 </code> </code>
 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,Y,W,H,GX,GY,SPRITESLOT) #define queue_draw_sprite(X,Y,W,H,GX,GY,SPRITESLOT)
development/csdk/2.0/headers/draw_queue.1731042062.txt.gz · Last modified: 2024/11/08 05:01 by clyde