Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 732 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 732 Bytes

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