fixed testing
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
project(TartLib VERSION 0.1)
|
||||
set( CMAKE_STATIC_LIBRARY_PREFIX "")
|
||||
|
||||
set(Lib_SOURCES
|
||||
tart.c
|
||||
tart.cpp
|
||||
)
|
||||
add_library(${PROJECT_NAME} STATIC tart.c)
|
||||
|
||||
add_library(${PROJECT_NAME} STATIC tart.cpp)
|
||||
target_include_directories(${PROJECT_NAME} BEFORE PUBLIC "../includes/")
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
#include "tart.h"
|
||||
#include "../includes/tart.h"
|
||||
#include <malloc.h>
|
||||
|
||||
struct tart_cell tart_test() {
|
||||
return {{0,0,0}, {0,0,0}, 0, 't'};
|
||||
return (struct tart_cell){{0,0,0}, {0,0,0}, 0, 't'};
|
||||
}
|
||||
struct tart_buffer tart_create_buffer(tart_id id, struct tart_vec2 size, struct tart_vec2 position) {
|
||||
int cell_count = position.x * position.y;
|
||||
struct tart_cell* cells = malloc(sizeof(struct tart_cell[cell_count]));
|
||||
unsigned int cell_count = position.x * position.y;
|
||||
struct tart_cell* cells = (struct tart_cell*)malloc(sizeof(struct tart_cell[cell_count]));
|
||||
struct tart_buffer buf = {cell_count,0,id,size,position,0};
|
||||
return buf;
|
||||
}
|
||||
struct tart_cell tart_create_cell(char display, tart_byte style, struct tart_rgb foreground, struct tart_rgb background) {
|
||||
struct tart_cell b = {{0,0,0}, {0,0,0}, 0, 't'};
|
||||
struct tart_cell b = {foreground, background, style, display};
|
||||
return b;
|
||||
}
|
||||
tart_byte tart_add_buffer(struct tart_window* window, struct tart_buffer buffer) {
|
||||
Reference in New Issue
Block a user