OpenGL and GLFW sample program for Swift on OS X.
This projects contains GLFW version 3.3 binary. You can get the binary by following steps.
- Prepare CMake. (e.g.
port install cmake) - Prepare a working directory. (e.g.
mkdir ~/foo) - Open terminal at the working directory. (e.g.
cd ~/foo) - Clone a repository :
git clone https://github.com/glfw/glfw.git - Prepare a build directory. (e.g.
mkdir osx && cd osx) - Configure:
cmake ../glfw - Build:
make all - Copy
~/foo/glfw/include/GLFW/glfw3.hinto your project directory. - Copy
~/foo/osx/src/libglfw3.a. into your project project.
- macOS 10.12.6
- Xcode 8.3.3
- Swift 3.1
Please read this file. GLFW is licensed under the zlib/libpnglicense.
