Skip to content

SwiftGL/CGLFW3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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