/GLFW.jl

GLFW bindings for Julia. GLFW is a multi-platform library for opening a window, creating an OpenGL context, and managing input.

Primary LanguageJuliaMIT LicenseMIT

GLFW.jl

GLFW bindings for Julia. GLFW is a multi-platform library for opening a window, creating an OpenGL context, and managing input.

See the GLFW documentation for detailed instructions on how to use the library.

Minimal Window Example

import GLFW
GLFW.Init()
GLFW.OpenWindow(0, 0, 0, 0, 0, 0, 0, 0, GLFW.WINDOW)
while GLFW.GetWindowParam(GLFW.OPENED) && !GLFW.GetKey(GLFW.KEY_ESC)
  GLFW.SwapBuffers()
end
GLFW.CloseWindow()
GLFW.Terminate()