From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/opengl-x11-overlays.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/html/opengl-x11-overlays.html') diff --git a/doc/html/opengl-x11-overlays.html b/doc/html/opengl-x11-overlays.html index df139e84d..bda83c3c6 100644 --- a/doc/html/opengl-x11-overlays.html +++ b/doc/html/opengl-x11-overlays.html @@ -72,19 +72,19 @@ information. visual, while all other widgets will use the overlay visual. Thus, we can place a normal widget on top of the TQGLWidget, and do drawing on it, without destroying the image in the OpenGL window. In other words, -we can use all the drawing capabilities of TQPainter to draw the +we can use all the drawing capabilities of TQPainter to draw the annotations, rubberbands, etc. For the typical use of overlays, this is much easier than using OpenGL for rendering the annotations.

An overlay plane has a specific color called the transparent color. Pixels drawn in this color will not be visible; instead the underlying OpenGL image will show through. In the example program X11 overlay, the file -main.cpp contains a routine that returns a TQColor containing the +main.cpp contains a routine that returns a TQColor containing the transparent color. For the overlay widget, you will typically want to set the background color to the transparent color, so that the OpenGL image shows through except where explicitly overpainted.

Note: to use this technique, you must not use the "ManyColor" or -"TrueColor" ColorSpec for TQApplication, because this will force +"TrueColor" ColorSpec for TQApplication, because this will force the normal TQt widgets to use a TrueColor visual, which will typically be in the main plane, not in the overlay plane as desired.

-- cgit v1.2.3