F# with OpenTK example?
Question
Is anybody aware of a possibility to use C# libraries like OpenTK (http://www.opentk.com/) from F#, too? I'm especially interested in a Math toolkit library to give some scripts extra speed by taking advantage of the GPU from within F#.
What's a painless way to do that? :)
Solution
As Juliet mentions, you can use any .NET library from F#. Talking about OpenTK specifically, there is some material written by Laurent Le Brun (however, all of them are about graphics and not math):
- An introductory article: F# + OpenGL: a cross-platform sample
- More examples are in the
samples/opengl
directory in the F# cross platform project on CodePlex
It's probably not exactly the same thing as you're looking for, but it should help (e.g. if there are some tricky things that need to be done when using OpenTK from F#)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow