QUESTION::
how does:
work when using "pr_trianglestrip"
does just the last triangle gets coloured with the color/alpha from the vertex?
why do I ask this?
CONTEXT::
this primitive code will make it so one can draw a 9patch with primitives... the frame+background... what if I want to draw the background in another alpha?! or color? what would I have to change?!
how does:
Code:
draw_vertex_texture_color()
does just the last triangle gets coloured with the color/alpha from the vertex?
why do I ask this?
CONTEXT::
Code:
draw_primitive_begin_texture(pr_trianglestrip, s_texture);
draw_vertex_texture(x1, y1, 0, 0);
draw_vertex_texture(x1, y2, 0, m);
draw_vertex_texture(x2, y1, m, 0);
draw_vertex_texture(x2, y2, m, m);
draw_vertex_texture(x3, y1, 1 - m, 0);
draw_vertex_texture(x3, y2, 1 - m, m);
draw_vertex_texture(x4, y1, 1, 0);
draw_vertex_texture(x4, y2, 1, m);
draw_vertex_texture(x4, y3, 1, 1 - m);
draw_vertex_texture(x3, y2, 1 - m, m);
draw_vertex_texture(x3, y3, 1 - m, 1 - m);
draw_vertex_texture(x2, y2, m, m);
draw_vertex_texture(x2, y3, m, 1 - m);
draw_vertex_texture(x1, y2, 0, m);
draw_vertex_texture(x1, y3, 0, 1 - m);
draw_vertex_texture(x1, y4, 0, 1);
draw_vertex_texture(x2, y3, m, 1 - m);
draw_vertex_texture(x2, y4, m, 1);
draw_vertex_texture(x3, y3, 1 - m, 1 - m);
draw_vertex_texture(x3, y4, 1 - m, 1);
draw_vertex_texture(x4, y3, 1, 1 - m);
draw_vertex_texture(x4, y4, 1, 1);
draw_primitive_end();