/// @function /// @param function Script3(){ //TODO: Create a DS list for the model and return it #region bottom face 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 }