Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_d3d_draw_block

(view raw script w/o annotations or w/e)
1
function d3d_draw_block(argument0, argument1, argument2, argument3, argument4, argument5, argument6, argument7, argument8) //gml_Script_d3d_draw_block
2
{
3
    var __x1 = argument0
4
    var __y1 = argument1
5
    var __z1 = argument2
6
    var __x2 = argument3
7
    var __y2 = argument4
8
    var __z2 = argument5
9
    var __tex = argument6
10
    var __hrepeat = argument7
11
    var __vrepeat = argument8
12
    var __oldrep = gpu_get_texrepeat()
13
    gpu_set_texrepeat(true)
14
    d3d_primitive_begin_texture(4, __tex)
15
    d3d_vertex_normal_texture(__x1, __y1, __z1, 0, 0, -1, 0, 0)
16
    d3d_vertex_normal_texture(__x1, __y2, __z1, 0, 0, -1, 0, __vrepeat)
17
    d3d_vertex_normal_texture(__x2, __y2, __z1, 0, 0, -1, __hrepeat, __vrepeat)
18
    d3d_vertex_normal_texture(__x2, __y2, __z1, 0, 0, -1, __hrepeat, __vrepeat)
19
    d3d_vertex_normal_texture(__x2, __y1, __z1, 0, 0, -1, __hrepeat, 0)
20
    d3d_vertex_normal_texture(__x1, __y1, __z1, 0, 0, -1, 0, 0)
21
    d3d_vertex_normal_texture(__x1, __y1, __z2, 0, 0, 1, 0, 0)
22
    d3d_vertex_normal_texture(__x2, __y1, __z2, 0, 0, 1, __hrepeat, 0)
23
    d3d_vertex_normal_texture(__x2, __y2, __z2, 0, 0, 1, __hrepeat, __vrepeat)
24
    d3d_vertex_normal_texture(__x2, __y2, __z2, 0, 0, 1, __hrepeat, __vrepeat)
25
    d3d_vertex_normal_texture(__x1, __y2, __z2, 0, 0, 1, 0, __vrepeat)
26
    d3d_vertex_normal_texture(__x1, __y1, __z2, 0, 0, 1, 0, 0)
27
    d3d_vertex_normal_texture(__x1, __y2, __z1, 0, 1, 0, 0, 0)
28
    d3d_vertex_normal_texture(__x1, __y2, __z2, 0, 1, 0, 0, __vrepeat)
29
    d3d_vertex_normal_texture(__x2, __y2, __z2, 0, 1, 0, __hrepeat, __vrepeat)
30
    d3d_vertex_normal_texture(__x2, __y2, __z2, 0, 1, 0, __hrepeat, __vrepeat)
31
    d3d_vertex_normal_texture(__x2, __y2, __z1, 0, 1, 0, __hrepeat, 0)
32
    d3d_vertex_normal_texture(__x1, __y2, __z1, 0, 1, 0, 0, 0)
33
    d3d_vertex_normal_texture(__x2, __y2, __z1, 1, 0, 0, 0, 0)
34
    d3d_vertex_normal_texture(__x2, __y2, __z2, 1, 0, 0, 0, __vrepeat)
35
    d3d_vertex_normal_texture(__x2, __y1, __z2, 1, 0, 0, __hrepeat, __vrepeat)
36
    d3d_vertex_normal_texture(__x2, __y1, __z2, 1, 0, 0, __hrepeat, __vrepeat)
37
    d3d_vertex_normal_texture(__x2, __y1, __z1, 1, 0, 0, __hrepeat, 0)
38
    d3d_vertex_normal_texture(__x2, __y2, __z1, 1, 0, 0, 0, 0)
39
    d3d_vertex_normal_texture(__x2, __y1, __z1, 0, -1, 0, 0, 0)
40
    d3d_vertex_normal_texture(__x2, __y1, __z2, 0, -1, 0, 0, __vrepeat)
41
    d3d_vertex_normal_texture(__x1, __y1, __z2, 0, -1, 0, __hrepeat, __vrepeat)
42
    d3d_vertex_normal_texture(__x1, __y1, __z2, 0, -1, 0, __hrepeat, __vrepeat)
43
    d3d_vertex_normal_texture(__x1, __y1, __z1, 0, -1, 0, __hrepeat, 0)
44
    d3d_vertex_normal_texture(__x2, __y1, __z1, 0, -1, 0, 0, 0)
45
    d3d_vertex_normal_texture(__x1, __y1, __z1, -1, 0, 0, 0, 0)
46
    d3d_vertex_normal_texture(__x1, __y1, __z2, -1, 0, 0, 0, __vrepeat)
47
    d3d_vertex_normal_texture(__x1, __y2, __z2, -1, 0, 0, __hrepeat, __vrepeat)
48
    d3d_vertex_normal_texture(__x1, __y2, __z2, -1, 0, 0, __hrepeat, __vrepeat)
49
    d3d_vertex_normal_texture(__x1, __y2, __z1, -1, 0, 0, __hrepeat, 0)
50
    d3d_vertex_normal_texture(__x1, __y1, __z1, -1, 0, 0, 0, 0)
51
    d3d_primitive_end()
52
    gpu_set_texrepeat(__oldrep)
53
}