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.
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"
|
|
|
|
#include "vec2d.h"
|
2020-09-10 15:44:26 +02:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2020-09-10 17:29:33 +02:00
|
|
|
init(); /* initialise gint */
|
|
|
|
|
|
|
|
struct Vec2D vector_test = {
|
|
|
|
.x = 20,
|
|
|
|
.y = -50
|
|
|
|
};
|
2020-09-10 15:44:26 +02:00
|
|
|
dclear(C_WHITE);
|
2020-09-10 17:29:33 +02:00
|
|
|
dprint(1, 1, C_BLACK, "vector_test: x = %d, y = %d", vector_test.x, vector_test.y);
|
2020-09-10 15:44:26 +02:00
|
|
|
dupdate();
|
|
|
|
|
|
|
|
getkey();
|
|
|
|
return 1;
|
|
|
|
}
|