OpenGL tips

BlitzPlus Forums/BlitzPlus Programming/OpenGL tips

JoshK(Posted 2005) [#1]
-Use panel gadgets for your viewports. It is best to set the panel class to have no background with SetClassLong hwnd,GCL_HBRBACKGROUND,0. However, this will disable the background on ALL panels. I was told that a future update to BlitzPlus would have a no-brush style flag.

-Compile the following PureBasic code into a DLL. Use InitWindow(hwnd) to enable repaint checking on for viewport. Use WindowPainted(hwnd) to check each viewport and redraw the scene if that viewport has been redrawn. I just tested it with two viewports, and it works perfectly, updating only the viewports that actually get repainted.