[swift-users] Here's a multi-platform OpenGL loader for Swift.

Harlan Haskins harlan at harlanhaskins.com
Fri Dec 11 22:00:39 CST 2015


This is a great use case for multiline string literals! 😅

> On Dec 11, 2015, at 10:56 PM, Joe Groff via swift-users <swift-users at swift.org> wrote:
> 
> Nice! Having done OpenGL bindings for other languages, I know this isn't a trivial task. Giving the functions argument labels is a nice touch.
> 
> -Joe
> 
>> On Dec 10, 2015, at 9:22 PM, David Turnbull via swift-users <swift-users at swift.org> wrote:
>> 
>> If you tried using OpenGL with something other than Apple's framework then you probably didn't get very far. The header files of GLEW and Epoxy aren't fully understood by Swift. So I wrote some Swift code that generates some Swift code using the XML file from Khronos. Now everything you usually get from the headers is Swift code.
>> 
>> https://github.com/AE9RB/SwiftGL
>> 
>> The Demo folder contains an OpenGL equivalent of hello world. This is also a good example to look at if you want to learn more about C bindings.
>> 
>> https://github.com/AE9RB/SwiftGL/tree/master/Demo
>> 
>> -david
>>  _______________________________________________
>> swift-users mailing list
>> swift-users at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-users
> 
> 
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151211/7274db1e/attachment.html>


More information about the swift-users mailing list