/CGLFW3

Swift C bindings for GLFW v3 (Generic)

Primary LanguageSwiftMIT LicenseMIT

Swift C bindings for GLFW v3

[GLFW home page] (http://www.glfw.org)

This is a package for the open source Swift. Usage:

  • Install GLFW version 3.
  • Include dependency in your Package.swift:
let package = Package(
    dependencies: [
        .Package(url: "https://github.com/SwiftGL/CGLFW3.git", majorVersion: 2)
    ]
)

MacOS:

brew install --HEAD glfw3

swift build -Xswiftc -I/usr/local/include -Xlinker -L/usr/local/lib

Ubuntu:

sudo apt install libglfw3

swift build