realvictorprm / GLFW3.NET

Automatic generated bindings of GLFW3 for .NET
Apache License 2.0
32 stars 5 forks source link

Functions returning multiple GLFWvidmodes or GLFWmonitors only return one #11

Open nsglover opened 6 years ago

nsglover commented 6 years ago

There are a few functions that don't return what the GLFW documentation says they should:

There may be others; I'll be sure to update this issue if I find any.

Should be a simple fix; looks like the CppSharp-generated file (/generated/GLFW3.cs) just needs a little tweaking. I tried to figure it out myself (if I had this would have been a pull request), but was unsuccessful. Thanks!

realvictorprm commented 6 years ago

Hm let me see, the CppSharp Version used here should be updated anyway (The build system should use a dependency on the nuget package).

realvictorprm commented 6 years ago

Ah I forgot that I fixed that part of the build system some time ago xD

realvictorprm commented 6 years ago

Okay, I looked into the generated file again and agree on your observation. The generated code is very wrong but I first need to find out why this is the case. If this is a bug in CppSharp I'll try to fix it.

Thanks @NathanielGlover for reporting!

nsglover commented 6 years ago

Sure thing! I don't know if this helps any, but I'm using the RawBinding build on Mono.

realvictorprm commented 6 years ago

This Looks to me like a bug in CppSharp but I'm still checking.

MarkWilds commented 5 years ago

I noticed this problem still exists?