Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_d3d_primitive_begin

(view raw script w/o annotations or w/e)
1
function d3d_primitive_begin(argument0) //gml_Script_d3d_primitive_begin
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 = -1
7
    vertex_begin(global.__d3dPrimBuffer, global.__d3dPrimVF)
8
}