Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

LilBudyWizer

Render contexts

This topic is 5895 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

For lack of a better title. I''m just getting started playing around with OpenGL using Borland C++ Builder 6.0. I found I can stick controls onto the window I''m using for OpenGL rendering. Since my goal is to experiment this seems handy. So is that a safe thing to do? I''m thinking the controls are actually seperate windows positioned over top of another window so it seems like it should be safe. It seems reasonable to expect it to slow things down a bit to redraw those windows each time I swap buffers, but is there any other potential problems?

Share this post


Link to post
Share on other sites
Advertisement
I have done some openGL programs in Delphi, and it is perfectly safe to use the handle of a TPanel for creating an opengl context. Im not sure if you might have some side effects with other controls or not.

Share this post


Link to post
Share on other sites
Wasn''t exactly what I was trying, but was a better idea. I was just leaving part of the client area of the form uncovered and using a viewport to the uncovered region. Using a TPanel was what I originally planned to do, but assumed it would overwrite the display. It gave me a flicker until I set the FullRepaint property to false.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!