This repository has been archived on 2022-01-13. You can view files and clone it, but cannot push or open issues or pull requests.
jtmm2-old/src/main.c

20 lines
392 B
C
Raw Normal View History

2020-09-10 15:44:26 +02:00
#include <gint/display.h>
#include <gint/keyboard.h>
#include "init.h"
#include "vec.h"
2020-09-10 15:44:26 +02:00
int main(void)
{
2020-09-11 10:50:11 +02:00
init(); /* initialize gint */
Vec vector_test = {20, -50};
2020-09-11 11:43:30 +02:00
vec_add(&vector_test, (Vec){5.25, -10.5});
2020-09-10 15:44:26 +02:00
dclear(C_WHITE);
2020-09-11 11:43:30 +02:00
dtext(1, 1, C_BLACK, "vector_test:");
dprint(1, 8, C_BLACK, "x = %d, y = %d", (int)(vector_test.x), (int)(vector_test.y));
2020-09-10 15:44:26 +02:00
dupdate();
getkey();
return 1;
}