View Full Version : Open Gl programming with vb6

08-24-2000, 12:19 PM
I am visual basic 6 database programmer how can i learn open GL Api with Visual basic
while i dont kno wany thiong about graphix programming

08-25-2000, 02:35 AM
first download some good tut's (i recommend
the opengl red book)...
NeHe tut's are a great help.

then, know how to link up to dll's in vb.
follow the tutorials.

you will have to convert a lot of C code into vb. :-(

why not just do it with glut and c?:-)

08-25-2000, 03:48 AM
There is no problem with using vb whatsoever. the speed will be relatively the same if you just use Opengl calls because they are used from the .dlls. If you go in intense computation like colision detection, vb will be slow for that, but again you can just write a .dll to handle your routine or you can just live with the performance.

This a link that a couple of example of VB programs that uses opengl.

If you want more, just go at www.google.com (http://www.google.com) and type VB opengl.

have fun!

[This message has been edited by Gorg (edited 08-25-2000).]

08-26-2000, 01:49 AM
thanks all
ai will try your suggestions
then will tell you

09-08-2000, 01:44 PM
but i could not find any bools reaaly teaching about the learning open GL with the reference of VB
and also could not find the DLLs needed to run a open GL programm

09-11-2000, 08:09 AM
The easiest way to use OpenGL in VB6 is to download a type library for OpenGL. The type library declares all of the variable types and functions that will get you into the OpenGL32.Dll file that is included with Win95,98, etc.

There are a ton of OpenGL examples floating around on the web. Mark Kilgard has some good ones. It is best to start with the very simple stuff first.

You could look at http://www.velocity.net/~carnell for some real basic 3D info and skeleton programs.

The type library is the key to getting the whole deal working. Most of the libraries were created when VB5 was out, but should work with VB6.