summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqglwidget.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqglwidget.3qt')
-rw-r--r--doc/man/man3/tqglwidget.3qt16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/man/man3/tqglwidget.3qt b/doc/man/man3/tqglwidget.3qt
index 9ab65bd4..305bc973 100644
--- a/doc/man/man3/tqglwidget.3qt
+++ b/doc/man/man3/tqglwidget.3qt
@@ -76,10 +76,10 @@ Inherits TQWidget and QGL.
.BI "void \fBsetColormap\fR ( const QGLColormap & cmap )"
.br
.ti -1c
-.BI "void \fBrenderText\fR ( int x, int y, const TQString & str, const QFont & fnt = QFont ( ), int listBase = 2000 )"
+.BI "void \fBrenderText\fR ( int x, int y, const TQString & str, const TQFont & fnt = TQFont ( ), int listBase = 2000 )"
.br
.ti -1c
-.BI "void \fBrenderText\fR ( double x, double y, double z, const TQString & str, const QFont & fnt = QFont ( ), int listBase = 2000 )"
+.BI "void \fBrenderText\fR ( double x, double y, double z, const TQString & str, const TQFont & fnt = TQFont ( ), int listBase = 2000 )"
.br
.in -1c
.SS "Public Slots"
@@ -124,7 +124,7 @@ Inherits TQWidget and QGL.
.BI "bool \fBautoBufferSwap\fR () const"
.br
.ti -1c
-.BI "virtual void \fBpaintEvent\fR ( QPaintEvent * )"
+.BI "virtual void \fBpaintEvent\fR ( TQPaintEvent * )"
.br
.ti -1c
.BI "virtual void \fBresizeEvent\fR ( QResizeEvent * )"
@@ -139,7 +139,7 @@ Inherits TQWidget and QGL.
.SH DESCRIPTION
The QGLWidget class is a widget for rendering OpenGL graphics.
.PP
-QGLWidget provides functionality for displaying OpenGL<sup>*</sup> graphics integrated into a TQt application. It is very simple to use. You inherit from it and use the subclass like any other TQWidget, except that instead of drawing the widget's contents using QPainter etc. you use the standard OpenGL rendering commands.
+QGLWidget provides functionality for displaying OpenGL<sup>*</sup> graphics integrated into a TQt application. It is very simple to use. You inherit from it and use the subclass like any other TQWidget, except that instead of drawing the widget's contents using TQPainter etc. you use the standard OpenGL rendering commands.
.PP
QGLWidget provides three convenient virtual functions that you can reimplement in your subclass to perform the typical OpenGL tasks:
.TP
@@ -312,7 +312,7 @@ Returns the colormap for this widget.
.PP
Usually it is only top-level widgets that can have different colormaps installed. Asking for the colormap of a child widget will return the colormap for the child's top-level widget.
.PP
-If no colormap has been set for this widget, the QColormap returned will be empty.
+If no colormap has been set for this widget, the TQColormap returned will be empty.
.PP
See also setColormap().
.SH "const QGLContext * QGLWidget::context () const"
@@ -398,7 +398,7 @@ See also makeCurrent().
Returns the overlay context of this widget, or 0 if this widget has no overlay.
.PP
See also context().
-.SH "void QGLWidget::paintEvent ( QPaintEvent * )\fC [virtual protected]\fR"
+.SH "void QGLWidget::paintEvent ( TQPaintEvent * )\fC [virtual protected]\fR"
Handles paint events. Will cause the virtual paintGL() function to be called.
.PP
The widget's rendering context will become the current context and initializeGL() will be called if it hasn't already been called.
@@ -436,7 +436,7 @@ Overlays are not rendered onto the pixmap.
If the GL rendering context and the desktop have different bit depths, the result will most likely look surprising.
.PP
Note that the creation of display lists, modifications of the view frustum etc. should be done from within initializeGL(). If this is not done, the temporary QGLContext will not be initialized properly, and the rendered pixmap may be incomplete/corrupted.
-.SH "void QGLWidget::renderText ( int x, int y, const TQString & str, const QFont & fnt = QFont ( ), int listBase = 2000 )"
+.SH "void QGLWidget::renderText ( int x, int y, const TQString & str, const TQFont & fnt = TQFont ( ), int listBase = 2000 )"
Renders the string \fIstr\fR into the GL context of this widget.
.PP
\fIx\fR and \fIy\fR are specified in window coordinates, with the origin in the upper left-hand corner of the window. If \fIfnt\fR is not specified, the currently set application font will be used to render the string. To change the color of the rendered text you can use the glColor() call (or the qglColor() convenience function), just before the renderText() call. Note that if you have GL_LIGHTING enabled, the string will not appear in the color you want. You should therefore switch lighting off before using renderText().
@@ -444,7 +444,7 @@ Renders the string \fIstr\fR into the GL context of this widget.
\fIlistBase\fR specifies the index of the first display list that is generated by this function. The default value is 2000. 256 display lists will be generated, one for each of the first 256 characters in the font that is used to render the string. If several fonts are used in the same widget, the display lists for these fonts will follow the last generated list. You would normally not have to change this value unless you are using lists in the same range. The lists are deleted when the widget is destroyed.
.PP
Note: This function only works reliably with ASCII strings.
-.SH "void QGLWidget::renderText ( double x, double y, double z, const TQString & str, const QFont & fnt = QFont ( ), int listBase = 2000 )"
+.SH "void QGLWidget::renderText ( double x, double y, double z, const TQString & str, const TQFont & fnt = TQFont ( ), int listBase = 2000 )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
\fIx\fR, \fIy\fR and \fIz\fR are specified in scene or object coordinates relative to the currently set projection and model matrices. This can be useful if you want to annotate models with text labels and have the labels move with the model as it is rotated etc.