Attribute set for Context3D 更多...
import 语句: | import QtCanvas3D 1.1 |
Since: | QtCanvas3D 1.0 |
Canvas3DContextAttributes is an attribute set that can be given as parameter on first call to Canvas3D 对象的 getContext(string type, Canvas3DContextAttributes options) method call. It can also be requested from the Context3D 使用 Context3D::getContextAttributes() later on to verify what exact attributes are in fact enabled/disabled in the created context.
Specifies whether the default render target of the
Context3D
has an alpha channel for the purposes of blending its contents with overlapping Qt Quick items. Defaults to
true
.
Specifies whether antialiasing buffer is created for the default render target of the
Context3D
。默认为
true
.
Specifies whether a depth attachment is to be created and attached to the default render target of the
Context3D
。默认为
true
.
Ignored. Defaults to
false
.
Ignored. Defaults to
false
.
Qt Quick always expects premultiplied alpha values when blending Qt Quick items together, so keeping this property
true
is recommended. Setting it to
false
can cause a minor performance impact, as an additional render pass is needed. Defaults to
true
.
Specifies whether or not the drawing buffer contents are preserved from frame to frame. Ignored when drawing to the background or the foreground of the Qt Quick scene. Defaults to
false
.
Specifies whether a stencil attachment is to be created and attached to the default render target of the
Context3D
。默认为
false
.