2021-07-09 22:49:01 -07:00
|
|
|
z = 0;
|
2021-07-10 17:21:52 -07:00
|
|
|
//var s = 64;
|
|
|
|
//var color = c_white;
|
2021-07-09 22:49:01 -07:00
|
|
|
|
|
|
|
b_tex = spr_testtex_bottom;
|
2021-07-10 17:21:52 -07:00
|
|
|
t_tex = spr_testtex_top;
|
|
|
|
n_tex = spr_testtex_side;
|
|
|
|
s_tex = spr_testtex_side;
|
|
|
|
w_tex = spr_testtex_side;
|
|
|
|
e_tex = spr_testtex_side;
|
|
|
|
b_face = global.model_cube[| BOTTOM_FACE];
|
|
|
|
t_face = global.model_cube[| TOP_FACE];
|
|
|
|
n_face = global.model_cube[| NORTH_FACE];
|
|
|
|
s_face = global.model_cube[| SOUTH_FACE];
|
|
|
|
w_face = global.model_cube[| WEST_FACE];
|
|
|
|
e_face = global.model_cube[| EAST_FACE];
|
|
|
|
|
|
|
|
/*
|
2021-07-09 22:49:01 -07:00
|
|
|
#region bottom face
|
|
|
|
b_tex = spr_testtex_bottom;
|
|
|
|
b_face = vertex_create_buffer();
|
|
|
|
vertex_begin( b_face, global.vertex_format );
|
|
|
|
|
|
|
|
vertex_add_point( b_face, 0, 0, 0, 0, 0, -1, 0, 0, color, 1);
|
|
|
|
vertex_add_point( b_face, s, 0, 0, 0, 0, -1, 1, 0, color, 1);
|
|
|
|
vertex_add_point( b_face, s, s, 0, 0, 0, -1, 1, 1, color, 1);
|
|
|
|
vertex_add_point( b_face, s, s, 0, 0, 0, -1, 1, 1, color, 1);
|
|
|
|
vertex_add_point( b_face, 0, s, 0, 0, 0, -1, 0, 1, color, 1);
|
|
|
|
vertex_add_point( b_face, 0, 0, 0, 0, 0, -1, 0, 0, color, 1);
|
|
|
|
|
|
|
|
vertex_end( b_face );
|
|
|
|
#endregion
|
|
|
|
#region top face
|
|
|
|
t_tex = spr_testtex_top;
|
|
|
|
t_face = vertex_create_buffer();
|
|
|
|
vertex_begin( t_face, global.vertex_format );
|
|
|
|
|
|
|
|
vertex_add_point( t_face, 0, 0, s, 0, 0, 1, 0, 0, color, 1);
|
|
|
|
vertex_add_point( t_face, s, 0, s, 0, 0, 1, 1, 0, color, 1);
|
|
|
|
vertex_add_point( t_face, s, s, s, 0, 0, 1, 1, 1, color, 1);
|
|
|
|
vertex_add_point( t_face, s, s, s, 0, 0, 1, 1, 1, color, 1);
|
|
|
|
vertex_add_point( t_face, 0, s, s, 0, 0, 1, 0, 1, color, 1);
|
|
|
|
vertex_add_point( t_face, 0, 0, s, 0, 0, 1, 0, 0, color, 1);
|
|
|
|
|
|
|
|
vertex_end( t_face );
|
|
|
|
#endregion
|
|
|
|
#region north face
|
|
|
|
n_tex = spr_testtex_side;
|
|
|
|
n_face = vertex_create_buffer();
|
|
|
|
vertex_begin( n_face, global.vertex_format );
|
|
|
|
|
|
|
|
vertex_add_point( n_face, 0, 0, 0, 0, -1, 0, 1, 1, color, 1);
|
|
|
|
vertex_add_point( n_face, s, 0, 0, 0, -1, 0, 0, 1, color, 1);
|
|
|
|
vertex_add_point( n_face, s, 0, s, 0, -1, 0, 0, 0, color, 1);
|
|
|
|
vertex_add_point( n_face, s, 0, s, 0, -1, 0, 0, 0, color, 1);
|
|
|
|
vertex_add_point( n_face, 0, 0, s, 0, -1, 0, 1, 0, color, 1);
|
|
|
|
vertex_add_point( n_face, 0, 0, 0, 0, -1, 0, 1, 1, color, 1);
|
|
|
|
|
|
|
|
vertex_end( n_face );
|
|
|
|
#endregion
|
|
|
|
#region south face
|
|
|
|
s_tex = spr_testtex_side;
|
|
|
|
s_face = vertex_create_buffer();
|
|
|
|
vertex_begin( s_face, global.vertex_format );
|
|
|
|
|
|
|
|
vertex_add_point( s_face, 0, s, 0, 0, 1, 0, 1, 1, color, 1);
|
|
|
|
vertex_add_point( s_face, s, s, 0, 0, 1, 0, 0, 1, color, 1);
|
|
|
|
vertex_add_point( s_face, s, s, s, 0, 1, 0, 0, 0, color, 1);
|
|
|
|
vertex_add_point( s_face, s, s, s, 0, 1, 0, 0, 0, color, 1);
|
|
|
|
vertex_add_point( s_face, 0, s, s, 0, 1, 0, 1, 0, color, 1);
|
|
|
|
vertex_add_point( s_face, 0, s, 0, 0, 1, 0, 1, 1, color, 1);
|
|
|
|
|
|
|
|
vertex_end( s_face );
|
|
|
|
#endregion
|
|
|
|
#region west face
|
|
|
|
w_tex = spr_testtex_side;
|
|
|
|
w_face = vertex_create_buffer();
|
|
|
|
vertex_begin( w_face, global.vertex_format );
|
|
|
|
|
|
|
|
vertex_add_point( w_face, 0, 0, 0, -1, 0, 0, 1, 1, color, 1);
|
|
|
|
vertex_add_point( w_face, 0, s, 0, -1, 0, 0, 0, 1, color, 1);
|
|
|
|
vertex_add_point( w_face, 0, s, s, -1, 0, 0, 0, 0, color, 1);
|
|
|
|
vertex_add_point( w_face, 0, s, s, -1, 0, 0, 0, 0, color, 1);
|
|
|
|
vertex_add_point( w_face, 0, 0, s, -1, 0, 0, 1, 0, color, 1);
|
|
|
|
vertex_add_point( w_face, 0, 0, 0, -1, 0, 0, 1, 1, color, 1);
|
|
|
|
|
|
|
|
vertex_end( w_face );
|
|
|
|
#endregion
|
|
|
|
#region east face
|
|
|
|
e_tex = spr_testtex_side;
|
|
|
|
e_face = vertex_create_buffer();
|
|
|
|
vertex_begin( e_face, global.vertex_format );
|
|
|
|
|
|
|
|
vertex_add_point( e_face, s, 0, 0, 1, 0, 0, 1, 1, color, 1);
|
|
|
|
vertex_add_point( e_face, s, s, 0, 1, 0, 0, 0, 1, color, 1);
|
|
|
|
vertex_add_point( e_face, s, s, s, 1, 0, 0, 0, 0, color, 1);
|
|
|
|
vertex_add_point( e_face, s, s, s, 1, 0, 0, 0, 0, color, 1);
|
|
|
|
vertex_add_point( e_face, s, 0, s, 1, 0, 0, 1, 0, color, 1);
|
|
|
|
vertex_add_point( e_face, s, 0, 0, 1, 0, 0, 1, 1, color, 1);
|
|
|
|
|
|
|
|
vertex_end( e_face );
|
|
|
|
#endregion
|
2021-07-10 17:21:52 -07:00
|
|
|
*/
|