A GLFW 3 wrapper for Nim
C Objective-C Nim Mathematica M
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src
.gitignore
LICENSE
README.md
glfw.nimble

README.md

nim-glfw

A GLFW 3 wrapper for Nim.

examples

This example displays a window for one second and then terminates:

import os, glfw

glfw.init()
var win = newGlWin()
sleep(1000)
win.destroy()
glfw.terminate()

To run the examples, simply invoke the compiler as such from the root directory:

nim c -p:lib -r examples/<source file>

documentation

Currently no documentation exists, but a convenient symbol list can be generated simply by invoking this from the root directory:

nim doc2 lib/glfw.nim

Version history

  • 0.2.1

    • fix import errors
    • fix linker errors on windows
    • update nimble metadata
    • update the README example
  • 0.2

    • renamed symbols TGL_API -> GlApi

      PWin -> Win

      geNoErr -> glerrNoError

      TGLFW_Err -> GlfwError

      TGL_ES_version -> GlEsVersion

      and so on

    • newWin has been replaced with newGlWin and newGlEsWin