An open API service indexing awesome lists of open source software.

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)

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