diff options
Diffstat (limited to 'examples/opengl')
24 files changed, 39 insertions, 39 deletions
diff --git a/examples/opengl/box/README b/examples/opengl/box/README index 242c37257..d5fd6ab20 100644 --- a/examples/opengl/box/README +++ b/examples/opengl/box/README @@ -2,7 +2,7 @@ The box example This example program shows how to use OpenGL in Qt: Put your OpenGL -code in a class inherited from QGLWidget. The resulting subclass may +code in a class inherited from TQGLWidget. The resulting subclass may be used like any other TQt widget, with signals and slots, geometry management, etc.. diff --git a/examples/opengl/box/box.doc b/examples/opengl/box/box.doc index d30bd75b4..96f21208d 100644 --- a/examples/opengl/box/box.doc +++ b/examples/opengl/box/box.doc @@ -6,7 +6,7 @@ This example demonstrates how to use OpenGL in Qt. Essentially, all you do is put your OpenGL code in a class inherited -from QGLWidget. This class may then be used like any other TQt widget, +from TQGLWidget. This class may then be used like any other TQt widget, including the use of signals and slots and geometry management. See \c{$TQTDIR/examples/opengl/box} for the source code. diff --git a/examples/opengl/box/glbox.h b/examples/opengl/box/glbox.h index 9d8bebc99..7e930b21f 100644 --- a/examples/opengl/box/glbox.h +++ b/examples/opengl/box/glbox.h @@ -16,7 +16,7 @@ #ifndef GLBOX_H #define GLBOX_H -#include <ntqgl.h> +#include <tqgl.h> class GLBox : public TQGLWidget diff --git a/examples/opengl/box/main.cpp b/examples/opengl/box/main.cpp index 52521c845..62b46122d 100644 --- a/examples/opengl/box/main.cpp +++ b/examples/opengl/box/main.cpp @@ -18,7 +18,7 @@ #include "globjwin.h" #include <ntqapplication.h> -#include <ntqgl.h> +#include <tqgl.h> /* The main program is here. diff --git a/examples/opengl/gear/gear.cpp b/examples/opengl/gear/gear.cpp index 0ceb2f6cb..6b901b47e 100644 --- a/examples/opengl/gear/gear.cpp +++ b/examples/opengl/gear/gear.cpp @@ -13,7 +13,7 @@ // distribution. // -#include <ntqgl.h> +#include <tqgl.h> #include <ntqapplication.h> #include <math.h> diff --git a/examples/opengl/glpixmap/README b/examples/opengl/glpixmap/README index b01cfafee..166a4bbf4 100644 --- a/examples/opengl/glpixmap/README +++ b/examples/opengl/glpixmap/README @@ -3,6 +3,6 @@ The OpenGL pixmap example This example program is an extension of the "box" example program. -It demonstrates how to render OpenGL into a QPixmap. +It demonstrates how to render OpenGL into a TQPixmap. diff --git a/examples/opengl/glpixmap/glbox.h b/examples/opengl/glpixmap/glbox.h index 9903c23d9..a4c7da131 100644 --- a/examples/opengl/glpixmap/glbox.h +++ b/examples/opengl/glpixmap/glbox.h @@ -16,7 +16,7 @@ #ifndef GLBOX_H #define GLBOX_H -#include <ntqgl.h> +#include <tqgl.h> class GLBox : public TQGLWidget diff --git a/examples/opengl/glpixmap/globjwin.cpp b/examples/opengl/glpixmap/globjwin.cpp index 9a5b8bf11..caee75e44 100644 --- a/examples/opengl/glpixmap/globjwin.cpp +++ b/examples/opengl/glpixmap/globjwin.cpp @@ -23,7 +23,7 @@ #include <tqpopupmenu.h> #include <ntqapplication.h> #include <ntqkeycode.h> -#include <ntqpixmap.h> +#include <tqpixmap.h> #include <tqimage.h> #include <tqpainter.h> #include "globjwin.h" diff --git a/examples/opengl/glpixmap/glpixmap.doc b/examples/opengl/glpixmap/glpixmap.doc index 22fce4de3..1e5c7a531 100644 --- a/examples/opengl/glpixmap/glpixmap.doc +++ b/examples/opengl/glpixmap/glpixmap.doc @@ -6,7 +6,7 @@ This example program is an extension of the \link opengl-box-example.html OpenGL Box example\endlink. -It demonstrates how to render OpenGL into a QPixmap. +It demonstrates how to render OpenGL into a TQPixmap. See \c{$TQTDIR/examples/opengl/glpixmap} for the source code. diff --git a/examples/opengl/glpixmap/main.cpp b/examples/opengl/glpixmap/main.cpp index 67d1c77d5..4dd6665d1 100644 --- a/examples/opengl/glpixmap/main.cpp +++ b/examples/opengl/glpixmap/main.cpp @@ -18,7 +18,7 @@ #include "globjwin.h" #include <ntqapplication.h> -#include <ntqgl.h> +#include <tqgl.h> /* The main program is here. diff --git a/examples/opengl/overlay/README b/examples/opengl/overlay/README index 39e20b8a3..469c527b6 100644 --- a/examples/opengl/overlay/README +++ b/examples/opengl/overlay/README @@ -2,7 +2,7 @@ The overlay example This example program shows how to use OpenGL overlays with the TQt OpenGL -Extension. It contains a QGLWidget with a relatively expensive +Extension. It contains a TQGLWidget with a relatively expensive redrawing operation, and rubber-band drawing in the overlay plane. Using the overlay has the advantage that the rubber-band may be drawn and erased without damaging the image in the main plane, so costly diff --git a/examples/opengl/overlay/glteapots.h b/examples/opengl/overlay/glteapots.h index 24f27367f..ca249e546 100644 --- a/examples/opengl/overlay/glteapots.h +++ b/examples/opengl/overlay/glteapots.h @@ -17,7 +17,7 @@ #ifndef GLBOX_H #define GLBOX_H -#include <ntqgl.h> +#include <tqgl.h> class GLTeapots : public TQGLWidget diff --git a/examples/opengl/overlay/main.cpp b/examples/opengl/overlay/main.cpp index 3a56a5fe3..d5ec55eae 100644 --- a/examples/opengl/overlay/main.cpp +++ b/examples/opengl/overlay/main.cpp @@ -18,7 +18,7 @@ #include "globjwin.h" #include <ntqapplication.h> -#include <ntqgl.h> +#include <tqgl.h> #include <ntqmessagebox.h> /* diff --git a/examples/opengl/overlay/overlay.doc b/examples/opengl/overlay/overlay.doc index 43762330b..e38569f58 100644 --- a/examples/opengl/overlay/overlay.doc +++ b/examples/opengl/overlay/overlay.doc @@ -4,7 +4,7 @@ \title OpenGL Overlay Example This example demonstrates how to use OpenGL overlays with the TQt OpenGL -Extension. It features a QGLWidget with a relatively expensive redrawing +Extension. It features a TQGLWidget with a relatively expensive redrawing operation, and rubber-band drawing in the overlay plane. Using the overlay has the advantage that the rubber-band may be drawn and erased without damaging the image in the main plane, so costly redraws are diff --git a/examples/opengl/overlay_x11/README b/examples/opengl/overlay_x11/README index f11c439df..00b0f6454 100644 --- a/examples/opengl/overlay_x11/README +++ b/examples/opengl/overlay_x11/README @@ -3,7 +3,7 @@ UPDATE: From version 5.0 onwards, the TQt OpenGL Extension includes direct support for use of OpenGL overlays. For many uses of overlays, this makes the technique described below redundant. See the 'overlay' -example program. The following is a discussion on how to use non-QGL +example program. The following is a discussion on how to use non-TQGL widgets in overlay planes. ----------------------------------------------------------------------- @@ -15,10 +15,10 @@ Extension with X11 overlay visuals. The example program has three main parts: -GearWidget: A simple QGLWidget that renders the usual gears. Modified +GearWidget: A simple TQGLWidget that renders the usual gears. Modified so that it will print a debug message every time it redraws (renders) itself. Thus, you can eaily confirm that drawing in the overlay plane -does not cause redrawings in the main plane where the QGLWidget +does not cause redrawings in the main plane where the TQGLWidget resides. RubberbandWidget: Very simple standard (non-GL) TQt widget that @@ -38,7 +38,7 @@ Running it: ----------- Start the overlayrubber executable. Click and drag with the left mouse -button to see rubberband drawing. Observe that the QGLWidget does +button to see rubberband drawing. Observe that the TQGLWidget does not redraw itself (no redraw debug messages are output), and yet the image is not destroyed. Marvel at the coolness of X11 overlays! @@ -58,15 +58,15 @@ Using with geometry management: The QLayout classes will not allow you to put one widget (the overlay) on top of another (the OpenGL widget); that would defy the whole purpose of the automatic layout. The solution is to add just one of them to the QLayout object. Have it -keep a pointer to the other (i.e. the QGLWidget knows about its +keep a pointer to the other (i.e. the TQGLWidget knows about its overlay widget or vice versa). Implement the resizeEvent() method of the widget you put in the layout, and make it call setGeometry() on the other widget with its own geometry as parameters, thus keeping the two widgets' geometries synchronized. -Using with QPalette and TQColorGroup: Instead of the somewhat +Using with TQPalette and TQColorGroup: Instead of the somewhat simplistic setBackgroundColor( transparentColor ), you can use Qt's -QPalette system for having your overlay widgets use transparent color +TQPalette system for having your overlay widgets use transparent color for what you want. This way, the normal TQt widgets can be used as overlays for fancy effects: just create a palette for them with the transparent color for the wanted color roles, e.g. Background and diff --git a/examples/opengl/overlay_x11/README.X11-OVERLAYS b/examples/opengl/overlay_x11/README.X11-OVERLAYS index 18bcb1e5f..7d014bbca 100644 --- a/examples/opengl/overlay_x11/README.X11-OVERLAYS +++ b/examples/opengl/overlay_x11/README.X11-OVERLAYS @@ -11,7 +11,7 @@ highly recommended book "OpenGL Programming for the X Window System" UPDATE: From version 5.0 onwards, the TQt OpenGL Extension includes direct support for use of OpenGL overlays. For many uses of overlays, this makes the technique described below redundant. See the 'overlay' -example program. The following is a discussion on how to use non-QGL +example program. The following is a discussion on how to use non-TQGL widgets in overlay planes. ----------------------------------------------------------------------- @@ -43,9 +43,9 @@ for more information. How it works: ------------- -Given the above, a QGLWidget will by default use the main plane +Given the above, a TQGLWidget will by default use the main plane visual, while all other widgets will use the overlay visual. Thus, one -can place a normal widget on top of the QGLWidget, and do drawing in +can place a normal widget on top of the TQGLWidget, and do drawing in it, without destroying the image in the OpenGL window. In other words, one can use all the drawing capabilities of TQPainter to draw the annotations, rubberbands, whatever. For the typical use of overlays, @@ -85,7 +85,7 @@ the visual is in an overlay plane. transparency information for overlay visuals. The overlayrubber example program will output what visual is used for -the normal TQt widgets, and what visual is used by the QGLWidget. +the normal TQt widgets, and what visual is used by the TQGLWidget. diff --git a/examples/opengl/overlay_x11/gearwidget.h b/examples/opengl/overlay_x11/gearwidget.h index ce1c2b822..4c04fcbc8 100644 --- a/examples/opengl/overlay_x11/gearwidget.h +++ b/examples/opengl/overlay_x11/gearwidget.h @@ -12,7 +12,7 @@ #ifndef GEAR_H #define GEAR_H -#include <ntqgl.h> +#include <tqgl.h> class GearWidget : public TQGLWidget { diff --git a/examples/opengl/overlay_x11/overlay_x11.doc b/examples/opengl/overlay_x11/overlay_x11.doc index 8b2f0a459..d38bff08c 100644 --- a/examples/opengl/overlay_x11/overlay_x11.doc +++ b/examples/opengl/overlay_x11/overlay_x11.doc @@ -7,7 +7,7 @@ direct support for use of OpenGL overlays. For many uses of overlays, this makes the technique described below redundant. See the \link opengl-overlay-example.html overlay\endlink example program. The -following is a discussion on how to use non-QGL widgets in overlay +following is a discussion on how to use non-TQGL widgets in overlay planes. Overlayrubber: An example program showing how to use TQt and TQt OpenGL @@ -21,11 +21,11 @@ information on \link opengl-x11-overlays.html overlays\endlink. The example program has three main parts: \list 1 -\i \e GearWidget - a normal, simple QGLWidget. This renders the usual +\i \e GearWidget - a normal, simple TQGLWidget. This renders the usual gears. It has been modified to print a debug message every time it redraws (renders) itself. Thus, you can easily confirm that drawing in the overlay plane does not cause redrawings in the main plane where -the QGLWidget resides. +the TQGLWidget resides. \i \e RubberbandWidget - Very simple standard (non-GL) TQt widget that implements rubberband drawing. Designed for use in an overlay plane. @@ -42,7 +42,7 @@ color of that plane. \section1 Running the Example Start the \c overlayrubber executable. Click and drag with the left -mouse button to see rubberband drawing. Observe that the QGLWidget +mouse button to see rubberband drawing. Observe that the TQGLWidget does not redraw itself (no redraw debug messages are output), and yet the image is not destroyed. Marvel at the coolness of X11 overlays! @@ -63,15 +63,15 @@ be moved, resized, or removed without destroying the OpenGL image. putting one widget (the overlay) on top of another (the OpenGL widget); that would defy the whole purpose of the automatic layout. The solution is to add just one of them to the QLayout object. Have it -keep a pointer to the other (i.e. the QGLWidget knows about its +keep a pointer to the other (i.e. the TQGLWidget knows about its overlay widget or vice versa). Implement the resizeEvent() method of the widget you put in the layout, and make it call setGeometry() on the other widget with its own geometry as parameters, thus keeping the two widgets' geometries synchronized. -\i \e{Using together with QPalette and TQColorGroup.} Instead of the +\i \e{Using together with TQPalette and TQColorGroup.} Instead of the simplistic setBackgroundColor( transparentColor ), you can -use Qt's QPalette system to make your overlay widgets use +use Qt's TQPalette system to make your overlay widgets use transparent color for what you want. This way, the normal TQt widgets can be used as overlays for fancy effects. Just create a palette for them with the transparent color for the relevant color roles, e.g. diff --git a/examples/opengl/sharedbox/README b/examples/opengl/sharedbox/README index 4959294d5..7677b5259 100644 --- a/examples/opengl/sharedbox/README +++ b/examples/opengl/sharedbox/README @@ -3,6 +3,6 @@ The shared box example This example program is an extension of the "box" example program. -It demonstrates how to use OpenGL display list sharing with QGLWidgets. +It demonstrates how to use OpenGL display list sharing with TQGLWidgets. diff --git a/examples/opengl/sharedbox/glbox.h b/examples/opengl/sharedbox/glbox.h index f7565979f..46696e5af 100644 --- a/examples/opengl/sharedbox/glbox.h +++ b/examples/opengl/sharedbox/glbox.h @@ -16,7 +16,7 @@ #ifndef GLBOX_H #define GLBOX_H -#include <ntqgl.h> +#include <tqgl.h> class GLBox : public TQGLWidget diff --git a/examples/opengl/sharedbox/main.cpp b/examples/opengl/sharedbox/main.cpp index 67d1c77d5..4dd6665d1 100644 --- a/examples/opengl/sharedbox/main.cpp +++ b/examples/opengl/sharedbox/main.cpp @@ -18,7 +18,7 @@ #include "globjwin.h" #include <ntqapplication.h> -#include <ntqgl.h> +#include <tqgl.h> /* The main program is here. diff --git a/examples/opengl/sharedbox/sharedbox.doc b/examples/opengl/sharedbox/sharedbox.doc index f3fb52bf2..7be3cc9ce 100644 --- a/examples/opengl/sharedbox/sharedbox.doc +++ b/examples/opengl/sharedbox/sharedbox.doc @@ -8,7 +8,7 @@ This example program is an extension of the \link opengl-box-example.html Box example\endlink. It demonstrates how to use OpenGL display list sharing with -QGLWidgets. +TQGLWidgets. See \c{$TQTDIR/examples/opengl/sharedbox} for the source code. diff --git a/examples/opengl/texture/gltexobj.h b/examples/opengl/texture/gltexobj.h index 0f86b2684..00a974c72 100644 --- a/examples/opengl/texture/gltexobj.h +++ b/examples/opengl/texture/gltexobj.h @@ -16,7 +16,7 @@ #ifndef GLTEXOBJ_H #define GLTEXOBJ_H -#include <ntqgl.h> +#include <tqgl.h> class GLTexobj : public TQGLWidget diff --git a/examples/opengl/texture/main.cpp b/examples/opengl/texture/main.cpp index 35b97f368..499e016e7 100644 --- a/examples/opengl/texture/main.cpp +++ b/examples/opengl/texture/main.cpp @@ -16,7 +16,7 @@ #include "globjwin.h" #include <ntqapplication.h> -#include <ntqgl.h> +#include <tqgl.h> /* The main program is here. |