QGLFramebufferObject Class Reference
|
Константа | Значение | Описание |
---|---|---|
QGLFramebufferObject::NoAttachment | 0 | No attachment is added to the framebuffer object. Note that the OpenGL depth and stencil tests won't work when rendering to a framebuffer object without any depth or stencil buffers. This is the default value. |
QGLFramebufferObject::CombinedDepthStencil | 1 | If the GL_EXT_packed_depth_stencil extension is present, a combined depth and stencil buffer is attached. If the extension is not present, only a depth buffer is attached. |
QGLFramebufferObject::Depth | 2 | A depth buffer is attached to the framebuffer object. |
Данное перечисление было введено в Qt 4.3.
See also attachment().
Constructs an OpenGL framebuffer object and binds a 2D GL texture to the buffer of the size size. The texture is bound to the GL_COLOR_ATTACHMENT0 target in the framebuffer object.
The target parameter is used to specify the GL texture target. The default target is GL_TEXTURE_2D. Keep in mind that GL_TEXTURE_2D textures must have a power of 2 width and height (e.g. 256x512), unless you are using OpenGL 2.0 or higher.
By default, no depth and stencil buffers are attached. This behavior can be toggled using one of the overloaded constructors.
The default internal texture format is GL_RGBA8.
It is important that you have a current GL context set when creating the QGLFramebufferObject, otherwise the initialization will fail.
See also size(), texture(), and attachment().
Это перегруженная функция.
Constructs an OpenGL framebuffer object and binds a 2D GL texture to the buffer of the given width and height.
See also size() and texture().
Это перегруженная функция.
Constructs an OpenGL framebuffer object and binds a texture to the buffer of the given width and height.
The attachment parameter describes the depth/stencil buffer configuration, target the texture target and internal_format the internal texture format. The default texture target is GL_TEXTURE_2D, while the default internal format is GL_RGBA8.
See also size(), texture(), and attachment().
Это перегруженная функция.
Constructs an OpenGL framebuffer object and binds a texture to the buffer of the given size.
The attachment parameter describes the depth/stencil buffer configuration, target the texture target and internal_format the internal texture format. The default texture target is GL_TEXTURE_2D, while the default internal format is GL_RGBA8.
See also size(), texture(), and attachment().
Destroys the framebuffer object and frees any allocated resources.
Returns the status of the depth and stencil buffers attached to this framebuffer object.
Switches rendering from the default, windowing system provided framebuffer to this framebuffer object. Returns true upon success, false otherwise.
Draws the given texture, textureId, to the given target rectangle, target, in OpenGL model space. The textureTarget should be a 2D texture target.
The framebuffer object should be bound when calling this function.
Equivalent to the corresponding QGLContext::drawTexture().
Эта функция была введена в Qt 4.4.
Draws the given texture, textureId, at the given point in OpenGL model space. The textureTarget should be a 2D texture target.
The framebuffer object should be bound when calling this function.
Equivalent to the corresponding QGLContext::drawTexture().
Эта функция была введена в Qt 4.4.
Returns the GL framebuffer object handle for this framebuffer object (returned by the glGenFrameBuffersEXT() function). This handle can be used to attach new images or buffers to the framebuffer. The user is responsible for cleaning up and destroying these objects.
Returns true if the OpenGL GL_EXT_framebuffer_object extension is present on this system; otherwise returns false.
Returns true if the framebuffer object is currently bound to a context, otherwise false is returned.
Эта функция была введена в Qt 4.5.
Returns true if the framebuffer object is valid.
The framebuffer can become invalid if the initialization process fails, the user attaches an invalid buffer to the framebuffer object, or a non-power of 2 width/height is specified as the texture size if the texture target is GL_TEXTURE_2D.
Switches rendering back to the default, windowing system provided framebuffer. Returns true upon success, false otherwise.
Returns the size of the texture attached to this framebuffer object.
Returns the texture id for the texture attached as the default rendering target in this framebuffer object. This texture id can be bound as a normal texture in your own GL code.
Returns the contents of this framebuffer object as a QImage.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Торговые марки | Qt 4.5.3 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |