Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Latest commit

 

History

History
21 lines (16 loc) · 659 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 659 Bytes

LuJGL

OpenGL library for LuaJIT using FFI

Requirements

How to Use (Windows)

  • Download the source via git
  • Put luajit.exe, lua51.dll, glfw.dll, and stb_image.dll in the directory
  • Load the library via requiring it: local lujgl = require "lujgl"
  • Call lujgl.initialize(windowname, w, h) to create the window
  • Pass LuJGL.setIdleCallback/setRenderCallback/setEventCallback the appropriate functions
  • Call lujgl.mainLoop() to start the main loop