Added rgb build option/definition
This commit is contained in:
@@ -20,7 +20,13 @@ extern "C" {
|
||||
// | over each cell.
|
||||
// #========================================================================#
|
||||
|
||||
#ifdef TART_RGB_COLORS
|
||||
#define NULL_CELL (struct tart_cell){{0,0,0},{0,0,0},0,0,0}
|
||||
#define TART_CELL_DATA_SIZE 16 // todo add number
|
||||
#else
|
||||
#define NULL_CELL (struct tart_cell){0,0,0,0,0}
|
||||
#define TART_CELL_DATA_SIZE 16
|
||||
#endif
|
||||
#define TART_OK 0
|
||||
|
||||
|
||||
@@ -127,6 +133,8 @@ struct tart_buffer {
|
||||
struct tart_vec2 size;
|
||||
struct tart_vec2 position;
|
||||
struct tart_cell* cells;
|
||||
char* data;
|
||||
int data_count;
|
||||
};
|
||||
|
||||
/* Tart Window
|
||||
@@ -149,6 +157,7 @@ struct tart_cell tart_create_cell(char display, tart_byte style, tart_byte foreg
|
||||
#endif
|
||||
|
||||
tart_byte tart_add_buffer(struct tart_window*, struct tart_buffer);
|
||||
tart_byte tart_remove_buffer(struct tart_window*, tart_id);
|
||||
tart_byte tart_set_buffer(struct tart_window*, struct tart_buffer, tart_byte);
|
||||
|
||||
struct tart_buffer* tart_get_buffer(struct tart_window*, tart_byte);
|
||||
|
||||
Reference in New Issue
Block a user