Hardware overlay planes
The user interface of many professional applications often require elements to be interactively drawn on top of a 3D model or scene. The cursor, pop-up menus or dialogs will appear on top of the 3D-viewport. These elements can damage the contents of the covered windows or affect their performance and interactivity.
To avoid this, most professional applications use overlay planes. Overlay planes allow items to be drawn on top of the main graphics window without damaging the contents of the windows underneath. Windows drawn in the overlay plane can contain text, graphics etc - the same as any normal window.
The planes also support the transparency function, which when set allows pixels from underneath the overlayed window to show through. They are created as two separate layers. This prevents possible damage to the main graphics window and it also improves performance. Likewise, showing an overlayed window as transparent with graphics inside allows items in the user interface to be drawn over the main graphics window.
Clearing and redrawing only the overlayed window is significantly faster than redrawing the main graphics window. This is how animated user-interface components can be drawn over 3D models or scenes.