def main(): # Will use GLUT https://compgraphics.info/OpenGL/template_glut.php, # but on Python https://wiki.python.org/moin/PyOpenGL glutInit(sys.argv) glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE) glutInitWindowSize(Display.width, Display.height) glutCreateWindow("HW1, Mandelbrot, Tankov Vladislav") Texture.create_1d() Program.create() Program.attach_shader(Shader.load_fragment("shader/shader_frag.glsl")) Program.link() glutDisplayFunc(display) glutReshapeFunc(Display.reshape) glutMouseFunc(Controls.mouse) glutMotionFunc(Controls.motion) # For some reason wheel event is not working on my computer glutKeyboardUpFunc(Controls.key_up) glutMainLoop()