llvm-mos-sdk
|
Go to the source code of this file.
Functions | |
void | neo_graphics_set_defaults (uint8_t color_mask, uint8_t color_xor, uint8_t fill, uint8_t extent, uint8_t flip) |
Reset the global graphics system settings. More... | |
void | neo_graphics_draw_line (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2) |
Draw a line. More... | |
void | neo_graphics_draw_rectangle (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2) |
Draw a rectangle. More... | |
void | neo_graphics_draw_ellipse (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2) |
Draw an ellipse. More... | |
void | neo_graphics_draw_pixel (uint16_t x, uint16_t y) |
Draw a pixel. More... | |
void | neo_graphics_draw_text_p (uint16_t x, uint16_t y, const neo_pstring_t *text) |
Draw a Pascal text string. More... | |
void | neo_graphics_draw_text (uint16_t x, uint16_t y, const char *text) |
Draw a C text string. More... | |
void | neo_graphics_draw_image (uint16_t x, uint16_t y, uint8_t id) |
Draw an image. More... | |
void | neo_graphics_draw_tilemap (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2) |
Draw the current tilemap. More... | |
void | neo_graphics_set_palette (uint8_t idx, uint8_t r, uint8_t g, uint8_t b) |
Set palette color. More... | |
uint8_t | neo_graphics_read_pixel (uint16_t x, uint16_t y) |
Read pixel. More... | |
void | neo_graphics_write_pixel (uint16_t x, uint16_t y, uint8_t idx) |
Write pixel. More... | |
void | neo_graphics_reset_palette (void) |
Reset palette. More... | |
void | neo_graphics_set_tilemap (const void *src, uint16_t x, uint16_t y) |
Set the current tilemap. More... | |
long | neo_graphics_frame_count (void) |
Read the number of vertical blanks since power-on. More... | |
void | neo_graphics_set_color (uint8_t idx) |
Set the current drawing color. More... | |
void | neo_graphics_set_solid_flag (uint8_t value) |
Set the current solid flag. More... | |
void | neo_graphics_set_draw_size (uint8_t value) |
Set the current image/font drawing scale. More... | |
void | neo_graphics_set_flip_bits (uint8_t value) |
Set the flip bits for drawing images. More... | |
void neo_graphics_draw_ellipse | ( | uint16_t | x1, |
uint16_t | y1, | ||
uint16_t | x2, | ||
uint16_t | y2 | ||
) |
Draw an ellipse.
x1 | Begin X |
y1 | Begin Y |
x2 | End X |
y2 | End Y |
void neo_graphics_draw_image | ( | uint16_t | x, |
uint16_t | y, | ||
uint8_t | id | ||
) |
Draw an image.
x | X |
y | Y |
id | Image ID |
void neo_graphics_draw_line | ( | uint16_t | x1, |
uint16_t | y1, | ||
uint16_t | x2, | ||
uint16_t | y2 | ||
) |
Draw a line.
x1 | Begin X |
y1 | Begin Y |
x2 | End X |
y2 | End Y |
void neo_graphics_draw_pixel | ( | uint16_t | x, |
uint16_t | y | ||
) |
Draw a pixel.
x | X |
y | Y |
void neo_graphics_draw_rectangle | ( | uint16_t | x1, |
uint16_t | y1, | ||
uint16_t | x2, | ||
uint16_t | y2 | ||
) |
Draw a rectangle.
x1 | Begin X |
y1 | Begin Y |
x2 | End X |
y2 | End Y |
void neo_graphics_draw_text | ( | uint16_t | x, |
uint16_t | y, | ||
const char * | text | ||
) |
Draw a C text string.
x | X |
y | Y |
text | Text string (C). |
void neo_graphics_draw_text_p | ( | uint16_t | x, |
uint16_t | y, | ||
const neo_pstring_t * | text | ||
) |
Draw a Pascal text string.
x | X |
y | Y |
text | Text string (Pascal). |
void neo_graphics_draw_tilemap | ( | uint16_t | x1, |
uint16_t | y1, | ||
uint16_t | x2, | ||
uint16_t | y2 | ||
) |
Draw the current tilemap.
x1 | Begin X |
y1 | Begin Y |
x2 | End X |
y2 | End Y |
long neo_graphics_frame_count | ( | void | ) |
Read the number of vertical blanks since power-on.
uint8_t neo_graphics_read_pixel | ( | uint16_t | x, |
uint16_t | y | ||
) |
Read pixel.
x | X |
y | Y |
void neo_graphics_reset_palette | ( | void | ) |
Reset palette.
void neo_graphics_set_color | ( | uint8_t | idx | ) |
Set the current drawing color.
idx | Palette index. |
void neo_graphics_set_defaults | ( | uint8_t | color_mask, |
uint8_t | color_xor, | ||
uint8_t | fill, | ||
uint8_t | extent, | ||
uint8_t | flip | ||
) |
Reset the global graphics system settings.
void neo_graphics_set_draw_size | ( | uint8_t | value | ) |
Set the current image/font drawing scale.
value | Value. |
void neo_graphics_set_flip_bits | ( | uint8_t | value | ) |
Set the flip bits for drawing images.
value | Value. |
void neo_graphics_set_palette | ( | uint8_t | idx, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b | ||
) |
Set palette color.
idx | Palette index. |
r | Red component. |
g | Green component. |
b | Blue component. |
void neo_graphics_set_solid_flag | ( | uint8_t | value | ) |
Set the current solid flag.
value | Value. |
void neo_graphics_set_tilemap | ( | const void * | src, |
uint16_t | x, | ||
uint16_t | y | ||
) |
Set the current tilemap.
src | Tilemap address. |
x | X offset into tilemap. |
y | Y offset into tilemap. |
void neo_graphics_write_pixel | ( | uint16_t | x, |
uint16_t | y, | ||
uint8_t | idx | ||
) |
Write pixel.
x | X |
y | Y |
idx | Palette index. |