Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.2 KB

README.md

File metadata and controls

55 lines (35 loc) · 1.2 KB

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 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 inside Android folder

Screenshots

  • macOS

  • iOS

  • Ubuntu

  • Android