这个简单的代码给出了系统异常,我无法跟踪它,因为我无法在 wpf 中将输出输出到控制台。
OpenGL gl = new OpenGL();
// OpenGL gl = openGLControl.OpenGL; doesnt change result
uint[] buf = new uint[1];
buf.Initialize();
gl.GenBuffers(1, buf); //commenting this line out, makes the exception vanish
什么可能导致GenBuffers
在 SharpGL.dll 中引发系统异常的方法?
使用针对 VS2012 的最新版本的 sharpGL 和 .Net 4.0。
我应该为 C++ 安装 opengl 并在 C# 中使用它的包装器吗?