Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2034

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QGLPixelBuffer" doc="/**
&lt;p&gt;The &lt;a href=&quot;QGLPixelBuffer.html#QGLPixelBuffer(int, int, com.trolltech.qt.opengl.QGLFormat, com.trolltech.qt.opengl.QGLWidget)&quot;&gt;&lt;tt&gt;QGLPixelBuffer&lt;/tt&gt;&lt;/a&gt; class encapsulates an OpenGL pbuffer.&lt;/p&gt;
&lt;p&gt;Rendering into a pbuffer is normally done using full hardware acceleration. This can be significantly faster than rendering into a &lt;a href=&quot;%2E%2E/gui/QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There are three approaches to using this class:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;&lt;b&gt;We can draw into the pbuffer and convert it to a &lt;a href=&quot;%2E%2E/gui/QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; using &lt;a href=&quot;QGLPixelBuffer.html#toImage()&quot;&gt;&lt;tt&gt;toImage&lt;/tt&gt;&lt;/a&gt;.&lt;/b&gt; This is normally much faster than calling QGLWidget::renderPixmap().&lt;/li&gt;
&lt;li&gt;&lt;b&gt;We can draw into the pbuffer and copy the contents into an OpenGL texture using &lt;a href=&quot;QGLPixelBuffer.html#updateDynamicTexture(int)&quot;&gt;&lt;tt&gt;updateDynamicTexture&lt;/tt&gt;&lt;/a&gt;.&lt;/b&gt; This allows us to create dynamic textures and works on all systems with pbuffer support.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;On systems that support it, we can bind the pbuffer to an OpenGL texture.&lt;/b&gt; The texture is then updated automatically when the pbuffer contents change, eliminating the need for additional copy operations. This is supported only on Windows and Mac OS X systems that provide the &lt;tt&gt;render_texture&lt;/tt&gt; extension.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Pbuffers are provided by the OpenGL &lt;tt&gt;pbuffer&lt;/tt&gt; extension; call hasOpenGLPbuffer() to find out if the system provides pbuffers.&lt;/p&gt;

@see Pbuffers Example&lt;/tt&gt; */">
    <method name="public QGLPixelBuffer(com.trolltech.qt.core.QSize size, com.trolltech.qt.opengl.QGLFormat format, com.trolltech.qt.opengl.QGLWidget shareWidget)" doc="/**
