1 |
function d3d_primitive_begin_texture(argument0, argument1) //gml_Script_d3d_primitive_begin_texture |
2 |
{ |
3 |
if (global.__d3dPrimKind != -1) |
4 |
show_debug_message("ERROR : cannot begin a primitive before end called on previous") |
5 |
global.__d3dPrimKind = argument0 |
6 |
global.__d3dPrimTex = argument1 |
7 |
var __uvs = texture_get_uvs(global.__d3dPrimTex) |
8 |
global.__d3dPrimTexX = __uvs[0] |
9 |
global.__d3dPrimTexY = __uvs[1] |
10 |
global.__d3dPrimTexW = __uvs[2] - __uvs[0] |
11 |
global.__d3dPrimTexH = __uvs[3] - __uvs[1] |
12 |
vertex_begin(global.__d3dPrimBuffer, global.__d3dPrimVF) |
13 |
} |