Since: BlackBerry 10.0.0
The texture that can be used as a render target when compositing the internal scene graph of a webpage.
A WebPageTexture can be used as a render target when compositing the internal scene graph of a WebPage using a WebPageCompositor. The texture can then be used in custom OpenGL rendering code to render the webpage as part of an OpenGL scene.
This object can be created on any thread. However, the object has an affinity for the thread it was created on, and may not be used on any other thread.
Public Functions Index
Public Slots Index
|void||setSize (const QSize &size)|
Constructs a WebPageTexture object with the requested size.
The requested size of the texture.
Optional parent for this object.
Retrieves the texture size requested.
The actual size of the texture may not be equal to the requested size due to GPU limitations.
The size requested when constructing this WebPageTexture object.
Retrieves the ID of an OpenGL texture in the EGL context that is current on the calling thread.
When calling this method, an OpenGL ES 2.0 capable EGL context must be current.
// eglMakeCurrent(...); glBindTexture(GL_TEXTURE_2D, m_texture->textureId()); // ...
The ID of the texture.
Sets the requested size of the texture.
This operation can be expensive, because a new texture is allocated internally.
The new size.
Emitted when the size changes.
Emitted when the texture ID or appearance of the texture changes.
This signal is typically emitted after a call to WebPageCompositor::renderToTexture(), when the asynchronous rendering completes.