Click here to Skip to main content
15,847,427 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Im trying to draw sphere using openGL in C# application.

code is
C#
GLUquadric quadratic;

public override void glDraw()
{
    GL.gluSphere(this.quadratic, 1.3f, 32, 32);	
}


Error is

Error 1 The type or namespace name 'GLUquadric' could not be found (are you missing a using directive or an assembly reference?)

Plz help


Thanks!!!
Posted
Updated 15-Mar-10 6:06am
v2

1 solution

anagha24 wrote:
Error 1 The type or namespace name 'GLUquadric' could not be found (are you missing a using directive or an assembly reference?)


The clue is in the question...

Make sure you have included a

using Tao.OpenGl


statement at the top of the class and also include a reference to the DLL in the project that contains the class by right-clicking the Projects 'References' folder in the Solution Explorer and selecting 'Add Reference.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900