From bf125612c983ead8f4d994863db3c03eab714df3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 25 Oct 2016 18:12:29 +0530 Subject: [PATCH] ... --- kitty/develop_gl.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/kitty/develop_gl.py b/kitty/develop_gl.py index 188891474..39744f6e1 100644 --- a/kitty/develop_gl.py +++ b/kitty/develop_gl.py @@ -169,27 +169,6 @@ def texture_data(): return img_data, img.size[0], img.size[1] -def triangle_texture(window): - program = ShaderProgram(*textured_shaders) - img_data, w, h = texture_data() - with program: - program.set_2d_texture('tex', img_data, w, h) - program.set_attribute_data('vertex', triangle_vertices()) - program.set_attribute_data('texture_position', array( - 0.5, 1.0, - 0.0, 0.0, - 1.0, 0.0 - )) - - while not glfw.glfwWindowShouldClose(window): - gl.glClear(gl.GL_COLOR_BUFFER_BIT) - with program: - gl.glDrawArrays(gl.GL_TRIANGLES, 0, 3) - - glfw.glfwSwapBuffers(window) - glfw.glfwWaitEvents() - - def rectangle_texture(window): program = ShaderProgram(*textured_shaders) img_data, w, h = texture_data()