finished with rework

This commit is contained in:
2026-03-16 14:59:05 -07:00
parent 704f624f25
commit 5e8a6685dc
3 changed files with 114 additions and 51 deletions

View File

@@ -1,6 +1,5 @@
#ifndef TART_H
#define TART_H
#include <string.h>
#define TART_UTF8
#ifdef __cplusplus
@@ -25,20 +24,37 @@ typedef char t_char;
#endif
/* tart_color
*
* Tart Color uses three bytes. Each byte reperesents a color.
* There is no alpha
* */
typedef struct {
tart_byte r;
tart_byte g;
tart_byte b;
} tart_color;
/* TART_PALET_SIZE
*
* Every Window has an amount of palettes that it is alicated to use.
* This number is what is defined here. To change this number just add a
* #define for your program.
*
* DEFALT: 32
* */
#ifndef TART_PALET_SIZE
#define TART_PALET_SIZE 32
#endif
/* tart_palette
*
* Every Palette contains a forground color and a background color.
* */
typedef struct {
tart_color forground;
tart_color background;
} tart_pallet;
} tart_palette;
typedef struct {
int x;
@@ -68,7 +84,7 @@ typedef struct {
* The tart window will have the window size and all of the buffers.
**/
typedef struct {
tart_pallet pallet[TART_PALET_SIZE];
tart_palette palette[TART_PALET_SIZE];
tart_vec2 homePosition;
tart_vec2 windowSize;
tart_vec2 terminalSize;