Working on plugin to make them work again!

This commit is contained in:
Godzil
2020-01-14 18:59:22 +00:00
parent 221417c0ee
commit 2ec7a9c21e
11 changed files with 762 additions and 113 deletions

View File

@@ -11,13 +11,18 @@
#define OS_DEPENDENT_H
#include <stdint.h>
#include "text.h"
/* File related functions */
/* Graphics related functions */
int graphics_init();
int graphics_drawpixel(long x, long y, long color);
int graphics_blit(long x, long y, long w, long h);
int graphics_drawline(long x, long y, long x1, long y1, long color);
int graphics_drawline(uint32_t x, uint32_t y, uint32_t x1, uint32_t y1, uint32_t colour);
int graphics_drawRect(uint32_t x0, uint32_t y0, uint32_t w, uint32_t h, uint32_t colour);
int graphics_drawFillrect(int x0, int y0, int w, int h, uint32_t colour);
int graphics_getScreenSize(int *w, int *h);
void vsync(void);
typedef struct Palette_t
@@ -47,4 +52,15 @@ int console_init(ConsoleLevel DefaultLevel);
int console_printf(const ConsoleLevel level, const char *format, ...);
int console_printf_d(const char *format, ...);
#define KEY_ENTER (257)
#define KEY_LEFT (263)
#define KEY_RIGHT (262)
#define KEY_UP (265)
#define KEY_DOWN (264)
//#define KEY_ENTER 13
#endif /* OS_DEPENDENT_H */