X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=menu.h;h=737c849e4b892c53e532694ba422259d26010684;hb=fbc68c65e01838feb77f47b30994b45fcc39ebaf;hp=aa8e609b31c0cfbf119f4d5d6a3bfb3bef24223a;hpb=83592cbfd2ab1085598249a09ef257769cc92448;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/menu.h b/menu.h index aa8e609..737c849 100644 --- a/menu.h +++ b/menu.h @@ -141,9 +141,9 @@ static void menu_init(void){ vg_linear_clear( vg_mem.scratch ); - mdl_load_array( &menu.model, &menu.items, "ent_menuitem", alloc ); - mdl_load_array( &menu.model, &menu.markers, "ent_marker", alloc ); - mdl_load_array( &menu.model, &menu.cameras, "ent_camera", alloc ); + MDL_LOAD_ARRAY( &menu.model, &menu.items, ent_menuitem, alloc ); + MDL_LOAD_ARRAY( &menu.model, &menu.markers, ent_marker, alloc ); + MDL_LOAD_ARRAY( &menu.model, &menu.cameras, ent_camera, alloc ); vg_linear_clear( vg_mem.scratch ); @@ -154,7 +154,7 @@ static void menu_init(void){ void *data = vg_linear_alloc( vg_mem.scratch, tex0->file.pack_size ); mdl_fread_pack_file( &menu.model, &tex0->file, data ); - mdl_async_load_glmesh( &menu.model, &menu.mesh ); + mdl_async_load_glmesh( &menu.model, &menu.mesh, NULL ); vg_tex2d_load_qoi_async( data, tex0->file.pack_size, VG_TEX2D_LINEAR|VG_TEX2D_CLAMP, &menu.texture );