2020-09-10 15:44:26 +02:00
|
|
|
#include <gint/display.h>
|
|
|
|
#include <gint/keyboard.h>
|
2020-09-10 17:29:33 +02:00
|
|
|
#include "init.h"
|
2020-09-10 17:58:12 +02:00
|
|
|
#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 */
|
2020-09-10 17:29:33 +02:00
|
|
|
|
2020-09-10 17:58:12 +02:00
|
|
|
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;
|
|
|
|
}
|