pyunity.window.glutWindow module

Class to create a window using FreeGLUT.

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

Bases: pyunity.window.ABCWindow

A window provider that uses FreeGLUT.

start(update_func)[source]

Start the main loop of the window.

Parameters:update_func (function) – The function that calls the OpenGL calls.
schedule_update(t)[source]

Starts the window refreshing.

display()[source]

Function to render in the scene.

quit()[source]
get_key(keycode, keystate)[source]
get_mouse(mousecode, keystate)[source]