1 glClearColor(red = 0, green = 0, blue = 0, alpha = 1)
2 glShadeModel(mode = GL_SMOOTH)
3 glEnableClientState(array = GL_VERTEX_ARRAY)
4 glEnableClientState(array = GL_COLOR_ARRAY)
5 glViewport(x = 0, y = 0, width = 350, height = 350)
6 glMatrixMode(mode = GL_PROJECTION)
8 glOrtho(left = 0, right = 350, bottom = 0, top = 350, zNear = -1, zFar = 1)
9 glClear(mask = GL_COLOR_BUFFER_BIT)
10 glColorPointer(size = 3, type = GL_FLOAT, stride = 12, pointer = blob(60))
11 glVertexPointer(size = 2, type = GL_INT, stride = 8, pointer = blob(40))
12 glDrawElements(mode = GL_POLYGON, count = 4, type = GL_UNSIGNED_INT, indices = blob(16))