<div dir="ltr">On Fri, Dec 18, 2015 at 2:31 PM, Janosch Hildebrand via swift-users <span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></span> wrote:<br><div class="gmail_quote"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>You will also want to have this code in the same module that is using this type.</div><div>If you're using these types from another module you're limited to unspecialized generics which are (unsurprisingly) very slow.</div></div></blockquote><div><br></div></span><div>This is becoming clear. Hopefully these patterns can be optimized across modules eventually. It's easy enough to write a pre-processor that expands the generics into four specializations. But it doesn't solve everything so not a priority.</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>And since you probably need to drop generics anyway it might make sense to simply wrap the respective GLKit types on OS X and iOS for the GLFloat variants as they are already highly optimized. I have some wrappers for the GLKMatrix and GLKVector types lying around in my own OpenGL wrapper (incidentally also named SwiftGL ;-)) which might save you some typing if you're interested...</div></div></blockquote><div><br></div></span><div>I'm trailblazing cross-platform OpenGL in Swift. Given there's only one other platform, the key question is, "Does it work on Linux?"<br></div><div><br></div><div>Is your SwiftGL online somewhere? A cursory search didn't yield anything. </div><div><br></div><div><span style="font-size:13px">-david (</span><a href="https://github.com/AE9RB/SwiftGL" style="font-size:13px" target="_blank">https://github.com/AE9RB/SwiftGL</a><span style="font-size:13px">)</span><br></div><div><br></div></div></div></div>
</div><br></div>