mirror of
https://codeberg.org/hkzlab/TK2000_floppicator.git
synced 2026-01-07 15:29:21 +11:00
Implement basic graphic routines
This commit is contained in:
parent
be70ff936e
commit
5c6994b253
10 changed files with 109 additions and 467 deletions
18
src/graphics.h
Normal file
18
src/graphics.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef _GRAPHICS_HEADER_
|
||||
#define _GRAPHICS_HEADER_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define SCREEN_WIDTH 280
|
||||
#define SCREEN_HEIGHT 192
|
||||
|
||||
#define SCREEN_CHAR_WIDTH 40
|
||||
#define SCREEN_CHAR_HEIGHT 24
|
||||
|
||||
void initialize_display_buffer(void);
|
||||
void clear_display_buffer(void);
|
||||
void draw_number(uint16_t n, uint8_t len, uint8_t x, uint8_t y);
|
||||
void clear_box(uint8_t w, uint8_t h, uint8_t off_x, uint8_t off_y);
|
||||
void draw_chars(uint8_t x, uint8_t y, uint8_t invert, uint8_t *buf, uint8_t len);
|
||||
|
||||
#endif /* _GRAPHICS_HEADER_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue