Original Post
Ok, what is wrong with this code?
void DrawTorpedo()
{
GLUquadricObj* mySphere;
mySphere = NULL;
mySphere = gluNewQuadric();
if(mySphere!=NULL)
gluDeleteQuadric(mySphere);
}
It compiles fine, but I get the following error when I run it:
---
An unhandled exception of type ''System.TypeLoadException'' occurred in Demo.exe
Additional information: Could not load type GLUquadric from assembly Demo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
---
Oh the frustration. Little help here please? My program was going great until I tried adding Quadrics.