libtonc
|
Functions | |
INLINE void | vid_vsync (void) |
INLINE void | bg_aff_copy (BG_AFFINE *dst, const BG_AFFINE *src) |
Copy bg affine aprameters. | |
mode 3 | |
INLINE void | m3_fill (COLOR clr) |
Fill the mode 3 background with color clr. | |
INLINE void | m3_plot (int x, int y, COLOR clr) |
Plot a single clr colored pixel in mode 3 at (x, y). | |
INLINE void | m3_hline (int x1, int y, int x2, COLOR clr) |
Draw a clr colored horizontal line in mode 3. | |
INLINE void | m3_vline (int x, int y1, int y2, COLOR clr) |
Draw a clr colored vertical line in mode 3. | |
INLINE void | m3_line (int x1, int y1, int x2, int y2, COLOR clr) |
Draw a clr colored line in mode 3. | |
INLINE void | m3_rect (int left, int top, int right, int bottom, COLOR clr) |
Draw a clr colored rectangle in mode 3. | |
INLINE void | m3_frame (int left, int top, int right, int bottom, COLOR clr) |
Draw a clr colored frame in mode 3. | |
#define | M3_CLEAR() memset32(vid_mem, 0, M3_SIZE/4) |
Fill the mode 3 background with color clr. | |
mode 4 | |
INLINE void | m4_fill (u8 clrid) |
Fill the current mode 4 backbuffer with clrid. | |
INLINE void | m4_plot (int x, int y, u8 clrid) |
Plot a clrid pixel on the current mode 4 backbuffer. | |
INLINE void | m4_hline (int x1, int y, int x2, u8 clrid) |
Draw a clrid colored horizontal line in mode 4. | |
INLINE void | m4_vline (int x, int y1, int y2, u8 clrid) |
Draw a clrid colored vertical line in mode 4. | |
INLINE void | m4_line (int x1, int y1, int x2, int y2, u8 clrid) |
Draw a clrid colored line in mode 4. | |
INLINE void | m4_rect (int left, int top, int right, int bottom, u8 clrid) |
Draw a clrid colored rectangle in mode 4. | |
INLINE void | m4_frame (int left, int top, int right, int bottom, u8 clrid) |
Draw a clrid colored frame in mode 4. | |
#define | M4_CLEAR() memset32(vid_page, 0, M4_SIZE/4) |
Fill the current mode 4 backbuffer with clrid. | |
mode 5 | |
INLINE void | m5_fill (COLOR clr) |
Fill the current mode 5 backbuffer with clr. | |
INLINE void | m5_plot (int x, int y, COLOR clr) |
Plot a clrid pixel on the current mode 5 backbuffer. | |
INLINE void | m5_hline (int x1, int y, int x2, COLOR clr) |
Draw a clr colored horizontal line in mode 5. | |
INLINE void | m5_vline (int x, int y1, int y2, COLOR clr) |
Draw a clr colored vertical line in mode 5. | |
INLINE void | m5_line (int x1, int y1, int x2, int y2, COLOR clr) |
Draw a clr colored line in mode 5. | |
INLINE void | m5_rect (int left, int top, int right, int bottom, COLOR clr) |
Draw a clr colored rectangle in mode 5. | |
INLINE void | m5_frame (int left, int top, int right, int bottom, COLOR clr) |
Draw a clr colored frame in mode 5. | |
#define | M5_CLEAR() memset32(vid_page, 0, M5_SIZE/4) |
Fill the current mode 5 backbuffer with clr. | |
Basic functions for dealing with bitmapped graphics.
Draw a clr colored frame in mode 3.
left | Left side, inclusive. |
top | Top size, inclusive. |
right | Right size, exclusive. |
bottom | Bottom size, exclusive. |
clr | Color. |
References bmp16_frame(), and vid_mem.
Draw a clr colored rectangle in mode 3.
left | Left side, inclusive. |
top | Top size, inclusive. |
right | Right size, exclusive. |
bottom | Bottom size, exclusive. |
clr | Color. |
References bmp16_rect(), and vid_mem.
INLINE void m4_frame | ( | int | left, |
int | top, | ||
int | right, | ||
int | bottom, | ||
u8 | clrid | ||
) |
Draw a clrid colored frame in mode 4.
left | Left side, inclusive. |
top | Top size, inclusive. |
right | Right size, exclusive. |
bottom | Bottom size, exclusive. |
clrid | color index. |
References bmp8_frame().
INLINE void m4_rect | ( | int | left, |
int | top, | ||
int | right, | ||
int | bottom, | ||
u8 | clrid | ||
) |
Draw a clrid colored rectangle in mode 4.
left | Left side, inclusive. |
top | Top size, inclusive. |
right | Right size, exclusive. |
bottom | Bottom size, exclusive. |
clrid | color index. |
References bmp8_rect().
Draw a clr colored frame in mode 5.
left | Left side, inclusive. |
top | Top size, inclusive. |
right | Right size, exclusive. |
bottom | Bottom size, exclusive. |
clr | Color. |
References bmp16_frame().
Draw a clr colored rectangle in mode 5.
left | Left side, inclusive. |
top | Top size, inclusive. |
right | Right size, exclusive. |
bottom | Bottom size, exclusive. |
clr | Color. |
References bmp16_rect().