Hello everyone,
I want to draw a cylinder using OpenGL in VB.NET. I dont know how it can be done.
Can somebody tell me how to draw it ?
All the responses are welcome.
Regards,
Hello everyone,
I want to draw a cylinder using OpenGL in VB.NET. I dont know how it can be done.
Can somebody tell me how to draw it ?
All the responses are welcome.
Regards,
Originally posted by the_rising:
[b]Hello everyone,
I want to draw a cylinder using OpenGL in VB.NET. I dont know how it can be done.
Can somebody tell me how to draw it ?
All the responses are welcome.
Regards,[/b]
Because you’re using VB.NET you won’t be able to do any cylinder at all: this is forbidden
No, I’m kidding…
Glu quadrics are what you’re looking for. Create one quadric and then call gluCylinder to make what you want.
Hi
Actually I did it in the same way. I created one quadric and called gluCylinder but there is coming some error “Object reference not set to an instance of an object” at the step where I used the created quadric. I dont know how to rectify this error.
Please help.
Regards,
Originally posted by the_rising:
Object reference not set to an instance of an object
It seems that you declared and used a reference without having affected it to an existed instance of that object type. As a reference is just an ‘alias’ you are using something that doesn’t exist.
However I’ve done so few VB in the past that I can’t ensure that, but that seems the way.
Hope that helps.