&lt;p&gt;Constructs an OpenGL pbuffer of the given &lt;tt&gt;size&lt;/tt&gt;. If no &lt;tt&gt;format&lt;/tt&gt; is specified, the default format&lt;/tt&gt; is used. If the &lt;tt&gt;shareWidget&lt;/tt&gt; parameter points to a valid &lt;a href=&quot;QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt;, the pbuffer will share its context with &lt;tt&gt;shareWidget&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If you intend to bind this pbuffer as a dynamic texture, the width and height components of &lt;tt&gt;size&lt;/tt&gt; must be powers of two (e.g&amp;#x2e;, 512 x 128).&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLPixelBuffer.html#format()&quot;&gt;&lt;tt&gt;format&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QGLPixelBuffer(com.trolltech.qt.core.QSize size, com.trolltech.qt.opengl.QGLFormat format)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGLPixelBuffer.html#QGLPixelBuffer(int, int, com.trolltech.qt.opengl.QGLFormat, com.trolltech.qt.opengl.QGLWidget)&quot;&gt;&lt;tt&gt;QGLPixelBuffer&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;size&lt;/tt&gt;, &lt;tt&gt;format&lt;/tt&gt;, 0). */"/>
    <method name="public QGLPixelBuffer(com.trolltech.qt.core.QSize size)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGLPixelBuffer.html#QGLPixelBuffer(int, int, com.trolltech.qt.opengl.QGLFormat, com.trolltech.qt.opengl.QGLWidget)&quot;&gt;&lt;tt&gt;QGLPixelBuffer&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;size&lt;/tt&gt;, QGLFormat::defaultFormat(), 0). */"/>
    <method name="public QGLPixelBuffer(int width, int height, com.trolltech.qt.opengl.QGLFormat format, com.trolltech.qt.opengl.QGLWidget shareWidget)" doc="/**
&lt;p&gt;Constructs an OpenGL pbuffer with the &lt;tt&gt;width&lt;/tt&gt; and &lt;tt&gt;height&lt;/tt&gt;. If no &lt;tt&gt;format&lt;/tt&gt; is specified, the default format&lt;/tt&gt; is used. If the &lt;tt&gt;shareWidget&lt;/tt&gt; parameter points to a valid &lt;a href=&quot;QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt;, the pbuffer will share its context with &lt;tt&gt;shareWidget&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If you intend to bind this pbuffer as a dynamic texture, the width and height components of &lt;tt&gt;size&lt;/tt&gt; must be powers of two (e.g&amp;#x2e;, 512 x 128).&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLPixelBuffer.html#format()&quot;&gt;&lt;tt&gt;format&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QGLPixelBuffer(int width, int height, com.trolltech.qt.opengl.QGLFormat format)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGLPixelBuffer.html#QGLPixelBuffer(int, int, com.trolltech.qt.opengl.QGLFormat, com.trolltech.qt.opengl.QGLWidget)&quot;&gt;&lt;tt&gt;QGLPixelBuffer&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;width&lt;/tt&gt;, &lt;tt&gt;height&lt;/tt&gt;, &lt;tt&gt;format&lt;/tt&gt;, 0). */"/>
    <method name="public QGLPixelBuffer(int width, int height)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGLPixelBuffer.html#QGLPixelBuffer(int, int, com.trolltech.qt.opengl.QGLFormat, com.trolltech.qt.opengl.QGLWidget)&quot;&gt;&lt;tt&gt;QGLPixelBuffer&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;width&lt;/tt&gt;, &lt;tt&gt;height&lt;/tt&gt;, QGLFormat::defaultFormat(), 0). */"/>
    <method name="public final int bindTexture(java.lang.String fileName)" doc="/**
&lt;p&gt;Reads the DirectDrawSurface (DDS) compressed file &lt;tt&gt;fileName&lt;/tt&gt; and generates a 2D GL texture from it.&lt;/p&gt;
&lt;p&gt;Equivalent to calling QGLContext::bindTexture().&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#deleteTexture(int)&quot;&gt;&lt;tt&gt;deleteTexture&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int bindTexture(com.trolltech.qt.gui.QImage image, int target)" doc="/**
&lt;p&gt;Generates and binds a 2D GL texture to the current context, based on &lt;tt&gt;image&lt;/tt&gt;. The generated texture id is returned and can be used in later glBindTexture() calls.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;target&lt;/tt&gt; parameter specifies the texture target.&lt;/p&gt;
&lt;p&gt;Equivalent to calling QGLContext::bindTexture().&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#deleteTexture(int)&quot;&gt;&lt;tt&gt;deleteTexture&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int bindTexture(com.trolltech.qt.gui.QImage image)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGLPixelBuffer.html#bindTexture(com.trolltech.qt.gui.QPixmap, int)&quot;&gt;&lt;tt&gt;bindTexture&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;image&lt;/tt&gt;, GL_TEXTURE_2D). */"/>
    <method name="public final int bindTexture(com.trolltech.qt.gui.QPixmap pixmap, int target)" doc="/**
&lt;p&gt;Generates and binds a 2D GL texture based on &lt;tt&gt;pixmap&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Equivalent to calling QGLContext::bindTexture().&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#deleteTexture(int)&quot;&gt;&lt;tt&gt;deleteTexture&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int bindTexture(com.trolltech.qt.gui.QPixmap pixmap)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGLPixelBuffer.html#bindTexture(com.trolltech.qt.gui.QPixmap, int)&quot;&gt;&lt;tt&gt;bindTexture&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;pixmap&lt;/tt&gt;, GL_TEXTURE_2D). */"/>
    <method name="public final boolean bindToDynamicTexture(int texture)" doc="/**
&lt;p&gt;Binds the texture specified by &lt;tt&gt;texture&lt;/tt&gt; to this pbuffer. Returns true on success; otherwise returns false.&lt;/p&gt;
&lt;p&gt;The texture must be of the same size and format as the pbuffer.&lt;/p&gt;
&lt;p&gt;To unbind the texture, call &lt;a href=&quot;QGLPixelBuffer.html#releaseFromDynamicTexture()&quot;&gt;&lt;tt&gt;releaseFromDynamicTexture&lt;/tt&gt;&lt;/a&gt;. While the texture is bound, it is updated automatically when the pbuffer contents change, eliminating the need for additional copy operations.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QGLPixelBuffer pbuffer(...);
    ...
    pbuffer.makeCurrent();
    GLuint dynamicTexture = pbuffer.generateDynamicTexture();
    pbuffer.bindToDynamicTexture(dynamicTexture);
    ...
    pbuffer.releaseFromDynamicTexture();&lt;/pre&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; This function uses the &lt;tt&gt;render_texture&lt;/tt&gt; extension, which is currently not supported under X11. An alternative that works on all systems (including X11) is to manually copy the pbuffer contents to a texture using &lt;a href=&quot;QGLPixelBuffer.html#updateDynamicTexture(int)&quot;&gt;&lt;tt&gt;updateDynamicTexture&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; For the &lt;a href=&quot;QGLPixelBuffer.html#bindToDynamicTexture(int)&quot;&gt;&lt;tt&gt;bindToDynamicTexture&lt;/tt&gt;&lt;/a&gt; call to succeed on the Mac OS X, the pbuffer needs a shared context, i.e&amp;#x2e; the &lt;a href=&quot;QGLPixelBuffer.html#QGLPixelBuffer(int, int, com.trolltech.qt.opengl.QGLFormat, com.trolltech.qt.opengl.QGLWidget)&quot;&gt;&lt;tt&gt;QGLPixelBuffer&lt;/tt&gt;&lt;/a&gt; must be created with a share widget.&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#generateDynamicTexture()&quot;&gt;&lt;tt&gt;generateDynamicTexture&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLPixelBuffer.html#releaseFromDynamicTexture()&quot;&gt;&lt;tt&gt;releaseFromDynamicTexture&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void deleteTexture(int texture_id)" doc="/**
&lt;p&gt;Removes the texture identified by &lt;tt&gt;texture_id&lt;/tt&gt; from the texture cache.&lt;/p&gt;
&lt;p&gt;Equivalent to calling QGLContext::deleteTexture().&lt;/p&gt;
 */"/>
    <method name="public final int depth()" doc="/**
&lt;p&gt;Returns the bit depth (number of bit planes) of the paint device.&lt;/p&gt;
 */"/>
    <method name="public final boolean doneCurrent()" doc="/**
&lt;p&gt;Makes no context the current OpenGL context. Returns true on success; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.opengl.QGLFormat format()" doc="/**
&lt;p&gt;Returns the format of the pbuffer. The format may be different from the one that was requested.&lt;/p&gt;
 */"/>
    <method name="public final int generateDynamicTexture()" doc="/**
&lt;p&gt;Generates and binds a 2D GL texture that is the same size as the pbuffer, and returns the texture's ID. This can be used in conjunction with &lt;a href=&quot;QGLPixelBuffer.html#bindToDynamicTexture(int)&quot;&gt;&lt;tt&gt;bindToDynamicTexture&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QGLPixelBuffer.html#updateDynamicTexture(int)&quot;&gt;&lt;tt&gt;updateDynamicTexture&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final long handle()" doc="/**
&lt;p&gt;Returns the native pbuffer handle.&lt;/p&gt;
 */"/>
    <method name="public final int height()" doc="/**
&lt;p&gt;Returns the height of the paint device in default coordinate system units (e.g&amp;#x2e; pixels for &lt;a href=&quot;%2E%2E/gui/QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;%2E%2E/gui/QWidget.html&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#heightMM()&quot;&gt;&lt;tt&gt;heightMM&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int heightMM()" doc="/**
&lt;p&gt;Returns the height of the paint device in millimeters.&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isValid()" doc="/**
&lt;p&gt;Returns true if this pbuffer is valid; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final int logicalDpiX()" doc="/**
&lt;p&gt;Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from &lt;a href=&quot;QGLPixelBuffer.html#widthMM()&quot;&gt;&lt;tt&gt;widthMM&lt;/tt&gt;&lt;/a&gt;, but it varies on Windows.&lt;/p&gt;
&lt;p&gt;Note that if the &lt;a href=&quot;QGLPixelBuffer.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QGLPixelBuffer.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt;, the corresponding &lt;a href=&quot;%2E%2E/gui/QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; must handle the resolution mapping.&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLPixelBuffer.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int logicalDpiY()" doc="/**
&lt;p&gt;Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from &lt;a href=&quot;QGLPixelBuffer.html#heightMM()&quot;&gt;&lt;tt&gt;heightMM&lt;/tt&gt;&lt;/a&gt;, but it varies on Windows.&lt;/p&gt;
&lt;p&gt;Note that if the &lt;a href=&quot;QGLPixelBuffer.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QGLPixelBuffer.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt;, the corresponding &lt;a href=&quot;%2E%2E/gui/QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; must handle the resolution mapping.&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLPixelBuffer.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean makeCurrent()" doc="/**
&lt;p&gt;Makes this pbuffer the current OpenGL rendering context. Returns true on success; otherwise returns false.&lt;/p&gt;

@see &lt;tt&gt;QGLContext::makeCurrent&lt;/tt&gt;
@see &lt;a href=&quot;QGLPixelBuffer.html#doneCurrent()&quot;&gt;&lt;tt&gt;doneCurrent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int numColors()" doc="/**
&lt;p&gt;Returns the number of different colors available for the paint device. Since this value is an int, it will not be sufficient to represent the number of colors on 32 bit displays, in this case INT_MAX is returned instead.&lt;/p&gt;
 */"/>
    <method name="public final boolean paintingActive()" doc="/**
&lt;p&gt;Returns true if the device is currently being painted on, i.e&amp;#x2e; someone has called QPainter::begin() but not yet called QPainter::end() for this device; otherwise returns false.&lt;/p&gt;

@see &lt;tt&gt;QPainter::isActive&lt;/tt&gt; */"/>
    <method name="public final int physicalDpiX()" doc="/**
&lt;p&gt;Returns the horizontal resolution of the device in dots per inch.&lt;/p&gt;
&lt;p&gt;Note that if the &lt;a href=&quot;QGLPixelBuffer.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QGLPixelBuffer.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt;, the corresponding &lt;a href=&quot;%2E%2E/gui/QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; must handle the resolution mapping.&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLPixelBuffer.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int physicalDpiY()" doc="/**
&lt;p&gt;Returns the horizontal resolution of the device in dots per inch.&lt;/p&gt;
&lt;p&gt;Note that if the &lt;a href=&quot;QGLPixelBuffer.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QGLPixelBuffer.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt;, the corresponding &lt;a href=&quot;%2E%2E/gui/QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; must handle the resolution mapping.&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLPixelBuffer.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void releaseFromDynamicTexture()" doc="/**
&lt;p&gt;Releases the pbuffer from any previously bound texture. Returns true on success; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#bindToDynamicTexture(int)&quot;&gt;&lt;tt&gt;bindToDynamicTexture&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize size()" doc="/**
&lt;p&gt;Returns the size of the pbuffer.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QImage toImage()" doc="/**
&lt;p&gt;Returns the contents of the pbuffer as a &lt;a href=&quot;%2E%2E/gui/QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void updateDynamicTexture(int texture_id)" doc="/**
&lt;p&gt;Copies the pbuffer contents into the texture specified with &lt;tt&gt;texture_id&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The texture must be of the same size and format as the pbuffer.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QGLPixelBuffer pbuffer(...);
    ...
    pbuffer.makeCurrent();
    GLuint dynamicTexture = pbuffer.generateDynamicTexture();
    ...
    pbuffer.updateDynamicTexture(dynamicTexture);&lt;/pre&gt;
&lt;p&gt;An alternative on Windows and Mac OS X systems that support the &lt;tt&gt;render_texture&lt;/tt&gt; extension is to use &lt;a href=&quot;QGLPixelBuffer.html#bindToDynamicTexture(int)&quot;&gt;&lt;tt&gt;bindToDynamicTexture&lt;/tt&gt;&lt;/a&gt; to get dynamic updates of the texture.&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#generateDynamicTexture()&quot;&gt;&lt;tt&gt;generateDynamicTexture&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLPixelBuffer.html#bindToDynamicTexture(int)&quot;&gt;&lt;tt&gt;bindToDynamicTexture&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int width()" doc="/**
&lt;p&gt;Returns the width of the paint device in default coordinate system units (e.g&amp;#x2e; pixels for &lt;a href=&quot;%2E%2E/gui/QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;%2E%2E/gui/QWidget.html&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#widthMM()&quot;&gt;&lt;tt&gt;widthMM&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int widthMM()" doc="/**
&lt;p&gt;Returns the width of the paint device in millimeters.&lt;/p&gt;

@see &lt;a href=&quot;QGLPixelBuffer.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public int devType()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public int metric(com.trolltech.qt.gui.QPaintDevice.PaintDeviceMetric metric)" doc="/**
&lt;p&gt;Returns the metric information for the given paint device &lt;tt&gt;metric&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;PaintDeviceMetric&lt;/tt&gt; */"/>
    <method name="public com.trolltech.qt.gui.QPaintEngine paintEngine()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public native static boolean hasOpenGLPbuffers()" doc="/**
&lt;p&gt;Returns true if the OpenGL &lt;tt&gt;pbuffer&lt;/tt&gt; extension is present on this system; otherwise returns false.&lt;/p&gt;
 */"/>
</class>