gridwidth=20; gridheight=20; mod=d3d_model_create(); d3d_model_primitive_begin(mod,pr_trianglelist) var gx, gy; for(i=0;i