A few questions relating to OpenGL, C++ and VB

HI,

I am currently working on a game engine in OpenGL. I am programming it in VC++. Here are my questions.

  1. Can I make some sort of a dll or group of dll with all the OpenGL code and load it into VB and then use the Engine to Render to a VB Form?

  2. If I use normal C++ or C++ without Winmain but with the main(), can I program in OpenGL and if so, would the engine and the game ultimately be multiplatform?

Thanks a Lot,
Aditya Gaddam

I can’t answer your first question… but for question#2 try using GLUT, you can use main() and (try to)keep your code platform independent… you can also rapidly create OGL environment using GLUT

You can use opengl in visual basic very

easily you must first have (vbogl.tlb)

you will find it in that excellent site .

Originally posted by Hazem_vb:
[b]You can use opengl in visual basic very

easily you must first have (vbogl.tlb)

you will find it in that excellent site .[/b]

Ah… Stealth link…

You can get the tlb for 1.2 from…
http://is6.pacific.net.hk/~edx/tlb.htm

thanks guys…

-Aditya