taylaninan / opengldotnet Goto Github PK
View Code? Open in Web Editor NEWC# Language Bindings for OpenGL v4.5
C# Language Bindings for OpenGL v4.5
The repository is missing a license, I would advise adding one.
I'm currently rewriting this library, I hope you don't mind. My reimplementation is public and free to use by anyone. My reimplementation really doesn't share any resemblance to the original, so I may just add MIT licensing to my fork. But before I do, I wanted to give you a chance to add your own license. ^^
The current boolean fields are writable from consumer code. I would recommend protecting them with Properties like such:
// Auto-property, with support for setting the backing field privately from outside the static constructor, as you do
public static bool GL_VERSION_1_0 { get; private set; }
//Manual readonly property with private backing field, if you require support for older versions of C#
private static bool glVersion10;
public static bool GL_VERSION_1_0 { get { return glVersion10; } }
Just simple code
Unhandled Exception: System.AccessViolationException: Attempted to read or write
protected memory. This is often an indication that other memory is corrupt.
at OpenGLDotNet.GLUT.glutInit(Int32* argcp, Byte** argv)
at OpenGLDotNet.GLUT.Init(Int32[] argcp, String[] argv)
at GL0x01.Program.Main() in C:\OpenGL\Projects\...\...\Program.cs:line 10
But it fix by removing null and create array with some string, but your example show community calling with null param. This is a very good example.
Well, here we are lucky, why lucky? Yes, because the library was able to load! If you use a pre-built debility library from the releases folder there will be an exception that the library cannot load!
What did people do Nuget for? What did people do Releases tab in github? When it is possible to throw everything into the Releases folder in the project and throw it into the repository.
You beat records in quality and attitude to those people who use your library!
Let me know where you got these libraries from:
DevIL.dll
freeglut.dll
glut32.dll
glut32.old.dll
ILU.dll
ILUT.dll
I have not seen these libraries in Nuget dependencies. I have not seen these libraries in project resources. And again you broke the record in relation to the community! You just threw them into the debug folder!
What is the glu32.old library? Why keep old libraries if it is not clear where they are used?
What kind of library freeglut.dll? And why use it if there is glu32? glu32 not working or what?
After compiling the demo in the Releases folder does not work, it just crashes! I can't believe how you did it at all!
If the library is positioned as comfortably, why not make the simple overloaded GLUT.Init method without arguments? That will call GLUT.Init (new [] {0}, null).
How could this even be mentioned on the official opengl website as super comfortable opengl binding? If it just does not work.
I certainly understand that I can be blunt, but not so much that I could not call a simple method and get an exception!
I hope for the understanding of the author and the fact that he will fix his shoals with this library.
At a least, it will be placed on nuget, in github releases, the ready lib will be put, and all other libraries will be indicated in the file third-party or indicate where they will be taken from.
I had a quick look through GL.CoreWrappers.cs and this problem seems to also happen for CreateProgram. Is there another way to get the shader or program's id?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.