X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrtris;a=blobdiff_plain;f=src%2Fgamescr.c;h=52db999c73f487a487b76433690162f2d50786ca;hp=de314ae927255f27cd55849d0f0707ca1e5d9a62;hb=06a83976694c970fcf42bfdfc91832e780ca4747;hpb=1b62e1cf0e1cf019b42ee232ba838d06c55b8cda diff --git a/src/gamescr.c b/src/gamescr.c index de314ae..52db999 100644 --- a/src/gamescr.c +++ b/src/gamescr.c @@ -1,4 +1,5 @@ #include "screen.h" +#include "cmesh.h" static int init(void); static void cleanup(void); @@ -29,14 +30,23 @@ struct game_screen game_screen = { wheel }; +static struct cmesh *blkmesh; static int init(void) { + if(!(blkmesh = cmesh_alloc())) { + return -1; + } + if(cmesh_load(blkmesh, "data/noisecube.obj") == -1) { + fprintf(stderr, "failed to load block model\n"); + return -1; + } return 0; } static void cleanup(void) { + cmesh_free(blkmesh); } static void start(void)