3903b9636e0a291c283fb72ec7bc690c2e92d3c9
4 int main(int arc
, const char *argv
[])
6 if( cxr_fs_set_gameinfo(
7 "/home/harry/.steam/steam/steamapps/common/"
8 "Counter-Strike Global Offensive/csgo/gameinfo.txt" ) )
10 cxr_tri_mesh
*mesh_test
= cxr_load_mdl( "models/pigeon.mdl" );
14 cxr_log( "Mesh loaded\n" );
15 cxr_free_tri_mesh( mesh_test
);
18 cxr_log( "Mesh failed to load\n" );
29 #define CXR_VALVE_MAP_FILE
34 int main(int arc
, const char *argv
[])
36 cxr_vdf
*vdo
= cxr_vdf_open(
37 "/home/harry/Documents/blender_addons_remote/addons/convexer/test.vmf" );
48 .offset
= { 0.0, 0.0, 0.0 },
50 .skyname
= "vertigoblue"
53 cxr_world
*world
= cxr_decompose( &test_mesh
, NULL
);
56 cxr_push_world_vmf( world
, &ctx
, vdo
);
57 cxr_free_world( world
);
60 cxr_vmf_begin_entities( &ctx
, vdo
);
61 cxr_end_vmf( &ctx
, vdo
);