OpenGLFW is a cross-platform Swift Package that wraps GLFW 3, is a multi-platform library for OpenGL, OpenGL ES and Vulkan application development. It provides a simple, platform-independent API for creating windows, contexts and surfaces, reading input, handling events, etc.
GLFW natively supports Windows, macOS and Linux and other Unix-like systems. On Linux both X11 and Wayland are supported.
C/Swiftinteroperability via module map- Cross-platform support (
Windows,Linux,macOS) - Generated from glfw3 3.4
| Tool | Version |
|---|---|
| Swift | 6.0+ |
| OS | macOS 13+, Ubuntu 22.04+, Windows 10+ |
Add the package to your Package.swift:
dependencies: [
.package(url: "https://github.com/helbertgs/OpenGLFW.git", from: "1.0.0")
],
targets: [
.target(
name: "YourTarget",
dependencies: ["OpenGLFW"]
)
]This package is licensed under the MIT License. The bundled GLFW is licensed under zlib/libpng license