1
0
mirror of https://github.com/pevans/erc-c.git synced 2025-02-25 14:29:13 +00:00
erc-c/include/vm_screen.h

20 lines
533 B
C
Raw Normal View History

2017-11-21 23:24:51 -06:00
#ifndef _VM_SCREEN_H_
#define _VM_SCREEN_H_
typedef struct {
int color_red;
int color_green;
int color_blue;
int color_alpha;
} vm_screen_context;
extern void vm_screen_draw_rect(vm_screen_context *, int, int, int, int);
2017-12-02 13:05:53 -06:00
extern void vm_screen_free_context(vm_screen_context *);
2017-11-21 23:24:51 -06:00
extern vm_screen_context *vm_screen_new_context();
extern void vm_screen_set_color(vm_screen_context *, int, int, int, int);
#define vm_screen_draw_pixel(context, xpos, ypos) \
vm_screen_draw_rect(context, xpos, ypos, 1, 1)
#endif