added tart main tools
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
// | over each cell.
|
||||
// #========================================================================#
|
||||
|
||||
#define NULL_CELL (struct tart_cell){{0,0,0},{0,0,0},0,0}
|
||||
|
||||
typedef unsigned char tart_byte;
|
||||
typedef unsigned short tart_id;
|
||||
|
||||
@@ -72,6 +74,7 @@ struct tart_window {
|
||||
tart_byte buffer_count;
|
||||
};
|
||||
|
||||
struct tart_window tart_create_window();
|
||||
struct tart_buffer tart_create_buffer(tart_id id, struct tart_vec2 size, struct tart_vec2 position);
|
||||
struct tart_cell tart_create_cell(char display, tart_byte style, struct tart_rgb foreground, struct tart_rgb background);
|
||||
tart_byte tart_add_buffer(struct tart_window*, struct tart_buffer);
|
||||
@@ -80,6 +83,6 @@ tart_byte tart_set_buffer(struct tart_window*, struct tart_buffer, tart_byte);
|
||||
struct tart_buffer* tart_get_buffer(struct tart_window*, tart_byte);
|
||||
|
||||
struct tart_cell* tart_get_cell(struct tart_buffer*, int);
|
||||
struct tart_cell* tart_set_cell(struct tart_buffer*, struct tart_cell*,int);
|
||||
struct tart_cell tart_set_cell(struct tart_buffer*, struct tart_cell,int);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user