]> git.cworth.org Git - apitrace-tests/blob - apps/gl/tri.ref.txt
724154b28ee95b786508e517fbd054d6dfc09833
[apitrace-tests] / apps / gl / tri.ref.txt
1 #state default.ref.json
2 glClearColor(red = 0.3, green = 0.1, blue = 0.3, alpha = 1)
3 glViewport(x = 0, y = 0, width = 250, height = 250)
4 glMatrixMode(mode = GL_PROJECTION)
5 glLoadIdentity()
6 glOrtho(left = -1, right = 1, bottom = -1, top = 1, zNear = -0.5, zFar = 1000)
7 glMatrixMode(mode = GL_MODELVIEW)
8 glClear(mask = GL_COLOR_BUFFER_BIT)
9 glBegin(mode = GL_TRIANGLES)
10 glColor3f(red = 0.8, green = 0, blue = 0)
11 glVertex3f(x = -0.9, y = -0.9, z = -30)
12 glColor3f(red = 0, green = 0.9, blue = 0)
13 glVertex3f(x = 0.9, y = -0.9, z = -30)
14 glColor3f(red = 0, green = 0, blue = 0.7)
15 glVertex3f(x = 0, y = 0.9, z = -30)
16 glEnd()
17 glFlush()
18 #image tri.ref.png