giawa / opengl4csharp

OpenGL 4 Bindings (partially based on OpenTK) for C#
Other
232 stars 61 forks source link

Missing ImageSharp #63

Closed Khhs167 closed 3 years ago

Khhs167 commented 3 years ago

Hi! I am trying to load a texture, with new Texture() and when i do that i get an error that says that it cannot load ImageSharp verison="1.0.0.0". I have tried with including both ImageSharp latest and verison 1.0.0, why doesnt it work?

giawa commented 3 years ago

Hi there,

The opengl4csharp library requires ImageSharp for processing the bitmap image and converting it to the correct format/flipping it/etc. This library should be included by default with opengl4csharp (you should see it in the lib folder). Make sure the same ImageSharp included with the opengl4csharp project is included in the binary folder of your application.

That all being said, I'm going to update the library to use the new System.Drawing.Common nuget package.

Thanks!

giawa commented 3 years ago

I've just updated the dotnetcore branch to use System.Drawing.Common instead. If you're up for it, try adding that nuget package and pull that latest opengl4csharp. Hopefully that will do the trick!

giawa commented 3 years ago

I'm going to close this for now, but feel free to reopen the issue if you run into any problems.