luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
568 stars 108 forks source link

OpenGL.Net.CoreProfile #114

Open pragmascript opened 6 years ago

pragmascript commented 6 years ago

Hello,

I was trying getting a sample running with OpenGL.Net.CoreProfile. Unfortunately getting CoreProfile from NuGet doesn't seem to work. So I tried building it manually from Source. OpenGL.Net.dll builds fine also OpenGL.Net.Math.dll however I cannot seem to find a dll for OpenGL Core Profile. Is this dll deprecated?

luca-piccioni commented 6 years ago

No, the DLL is not deprecated. It is generated by the post-build script.

Can you be more specific about about "doesn't seem to work"?

pragmascript commented 6 years ago

Hey, I assume the "BindingGen" post-build script should generate the OpenGL.Net.CoreProfile. But I get

Schweregrad Code    Beschreibung    Projekt Pfad    Datei   Zeile   Unterdrückungszustand
Fehler      Der Befehl "E:\Projects\VV3\GUI Test\OpenGL.Net-master\BindingsGen\bin\Release\BindingsGen.exe --assembly "E:\Projects\VV3\GUI Test\OpenGL.Net-master\OpenGL.Net\bin\net461\Release\OpenGL.Net.dll"" wurde mit dem Code 9009 beendet.   OpenGL.Net_net461               

with Code 9009 in the post-build step. I managed to get it working with NuGet though. So it's not a big problem.

ForeverZer0 commented 5 years ago

Would be nice to have a .NET Core NuGet package. Currently the OpenGL.CoreProfile package only seems to support .NET Framework and Mono. As .NET Core has matured now, it is usually favored over those two frameworks. Being the compatibility profile can be built and has a package, I assume this is just a matter of configuring a project file and adding the package?

LittleRainGames commented 5 years ago

Can you be more specific about about "doesn't seem to work"?

In the project references, there is a warning symbol on the CoreProfile. When double clicking, it will not show you the contents, instead it gives the error message in quotes. "This project cannot be viewed in the object browser because it is unavailable or not yet built. Please ensure that the project is available and built." coreProfileError

ForeverZer0 commented 5 years ago

@LittleRainGames You appears you have both OpenGL.NET and OpenGL.NET.CoreProfile.