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)
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)