vertex_format_begin(); vertex_format_add_position_3d(); vertex_format_add_texcoord(); vertex_format_add_colour(); format=vertex_format_end(); Β card=vertex_create_buffer(); vertex_begin(card, format); var w=8; var h=16; /* Β * for each point add in texture coordinates and color (probably c_white), Β * i just removed those so that this didn't become a million lines long Β */ vertex_position_3d(card, w, 0, h); vertex_position_3d(card, w, 0, 0); vertex_position_3d(card, -w, 0, 0); Β vertex_position_3d(card, -w, 0, 0); vertex_position_3d(card, -w, 0, h); vertex_position_3d(card, w, 0, h); Β vertex_position_3d(card, -w, 0, 0); vertex_position_3d(card, w, 0, 0); vertex_position_3d(card, w, 0, h); Β vertex_position_3d(card, w, 0, h); vertex_position_3d(card, -w, 0, h); vertex_position_3d(card, -w, 0, 0); vertex_end(card); vertex_freeze(card);
Comments
0 B
|π
/π
0 B
|π
/π