pyunity.window.glfwWindow module

Class to create a window using GLFW.

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

Bases: pyunity.window.ABCWindow

A window provider that uses GLFW.

Raises:PyUnityException – If the window creation fails
framebuffer_size_callback(window, width, height)[source]
key_callback(window, key, scancode, action, mods)[source]
mouse_callback(window, button, action, mods)[source]
get_mouse(mousecode, keystate)[source]
check_keys()[source]
check_mouse()[source]
get_key(keycode, keystate)[source]
get_mouse_pos()[source]
check_quit()[source]
quit()[source]
start(update_func)[source]

Start the main loop of the window.

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