ceda2vga/src/draw_demo.h

31 lines
703 B
C

#ifndef DRAW_DEMO_H
#define DRAW_DEMO_H
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
typedef struct Point
{
uint16_t x;
uint16_t y;
} Point;
typedef struct Letter
{
char letter;
size_t len;
Point *points;
} Letter;
void draw_path(uint16_t x, uint16_t y, Point points[], size_t len);
void draw_letter(uint16_t x, uint16_t y, char c);
void draw_string(uint16_t x, uint16_t y, const char *s);
void draw_demo(void);
void draw_simple_line(uint16_t x, uint16_t y, uint16_t len, bool horizontal);
void draw_line(uint16_t _x0, uint16_t _y0, uint16_t _x1, uint16_t _y1, bool fill);
void set_pixel(uint16_t x, uint16_t y);
void clear_pixel(uint16_t x, uint16_t y);
#endif // DRAW_DEMO_H