ModernGL.jl icon indicating copy to clipboard operation
ModernGL.jl copied to clipboard

Untyped vs Typed parameter

Open SimonDanisch opened this issue 12 years ago • 1 comments

I just noticed, that the functions generated by getC.jl package generate untyped function parameters, whereas I typed the function parameters. Leaving the types away is quite convenient, as all the annoying type conversions are done by ccall. Maybe I should do the same, even though it feels very odd, to have such a low level api untyped (even though, that the ccall does the type check in the end). This also means, that you could override glCalls, by supplying a function with correctly typed parameters. Guess I should just leave the types away for now, until I find a good solution for this.

SimonDanisch avatar Apr 07 '14 12:04 SimonDanisch

I tried in the past in failed. Let me know how it goes!

rennis250 avatar Apr 23 '14 21:04 rennis250