Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
Advertisement
Add Comment
Please, Sign In to add comment