createWindow(w, h, [mode]);
Create a GLFW window.
Arguments
w
Window widthh
Window height[mode]
Rendering mode, either GL2D
or GL3D
, by default GL2D
is set.It is also possible to create a window in the global scope without defining a setup function.
function setup()
-- Create the window here
createWindow(600, 600);
end
function draw()
-- draw things
end