Created
May 25, 2013 21:56
-
-
Save kvisle/5650916 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2300 glUseProgram(program = 3) | |
2301 glClearColor(red = 0.1, green = 0.1, blue = 0.1, alpha = 1) | |
2302 glClear(mask = GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT) | |
2303 glEnableClientState(array = GL_VERTEX_ARRAY) | |
2304 glBindBuffer(target = GL_ARRAY_BUFFER, buffer = 0) | |
2305 glUniformMatrix4fv(location = 0, count = 1, transpose = GL_FALSE, value = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}) | |
2306 glBindBuffer(target = GL_ARRAY_BUFFER, buffer = 1) | |
2307 glVertexAttribPointer(index = 1, size = 3, type = GL_FLOAT, normalized = GL_FALSE, stride = 20, pointer = NULL) | |
2308 glEnableVertexAttribArray(index = 1) | |
2309 glVertexAttribPointer(index = 0, size = 2, type = GL_FLOAT, normalized = GL_FALSE, stride = 20, pointer = 0xc) | |
2310 glEnableVertexAttribArray(index = 0) | |
2311 glDrawArrays(mode = GL_TRIANGLES, first = 0, count = 6) | |
2312 glXSwapBuffers(dpy = 0x21123b0, drawable = 79691787) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment