Learning OpenGL ES 2 in Swift
Swift Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
01.HelloOpenGL update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
01.RedAlert update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
02.Star update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
02.Triangle update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
03.ColoredSquare update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
03.IndexedSquare update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
04.VertexArrayObject update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
05.Model update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
06-1.ModelTransformation update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
06-2.ModelTransformation-Animation update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
06-3.ViewTransformation update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
06-4.ProjectionTransformation Update ViewController.swift Aug 21, 2017
06-5.AnimateCube update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
06-6.DepthAndCulling update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
07-1.Texture update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
07-2.Dice update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
07-3.Masking update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
08-1.AmbientLight update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
08-2.DiffuseLight update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
08-3.SpecularLight update swift language version to swift4 using Xcode 9 Beta. Jun 13, 2017
09-1.ObjModelLoader add obj support Aug 30, 2017
09.BrickBreakerGame/BrickBreakerGame final game play sample code Sep 11, 2017
.gitignore Initial commit Mar 25, 2016
LICENSE commit example in swift Mar 25, 2016
README.md update contributors Sep 12, 2017

README.md

LearningOpenGLES2

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

  • master branch: Swift 4
  • swift/3.x branch : Swift 3.x

Contributors

  • Yoon-Soo, Lee(dansoonie)
    • He converted all the source code to Swift 3.0 and stabilized it.
  • Michael(mrommel)
    • He helped implement obj model loader and examples.
  • Keith(KeithPiTsui)
    • He helped implement final game project in swift.
  • DongHyuk Kim, (sss989870)
    • He helped improve code quality.

Hello OpenGL

Red Alert

Star

Triangle

Colored Square

Indexed Square

Vertex Array Object

Model

Model Transformation

Model Transformation-Animation

View Transformation

Projection Transformation

Animate Cube

DepthAndCulling

Texture

Multi Texture

Masking

Ambient Light

DiffuseLight

SpecularLight

ObjModelLoader

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.