Skip to main content
GameDev.net gamedev.net
🔒 Locked

Render contexts

Started by LilBudyWizer May 31, 2002 at 1:36 PM 1 replies 400+ views
Original Post
LilBudyWizer
LilBudyWizer
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?
Keys to success: Ability, ambition and opportunity.
LordKronos
LordKronos
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.
Ron FrazierKronos Softwarewww.kronos-software.comMiko & Molly - Taking Puzzle Games to A Whole New Dimension
LilBudyWizer
LilBudyWizer
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.
Keys to success: Ability, ambition and opportunity.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.