Skip to content

This library attempts to make it easy to use OpenGL from within Apple's Swift programming language, while providing a uniform interface for both OSX and iOS development

License

Notifications You must be signed in to change notification settings

jefferyq2/SwiftGL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftGL

This library attempts to make it easy to use OpenGL from within Apple's Swift programming language, while providing a uniform interface for both OSX and iOS development. This includes providing a math library designed to look and feel like glsl (and loosely based on the GLKit and GLM libraries), as well as including object-oriented wrapper classes and convenience functions to make designing applications which use OpenGL3.2+ or OpenGLES2.0+ faster and easier.

In order to build the library for either OSX or iOS, the only change that needed is merely changing the scheme in XCode (found in the top left corner of the screen). Then build and enjoy.

Also included in this project is the source code for a simple OSX demo, demonstrating the SwiftGL library in use. The code for the OpenGL view and window are based on Apple's GLEssentials sample code, and as such follows Apple's recommended best practices. This should be fairly easily used as a good starting point for any OSX OpenGL project, games or otherwise.

About

This library attempts to make it easy to use OpenGL from within Apple's Swift programming language, while providing a uniform interface for both OSX and iOS development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 94.0%
  • Objective-C 5.5%
  • Other 0.5%