1v13d/src/main.c

40 lines
819 B
C
Raw Normal View History

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-08-28 12:36:13 +02:00
#include <fxengine/render/translate.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-08-27 20:44:33 +02:00
//init_controls();
2019-07-19 21:55:17 +02:00
dclear(C_WHITE);
2019-08-27 20:44:33 +02:00
FE_integer_point point[4]={{{10,0,0},{0,0,0}},{{10,10,0},{0,0,0}},{{10,0,10},{0,0,0}},{{10,10,10},{0,0,0}}};
//FE_face face={&point[0],&point[1],&point[2],1,2};
//FE_face face2={&point[3],&point[1],&point[2],0,2};
while (1)
{
2019-08-27 20:44:33 +02:00
//FE_new_frame();
dclear(C_WHITE);
//reload_fps_displaying();
2019-07-24 21:54:07 +02:00
for (int i=0;i<4;i++)
2019-07-23 18:30:27 +02:00
{
2019-08-27 20:44:33 +02:00
render_translate(&point[i]);
if (point[i].translated.z>0)
{
dpixel(point[i].translated.x,point[i].translated.y,C_BLACK);
}
2019-07-24 21:54:07 +02:00
}
2019-08-27 20:44:33 +02:00
dupdate();
//FE_draw_face(&face);
//FE_draw_face(&face2);
//display_fps(100,56);
}
2019-07-19 21:55:17 +02:00
getkey();
return 1;
2019-07-22 13:55:24 +02:00
}