0 wglChoosePixelFormat(hdc = 0x37010158, ppfd = &{nSize = 40, nVersion = 1, dwFlags = PFD_DOUBLEBUFFER | PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL, iPixelType = PFD_TYPE_RGBA, cColorBits = 32, cRedBits = 0, cRedShift = 0, cGreenBits = 0, cGreenShift = 0, cBlueBits = 0, cBlueShift = 0, cAlphaBits = 0, cAlphaShift = 0, cAccumBits = 0, cAccumRedBits = 0, cAccumGreenBits = 0, cAccumBlueBits = 0, cAccumAlphaBits = 0, cDepthBits = 0, cStencilBits = 0, cAuxBuffers = 0, iLayerType = PFD_MAIN_PLANE, bReserved = 0, dwLayerMask = 0, dwVisibleMask = 0, dwDamageMask = 0}) = 5
1 wglSetPixelFormat(hdc = 0x37010158, iPixelFormat = 5, ppfd = &{nSize = 40, nVersion = 1, dwFlags = PFD_DOUBLEBUFFER | PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL, iPixelType = PFD_TYPE_RGBA, cColorBits = 32, cRedBits = 0, cRedShift = 0, cGreenBits = 0, cGreenShift = 0, cBlueBits = 0, cBlueShift = 0, cAlphaBits = 0, cAlphaShift = 0, cAccumBits = 0, cAccumRedBits = 0, cAccumGreenBits = 0, cAccumBlueBits = 0, cAccumAlphaBits = 0, cDepthBits = 0, cStencilBits = 0, cAuxBuffers = 0, iLayerType = PFD_MAIN_PLANE, bReserved = 0, dwLayerMask = 0, dwVisibleMask = 0, dwDamageMask = 0}) = TRUE
2 wglCreateContext(hdc = 0x37010158) = 0x10000
3 wglMakeCurrent(hdc = 0x37010158, hglrc = 0x10000) = TRUE
4 glViewport(x = 0, y = 0, width = 640, height = 480)
5 glScissor(x = 0, y = 0, width = 640, height = 480)
6 glClearColor(red = 0, green = 0, blue = 0, alpha = 1)
7 glClearDepth(depth = 1)
8 glPixelStorei(pname = GL_UNPACK_ALIGNMENT, param = 1)
9 glEnable(cap = GL_TEXTURE_2D)
10 glDisable(cap = GL_LIGHTING)
11 glDisable(cap = GL_CULL_FACE)
12 glFrontFace(mode = GL_CCW)
13 glCullFace(mode = GL_BACK)
14 glBlendFunc(sfactor = GL_SRC_ALPHA, dfactor = GL_ONE_MINUS_SRC_ALPHA)
15 glShadeModel(mode = GL_SMOOTH)
16 glViewport(x = 0, y = 0, width = 640, height = 480)
17 glMatrixMode(mode = GL_PROJECTION)
18 glPushMatrix()
19 glLoadIdentity()
20 glOrtho(left = 0, right = 640, bottom = 480, top = 0, zNear = 1, zFar = -1)
21 glClear(mask = GL_COLOR_BUFFER_BIT)
30 wglSwapIntervalEXT(interval = 1) = TRUE
31 glBindTexture(target = GL_TEXTURE_2D, texture = 0)
32 glEnable(cap = GL_TEXTURE_2D)
33 glTexEnvf(target = GL_TEXTURE_ENV, pname = GL_TEXTURE_ENV_MODE, param = GL_DECAL)
34 glBindTexture(target = GL_TEXTURE_2D, texture = 2)
35 glTexParameterf(target = GL_TEXTURE_2D, pname = GL_TEXTURE_MAG_FILTER, param = GL_NEAREST)
36 glTexParameterf(target = GL_TEXTURE_2D, pname = GL_TEXTURE_MIN_FILTER, param = GL_NEAREST)
37 glPixelStorei(pname = GL_UNPACK_ALIGNMENT, param = 1)
38 glTexImage2D(target = GL_TEXTURE_2D, level = 0, internalformat = GL_RGBA, width = 256, height = 256, border = 0, format = GL_RGBA, type = GL_UNSIGNED_BYTE, pixels = blob(262144))
39 glClear(mask = GL_COLOR_BUFFER_BIT)
40 glEnable(cap = GL_TEXTURE_2D)
41 glBindTexture(target = GL_TEXTURE_2D, texture = 2)
42 glTexParameterf(target = GL_TEXTURE_2D, pname = GL_TEXTURE_MAG_FILTER, param = GL_NEAREST)
43 glTexParameterf(target = GL_TEXTURE_2D, pname = GL_TEXTURE_MIN_FILTER, param = GL_NEAREST)
44 glPixelStorei(pname = GL_UNPACK_ALIGNMENT, param = 1)
45 glTexEnvf(target = GL_TEXTURE_ENV, pname = GL_TEXTURE_ENV_MODE, param = GL_MODULATE)
46 glDisable(cap = GL_BLEND)
47 glColor4f(red = 1, green = 1, blue = 1, alpha = 1)
48 glTexSubImage2D(target = GL_TEXTURE_2D, level = 0, xoffset = 0, yoffset = 0, width = 256, height = 256, format = GL_RGBA, type = GL_UNSIGNED_BYTE, pixels = blob(262144))
49 glBegin(mode = GL_TRIANGLE_STRIP)
50 glTexCoord2f(s = 0, t = 0)
51 glVertex3f(x = 0.2, y = 80.2, z = 0)
52 glTexCoord2f(s = 0, t = 1)
53 glVertex3f(x = 0.2, y = 336.2, z = 0)
54 glTexCoord2f(s = 1, t = 0)
55 glVertex3f(x = 256.2, y = 80.2, z = 0)
56 glTexCoord2f(s = 1, t = 1)
57 glVertex3f(x = 256.2, y = 336.2, z = 0)
58 glEnd()
59 glTexSubImage2D(target = GL_TEXTURE_2D, level = 0, xoffset = 0, yoffset = 0, width = 256, height = 256, format = GL_RGBA, type = GL_UNSIGNED_BYTE, pixels = blob(262144))
60 glBegin(mode = GL_TRIANGLE_STRIP)
61 glTexCoord2f(s = 0, t = 0)
62 glVertex3f(x = 256.2, y = 80.2, z = 0)
63 glTexCoord2f(s = 0, t = 1)
64 glVertex3f(x = 256.2, y = 336.2, z = 0)
65 glTexCoord2f(s = 1, t = 0)
66 glVertex3f(x = 512.2, y = 80.2, z = 0)
67 glTexCoord2f(s = 1, t = 1)
68 glVertex3f(x = 512.2, y = 336.2, z = 0)
69 glEnd()
70 glTexSubImage2D(target = GL_TEXTURE_2D, level = 0, xoffset = 0, yoffset = 0, width = 128, height = 256, format = GL_RGBA, type = GL_UNSIGNED_BYTE, pixels = blob(131072))
71 glBegin(mode = GL_TRIANGLE_STRIP)
72 glTexCoord2f(s = 0, t = 0)
73 glVertex3f(x = 512.2, y = 80.2, z = 0)
74 glTexCoord2f(s = 0, t = 1)
75 glVertex3f(x = 512.2, y = 336.2, z = 0)
76 glTexCoord2f(s = 0.5, t = 0)
77 glVertex3f(x = 640.2, y = 80.2, z = 0)
78 glTexCoord2f(s = 0.5, t = 1)
79 glVertex3f(x = 640.2, y = 336.2, z = 0)
80 glEnd()
81 glTexSubImage2D(target = GL_TEXTURE_2D, level = 0, xoffset = 0, yoffset = 0, width = 256, height = 64, format = GL_RGBA, type = GL_UNSIGNED_BYTE, pixels = blob(65536))
82 glBegin(mode = GL_TRIANGLE_STRIP)
83 glTexCoord2f(s = 0, t = 0)
84 glVertex3f(x = 0.2, y = 336.2, z = 0)
85 glTexCoord2f(s = 0, t = 0.25)
86 glVertex3f(x = 0.2, y = 400.2, z = 0)
87 glTexCoord2f(s = 1, t = 0)
88 glVertex3f(x = 256.2, y = 336.2, z = 0)
89 glTexCoord2f(s = 1, t = 0.25)
90 glVertex3f(x = 256.2, y = 400.2, z = 0)
91 glEnd()
92 glTexSubImage2D(target = GL_TEXTURE_2D, level = 0, xoffset = 0, yoffset = 0, width = 256, height = 64, format = GL_RGBA, type = GL_UNSIGNED_BYTE, pixels = blob(65536))
93 glBegin(mode = GL_TRIANGLE_STRIP)
94 glTexCoord2f(s = 0, t = 0)
95 glVertex3f(x = 256.2, y = 336.2, z = 0)
96 glTexCoord2f(s = 0, t = 0.25)
97 glVertex3f(x = 256.2, y = 400.2, z = 0)
98 glTexCoord2f(s = 1, t = 0)
99 glVertex3f(x = 512.2, y = 336.2, z = 0)
100 glTexCoord2f(s = 1, t = 0.25)
101 glVertex3f(x = 512.2, y = 400.2, z = 0)
102 glEnd()
103 glTexSubImage2D(target = GL_TEXTURE_2D, level = 0, xoffset = 0, yoffset = 0, width = 128, height = 64, format = GL_RGBA, type = GL_UNSIGNED_BYTE, pixels = blob(32768))
104 glBegin(mode = GL_TRIANGLE_STRIP)
105 glTexCoord2f(s = 0, t = 0)
106 glVertex3f(x = 512.2, y = 336.2, z = 0)
107 glTexCoord2f(s = 0, t = 0.25)
108 glVertex3f(x = 512.2, y = 400.2, z = 0)
109 glTexCoord2f(s = 0.5, t = 0)
110 glVertex3f(x = 640.2, y = 336.2, z = 0)
111 glTexCoord2f(s = 0.5, t = 0.25)
112 glVertex3f(x = 640.2, y = 400.2, z = 0)
113 glEnd()
114 wglSwapBuffers(hdc = 0x37010158) = TRUE