<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>This is a great use case for multiline string literals! 😅<br></div><div><br>On Dec 11, 2015, at 10:56 PM, Joe Groff via swift-users <<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=us-ascii">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=""><a href="https://lists.swift.org/mailman/listinfo/swift-users">https://lists.swift.org/mailman/listinfo/swift-users</a><br class=""></div></blockquote></div><br class=""></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=z0Ft8gvIaLt1zLwfkl4og6osLD9N8tlWJY1PY2zqWLUKLmbOKEgFGK9AU023UpKB2Hg-2Brj1r3MUEOTZPOQAj4Rw8r-2B3-2BIvcDmVgXVrktPBgDJsYffhtg345I-2FcXaygr8QcVKUHJ4R46N71AY57jgyapcUvuQriXRwqeKG-2B1a2WIfIj4pSo-2FF9YwYDBx3SqZgFHiYGLCtZMTew9Y6V0zhcJeG-2FlFKnTm2bOk0knEV-2B7I-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;">
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-users mailing list</span><br><span><a href="mailto:swift-users@swift.org">swift-users@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-users">https://lists.swift.org/mailman/listinfo/swift-users</a></span><br></div></blockquote></body></html>