Skip to main content
GameDev.net gamedev.net
🔒 Locked

Quadrics hate me

Started by DJohnson Dec 12, 2003 at 11:21 PM 2 replies 2k views
Original Post
DJohnson
DJohnson
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.
Or what? You'll send the dogs? Or the bees? Or the dogs with bees and when they bark they shoot bees at you?
Dave Hunt
Dave Hunt
It looks like the glu stuff wasn''t included in your assembly. Where did you get the ".NET-ized" gl/glu stuff?
heathcliff17
heathcliff17
You are missing the glu stuff in the header that tells the function that you are going to be using a quadric and then it is also needed whe you pass it to your function where you are rendering the object

looks something like this...
void myFunc(GLUquadricObj *myObj)

Peace, Love and Rabid Chipmunks - B :-P
Peace, Love and Rabid Chipmunks - B :-P

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.