<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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.<div class=""><br class=""></div><div class="">-Joe</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 10, 2015, at 9:22 PM, David Turnbull via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">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.<br class=""></div><div class=""><br class=""></div><div class=""><a href="https://github.com/AE9RB/SwiftGL" class="">https://github.com/AE9RB/SwiftGL</a></div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class=""><a href="https://github.com/AE9RB/SwiftGL/tree/master/Demo" class="">https://github.com/AE9RB/SwiftGL/tree/master/Demo</a></div><div class=""><br class=""></div><div class="">-david</div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=RoDF4MveSEMYBIqIJA6ub1g8cOZ-2BVYvqV-2FqygPhjPn8YZU-2ByLJMey2xx9xZk0su-2BGcHsMhFGjwXViCU3YhTjjEBGf0aa6ZXjxdX1tnHcwM0LAbGio2CmuIwcUhNXeYrMeaeUMFA8orP8UihdcJLKVbxzRkrqV6Kx2cRip1kBIjVMDEZy6lzyS-2F59AgAkGruTbw23n6QZhxxt9I8br1cTHHOoLVGVjcvm7KcNNMWU1Ik-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></div></body></html>