Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > gluNurbsCallbac...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 4789 of 5041
Post > Topic >>

gluNurbsCallback in .Net

by sturner <sturner@[EMAIL PROTECTED] > Jun 11, 2008 at 06:03 AM

Hi,

I have a real problem in that I am using VB.Net 2008 (with the Mesa
glu32.dll). NurbsVertexCallback has a delegate declaration as follows:
Delegate Sub NurbsVertexCallback(ByVal vertex() As Single)

Unfortunately, vertex only gets returned as an array of length 1 (i.e.
just the X coordinate). I have found a (very) few posts which seem to
indicate that there is a problem casting GLFloat* back to an array
in .Net.

In summary, glu32.dll declares vertexCallBack as:
vertexCallBack(const GLfloat *vert)

but this just gets converted back to:
NurbsVertexCallback(ByVal vertex As Single)

in .net.

Anyone know how to rectify this?

Thanks a lot

Simon
 




 3 Posts in Topic:
gluNurbsCallback in .Net
sturner <sturner@[EMAI  2008-06-11 06:03:29 
Re: gluNurbsCallback in .Net
sturner <sturner@[EMAI  2008-06-12 09:56:16 
Re: gluNurbsCallback in .Net
Paul Geisler <paul.gei  2008-06-27 02:19:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 0:05:16 CST 2008.