{"id":27149303,"url":"https://github.com/sakrist/swift_opengl_example","last_synced_at":"2025-04-08T12:48:49.404Z","repository":{"id":54639998,"uuid":"48895373","full_name":"sakrist/Swift_OpenGL_Example","owner":"sakrist","description":":star: Swift OpenGL Example written with swift (for Ubuntu, macOS, iOS and Android)","archived":false,"fork":false,"pushed_at":"2023-09-30T23:14:28.000Z","size":824,"stargazers_count":70,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2023-10-01T19:54:05.440Z","etag":null,"topics":["concept","ios","linux","macos","opengl","opengl-context","swift","swift-opengl","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sakrist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-01-02T01:52:00.000Z","updated_at":"2023-10-01T19:54:05.441Z","dependencies_parsed_at":"2022-08-13T22:30:58.497Z","dependency_job_id":null,"html_url":"https://github.com/sakrist/Swift_OpenGL_Example","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakrist%2FSwift_OpenGL_Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakrist%2FSwift_OpenGL_Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakrist%2FSwift_OpenGL_Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakrist%2FSwift_OpenGL_Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sakrist","download_url":"https://codeload.github.com/sakrist/Swift_OpenGL_Example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247846877,"owners_count":21006090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["concept","ios","linux","macos","opengl","opengl-context","swift","swift-opengl","ubuntu"],"created_at":"2025-04-08T12:48:48.817Z","updated_at":"2025-04-08T12:48:49.392Z","avatar_url":"https://github.com/sakrist.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swift OpenGL Example\n\nThis 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. \n\n### macOS\n\nTerminal:\n\n1. Open a terminal window\n2. Clone repository \n3. Go to the directory to which you clone.\n4. run `swift build` in terminal\n5. run `.build/debug/app`\n\nor Xcode\n\nOpen `opengl_example.xcodeproj` project.\n\n### iOS\n\n1. Open `opengl_example.xcodeproj` project.\n2. Select **iOS_example** target and destination\n3. Run\n\n### Linux (Ubuntu 64-bit)\n\n1. [Install](https://swift.org/getting-started/#installing-swift) swift toolchaine.\n\n2. Open a terminal window\n3. Install dependecies packages\u003cbr\u003e\n`sudo apt-get install libx11-dev libglu1-mesa-dev mesa-common-dev`\n4. Clone repository\n5. Go to the directory with project.\n6. run `swift build` to build\n7. run `.build/debug/app`\n\n### Android\n\n1. Read [Readme](Android/Readme.md) inside Android folder\n\n### Screenshots\n\n- macOS\u003cbr\u003e\n\u003cimg src=screen1.png width=\"500\"\u003e\n\n- iOS\u003cbr\u003e\n\u003cimg src=Default-568h@2x.png width=\"500\"\u003e\n\n- Ubuntu\u003cbr\u003e\n\u003cimg src=screen2.png width=\"500\"\u003e\n\n- Android\u003cbr\u003e\n\u003cimg src=screen3.png width=\"500\"\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakrist%2Fswift_opengl_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsakrist%2Fswift_opengl_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakrist%2Fswift_opengl_example/lists"}