This object displays an openGL window in which other graphics object can draw. Without a GLWindow, no graphics.
!85_full!
The "metro" is optional. If not present, GLWindow will run at 30 fps.
title unknown method title(:link=>String) (Page context)
Since GLWindow is a Lua script, you can initialize it with:
win = GLWindow(load:"super.lua")
If the script contains any of the following functions, these replace the default ones:
* *init()* openGL initialization code (enable blending, depth test, etc). Default behavior sets a 2D projection.
* *draw(win_size)* openGL commands to draw. Default behavior sends the window size to outlet 2 (draw).
* *key_press(key)* track key pressed. The default behavior sends "key" to outlet 3 (keys).
* *mouse_move(pos)* track mouse movements (pos is an array with 4 values: x, y, button, state). The default behavior sends "pos" to outlet 4 (mousexy).