pyunity.window.glfwWindow module

Class to create a window using GLFW.

class pyunity.window.glfwWindow.Window(config, name, resize)[source]

Bases: object

A window provider that uses GLFW.

Raises:PyUnityException – If the window creation fails
check_quit()[source]
framebuffer_size_callback(window, width, height)[source]
get_keys()[source]
get_keys_down()[source]
get_keys_up()[source]
key_callback(window, key, scancode, action, mods)[source]
start(update_func)[source]

Start the main loop of the window.

Parameters:update_func (function) – The function that calls the OpenGL calls.