C
CruelBus
Guest
Can I create a vertex format in any particular order, so long as the following tris are defined in that order?
ALSO: can I delete the format immediately after freezing the buffer or must it be kept until the buffer is no longer needed?
All of the tutorials I have seen declare the format in the following order:
But for... reasons... I'd just like to have it be texcoord, position, color since that's how I have built the arrays that draw the tris.
ALSO: can I delete the format immediately after freezing the buffer or must it be kept until the buffer is no longer needed?
All of the tutorials I have seen declare the format in the following order:
Code:
vertex_format_begin();
vertex_format_add_position();
vertex_format_add_texcoord();
vertex_format_add_color();
var VFORM=vertex_format_end();