diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:00:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:00:12 +0900 |
commit | 8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (patch) | |
tree | 3427fe04e3116ccbd16fa98e57abd5d118f82353 /doc/html/qglwidget.html | |
parent | 0881ed5059c46ce73e8241e6260b82b92f6d0e55 (diff) | |
download | tqt-8c029298.tar.gz tqt-8c029298.zip |
Rename image nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/qglwidget.html')
-rw-r--r-- | doc/html/qglwidget.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/html/qglwidget.html b/doc/html/qglwidget.html index adc942c47..142ba2560 100644 --- a/doc/html/qglwidget.html +++ b/doc/html/qglwidget.html @@ -284,17 +284,17 @@ returned will be empty. example, if the underlying hardware does not support the format attributes that were requested. -<h3 class=fn><a href="ntqimage.html">TQImage</a> <a name="convertToGLFormat"></a>TQGLWidget::convertToGLFormat ( const <a href="ntqimage.html">TQImage</a> & img )<tt> [static]</tt> +<h3 class=fn><a href="tqimage.html">TQImage</a> <a name="convertToGLFormat"></a>TQGLWidget::convertToGLFormat ( const <a href="tqimage.html">TQImage</a> & img )<tt> [static]</tt> </h3> Converts the image <em>img</em> into the unnamed format expected by OpenGL functions such as glTexImage2D(). The returned image is not -usable as a <a href="ntqimage.html">TQImage</a>, but <a href="ntqimage.html#width">TQImage::width</a>(), <a href="ntqimage.html#height">TQImage::height</a>() and -<a href="ntqimage.html#bits">TQImage::bits</a>() may be used with OpenGL. The following few lines +usable as a <a href="tqimage.html">TQImage</a>, but <a href="tqimage.html#width">TQImage::width</a>(), <a href="tqimage.html#height">TQImage::height</a>() and +<a href="tqimage.html#bits">TQImage::bits</a>() may be used with OpenGL. The following few lines are from the texture example. Most of the code is irrelevant, so we just quote the relevant bits: <p> -<pre> <a href="ntqimage.html">TQImage</a> tex1, tex2, buf; +<pre> <a href="tqimage.html">TQImage</a> tex1, tex2, buf; if ( !buf.load( "gllogo.bmp" ) ) { // Load first image from file </pre> <p> We create <em>tex1</em> (and another variable) for OpenGL, and load a real @@ -303,8 +303,8 @@ image into <em>buf</em>. </pre> <p> A few lines later, we convert <em>buf</em> into OpenGL format and store it in <em>tex1</em>. -<p> <pre> <a name="x2121"></a><a name="x2120"></a> glTexImage2D( GL_TEXTURE_2D, 0, 3, tex1.<a href="ntqimage.html#width">width</a>(), tex1.<a href="ntqimage.html#height">height</a>(), 0, - <a name="x2119"></a> GL_RGBA, GL_UNSIGNED_BYTE, tex1.<a href="ntqimage.html#bits">bits</a>() ); +<p> <pre> <a name="x2121"></a><a name="x2120"></a> glTexImage2D( GL_TEXTURE_2D, 0, 3, tex1.<a href="tqimage.html#width">width</a>(), tex1.<a href="tqimage.html#height">height</a>(), 0, + <a name="x2119"></a> GL_RGBA, GL_UNSIGNED_BYTE, tex1.<a href="tqimage.html#bits">bits</a>() ); </pre> <p> Note the dimension restrictions for texture images as described in the glTexImage2D() documentation. The width must be 2^m + 2*border @@ -343,7 +343,7 @@ Executes the virtual function <a href="#paintGL">paintGL</a>(). Initializes OpenGL for this widget's context. Calls the virtual function <a href="#initializeGL">initializeGL</a>(). -<h3 class=fn><a href="ntqimage.html">TQImage</a> <a name="grabFrameBuffer"></a>TQGLWidget::grabFrameBuffer ( bool withAlpha = FALSE )<tt> [virtual]</tt> +<h3 class=fn><a href="tqimage.html">TQImage</a> <a name="grabFrameBuffer"></a>TQGLWidget::grabFrameBuffer ( bool withAlpha = FALSE )<tt> [virtual]</tt> </h3> Returns an image of the frame buffer. If <em>withAlpha</em> is TRUE the alpha channel is included. |