PDA

View Full Version : vb and openGL



03-19-2003, 06:57 PM
hey there
any good tutorial on openGL programming in Vb
help desperately needed

jiangerlai
03-19-2003, 11:50 PM
I don't think you need a tutorial specifically for vb. OpenGL is based on c.
And vb can call libiraries base on c or c++.
So any book on OpenGL is helpful.

kanet77
03-20-2003, 11:32 AM
Originally posted by jiangerlai:
I don't think you need a tutorial specifically for vb. OpenGL is based on c.
And vb can call libiraries base on c or c++.
So any book on OpenGL is helpful.



Quite true, jiangerlai. However, I feel it might be helpful to mention that calling c/c++ functions from VB can be quite tricky. I dealt with this when I had to make Win32 API calls from VB. VB doesn't have pointers so any c/c++ function that accepts a pointer as an argument or returns a pointer is a little goofy. If I recall correctly, in general you can use a VB String in place of most pointers.

I have a good book "Dan Appleman's Visual Basic Programmer's Guide to the Win32 API" that discusses Win32 API calls specifically, and c/c++ calls generally. There's also plenty of info online.

Best of luck,
-tom