https://github.com/sakrist/swift_opengl_example
:star: Swift OpenGL Example written with swift (for Ubuntu, macOS, iOS and Android)
https://github.com/sakrist/swift_opengl_example
concept ios linux macos opengl opengl-context swift swift-opengl ubuntu
Last synced: 25 days ago
JSON representation
:star: Swift OpenGL Example written with swift (for Ubuntu, macOS, iOS and Android)
- Host: GitHub
- URL: https://github.com/sakrist/swift_opengl_example
- Owner: sakrist
- License: mit
- Created: 2016-01-02T01:52:00.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2023-09-30T23:14:28.000Z (over 1 year ago)
- Last Synced: 2023-10-01T19:54:05.440Z (over 1 year ago)
- Topics: concept, ios, linux, macos, opengl, opengl-context, swift, swift-opengl, ubuntu
- Language: Swift
- Homepage:
- Size: 805 KB
- Stars: 70
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift OpenGL Example
This project was developed just for proof of concept: Simple application using OpenGL and written with swift - can be compiled and run on Ubuntu (Linux), macOS, iOS and **Android**. And in future on some *X* platform too.
### macOS
Terminal:
1. Open a terminal window
2. Clone repository
3. Go to the directory to which you clone.
4. run `swift build` in terminal
5. run `.build/debug/app`or Xcode
Open `opengl_example.xcodeproj` project.
### iOS
1. Open `opengl_example.xcodeproj` project.
2. Select **iOS_example** target and destination
3. Run### Linux (Ubuntu 64-bit)
1. [Install](https://swift.org/getting-started/#installing-swift) swift toolchaine.
2. Open a terminal window
3. Install dependecies packages
`sudo apt-get install libx11-dev libglu1-mesa-dev mesa-common-dev`
4. Clone repository
5. Go to the directory with project.
6. run `swift build` to build
7. run `.build/debug/app`### Android
1. Read [Readme](Android/Readme.md) inside Android folder
### Screenshots
- macOS
- iOS
- Ubuntu
- Android