Learning OpenGL ES 2 in Swift. There is an OpenGL ES 2.0 Tutorial at Raywenderlich channel on Youtube or www.raywenderlich.com. This tutorial is really great! If you have to learn the opengl es 2.0, you'd like to watch the opengl es 2.0 video tutorial whatever you are iOS developer or Android developer. But This tutorial's example was written in ObjectiveC. So I've made the examples in swift while I am following the tutorial. I've excepted last four examples for making game in 3D.
Support Swift language version
masterbranch: Swift 4
swift/3.xbranch : Swift 3.x
- Yoon-Soo, Lee(dansoonie)
- He converted all the source code to Swift 3.0 and stabilized it.
- He helped implement obj model loader and examples.
- He helped implement final game project in swift.
- DongHyuk Kim, (sss989870)
- He helped improve code quality.
Vertex Array Object
obj parsing taken from here:
Ray Wenderlich License
The Ray Wenderlich License
Copyright (c) 2010, 2011 Ray Wenderlich https://www.raywenderlich.com/faq
Permission is hereby granted, free of charge, to any person obtaining a copy of this software to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.