gba-x3dtest

diff src/game.c @ 5:850be43b3135

sdl version
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 16 Jun 2014 22:01:45 +0300
parents
children 73b5f2e5d18a
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/game.c	Mon Jun 16 22:01:45 2014 +0300
     1.3 @@ -0,0 +1,24 @@
     1.4 +#include "game.h"
     1.5 +#include "gbasys.h"
     1.6 +#include "polyfill.h"
     1.7 +
     1.8 +#define X16INT(x)	((x) << 16)
     1.9 +
    1.10 +static const pvec3 poly[] = {
    1.11 +	{X16INT(80), X16INT(10), 0},
    1.12 +	{X16INT(140), X16INT(100), 0},
    1.13 +	{X16INT(40), X16INT(800), 0}
    1.14 +};
    1.15 +
    1.16 +void game_draw(void)
    1.17 +{
    1.18 +	clear_buffer(back_buffer, 0);
    1.19 +
    1.20 +	draw_poly(3, poly, 0xffff);
    1.21 +
    1.22 +	flip();
    1.23 +}
    1.24 +
    1.25 +void game_keyb(int key, int pressed)
    1.26 +{
    1.27 +}