2019-07-19 21:55:17 +02:00
|
|
|
#include <gint/display.h>
|
|
|
|
#include <gint/keyboard.h>
|
2019-07-21 20:14:54 +02:00
|
|
|
#include <gint/std/stdio.h>
|
2019-07-23 18:30:27 +02:00
|
|
|
#include <gint/std/stdlib.h>
|
2019-07-21 21:27:02 +02:00
|
|
|
#include <gint/clock.h>
|
2019-07-21 20:14:54 +02:00
|
|
|
#include "FxEngine/FxEngine.h"
|
2019-07-22 19:17:16 +02:00
|
|
|
#include "controls.h"
|
2019-07-20 16:03:28 +02:00
|
|
|
|
2019-07-23 18:30:27 +02:00
|
|
|
|
2019-07-19 21:55:17 +02:00
|
|
|
int main(void)
|
|
|
|
{
|
2019-07-22 19:17:16 +02:00
|
|
|
init_controls();
|
2019-07-19 21:55:17 +02:00
|
|
|
dclear(C_WHITE);
|
2019-07-23 18:30:27 +02:00
|
|
|
FE_point point[3]={{1,0,0,0,0,0},{1,1,0,0,0,0},{1,0,1,0,0,0}};
|
2019-07-22 16:28:59 +02:00
|
|
|
while (1)
|
|
|
|
{
|
|
|
|
FE_new_frame();
|
2019-07-23 18:30:27 +02:00
|
|
|
const double h=64+FE_cos(FE_dh)*64;
|
|
|
|
dpixel(h,1,C_BLACK);
|
2019-07-23 17:13:35 +02:00
|
|
|
reload_fps_displaying();
|
2019-07-23 18:30:27 +02:00
|
|
|
for (int i=0;i<3;i++)
|
|
|
|
{
|
|
|
|
FE_calc(&point[i]);
|
|
|
|
dpixel(point[i].translated.x,point[i].translated.y,C_BLACK);
|
|
|
|
}
|
|
|
|
|
|
|
|
display_fps(100,56);
|
2019-07-22 16:28:59 +02:00
|
|
|
}
|
2019-07-19 21:55:17 +02:00
|
|
|
getkey();
|
|
|
|
return 1;
|
2019-07-22 13:55:24 +02:00
|
|
|
}
|