PDA

View Full Version : Setupo Open gl on c++ builder 5 TForm



gioa001
03-07-2001, 12:01 PM
I try to setup open gl on a c++ builder TForm, i have found some code trow internet by they don't run.
Some one can halp me?

03-08-2001, 11:53 AM
It's simple:

Just create the form. On the constructor (on in the OnCreate event) set the pixel format, create the opengl render context and make it current.
You need to remember to use this->Handle for the window handler and this->Canvas->Handle for the device context handler.

If you have any more question about working with opengl in BCB5, don't hasitate to ask.

you can e-mail me to Gaviyota@hotmail.com