Skip to content

Low level pointers VS c# level objects #463

Answered by Perksey
courgeon asked this question in Ideas
Discussion options

You must be logged in to vote

Hi, thanks for your feedback!

Bringing our bindings closer to C# and less raw is something we want to work on, however we want to capture the best of both worlds as 1:1 bindings is one of our features.

For GL.GetString in particular, there is GL.GetStringS which returns a string but this isn't obvious, and in the future I think I'm going to look at adapting that to just overload to have an out parameter on the original function. The root problem is we can't overload by return type alone, so I think using out parameters will solve that. After that we'll be much more capable of introducing overloads in this fashion.

In GLFW's case, however, these bindings are handwritten and will need more …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@courgeon
Comment options

Answer selected by courgeon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants