Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hmage/glboilerplate
Smallest OpenGL boilerplate for iOS
https://github.com/hmage/glboilerplate
Last synced: about 1 month ago
JSON representation
Smallest OpenGL boilerplate for iOS
- Host: GitHub
- URL: https://github.com/hmage/glboilerplate
- Owner: hmage
- Created: 2013-12-22T12:31:06.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-22T13:13:03.000Z (about 11 years ago)
- Last Synced: 2024-10-16T00:33:23.006Z (3 months ago)
- Language: Objective-C
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
iOS OpenGL boilerplate
===============The minimal amount of code needed to draw a single triangle on iOS devices.
Background
========When I was searching how to start making OpenGL games on iOS, I looked for examples, but couldn't find a good one — all of them went overboard with creating this, abstracting that. I didn't need to learn that, I know that already — just gimme the minimal amount of code to draw a triangle — I'll go from there on my own.
The Xcode project wizard spews about 10 files, which is way more than bare minimum, so I ended up making one — one `.m` file, one `.plist` file and one `.pbxproj` file.
To keep code brief, we use OpenGL ES 1.0 to omit shader setup, projection setup and pretty much any other setup that would be required in OpenGL ES 2.0. I assume you know how to handle 2.0, you will need to change to `kEAGLRenderingAPIOpenGLES2` in `viewDidLoad` function.
It's up to you to figure out how to add functionality you want, Xcode has a very good documentation set — *__read it__*.
Requires:
* Xcode 5.0 to compile
* iOS 7 to runYou're free to take it and use it however you like.