createWindow

v0.1.6
createWindow(w, h, [mode]);

Create a GLFW window.

Arguments

wWindow width
hWindow 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
See createWindow in window.h