Erik Leppen
Member
I'm used to draw a vertex buffer in old versions of GM like so:
Apparently, in GM Studio 2, the d3d functions have been deprecated. What's the correct way to draw a vertex buffer transformed (scaled and translated)?
I read something about matrices and cameras, but I couldn't find any usable code sample in the manual. The page "obsolete functions", which is the only place the d3d functions are still mentioned, also brings me nowhere. So... what's the GMS2 way to achieve the above?
Code:
d3d_transform_set_identity();
d3d_transform_add_scaling(xscale, yscale, 1);
d3d_transform_add_translation(xorigin, yorigin, 0);
vertex_submit(vbuff, pr_trianglelist, -1);
d3d_transform_set_identity();
I read something about matrices and cameras, but I couldn't find any usable code sample in the manual. The page "obsolete functions", which is the only place the d3d functions are still mentioned, also brings me nowhere. So... what's the GMS2 way to achieve the above?