Add a node as a part of another node. The implications of being a part
rather than a child differ based on the type of the part. However, one
implication is constant: removing all of a node’s children (e.g. via
DetachChildrenCmd) does not affect its parts. This is similar to the
“shadow DOM” in a web browser: the controls of a
A value that is specified explicitly by value if variable_id is zero,
or is the value produced by the resource identified by variable_id, e.g.
an animation or expression. In the latter case, the value produced by the
resource must be a ColorRgb, and value is ignored.
A value that is specified explicitly by value if variable_id is zero,
or is the value produced by the resource identified by variable_id, e.g.
an animation or expression. In the latter case, the value produced by the
resource must be a ColorRgba, and value is ignored.
Detaches a parentable object from its parent (e.g. a node from a parent node,
or a layer from a layer stack). It is illegal to apply this command to a
non-parentable object. No-op if the target object currently has no parent.
Create an external reference to the specified resource, which can then be
imported into another Session by passing a handle to token’s peer to
ImportResourceCmd; see that comment for more details.
A value that is specified explicitly by value if variable_id is zero,
or is the value produced by the resource identified by variable_id, e.g.
an animation or expression. In the latter case, the value produced by the
resource must be a float32, and value is ignored.
Import a resource that was exported via ExportResourceCmd(). token is
a handle to the eventpair peer that was used to export the resource, and
spec describes the type of the imported resource, and the commands which
can legally be applied to it. Afterward, id can be used to refer to the
resource in an Command, similarly (but not identically: see below) to a
resource that was created in the session. For example, you can add children
to an imported EntityNode via AddChildCmd.
Token that uniquely identifies an attachment point for a subgraph in the
global scene graph. Each ImportToken has exactly one corresponding
ExportToken.
Delivered when the imported resource with the given ID is no longer bound to
its host resource, or if the imported resource can not be bound because
the host resource is not available.
A Layer is a 2-dimensional image that is drawn by a Compositor. The
contents of each Layer in a Layerstack are independent of each other.
A layer is not drawn unless it has a camera, texture, or color.
A LayerStack is a stack of layers that are attached to a Compositor, which
draws them in order of increasing Z-order (or rather, presents the illusion
of drawing them in that order: it may apply any optimizations that don’t
affect the output).
A value that is specified explicitly by value if variable_id is zero,
or is the value produced by the resource identified by variable_id, e.g.
an animation or expression. In the latter case, the value produced by the
resource must be a vec4, and value is ignored.
A PointLight is a Light that emits light in all directions. By default, the
intensity of the light falls off according to the physically based
“inverse-square law” (see Wikipedia), although it can be adjusted to other
values for artistic effect.
A value that is specified explicitly by value if variable_id is zero,
or is the value produced by the resource identified by variable_id, e.g.
an animation or expression. In the latter case, the value produced by the
resource must be a Quaternion, and value is ignored.
Releases the client’s reference to the resource; it is then illegal to use
the ID in subsequent Commands. Other references to the resource may exist,
so releasing the resource does not result in its immediate destruction; it is
only destroyed once the last reference is released. For example, the
resource may be required to render an in-progress frame, or it may be
referred to by another resource). However, the ID will be immediately
unregistered, and may be reused to create a new resource.
RoundedRectangle centered at (0,0). Legal parameter values must satisfy the
constraint that the flat sides of the rectangle have non-negative length.
In other words, the following constraints must hold:
Set whether clipping should be disabled for the specified renderer. For a
newly-created renderer, clipping will NOT be disabled (i.e. it will be
enabled).
Depending on the device, the display might be rotated
with respect to what the lower level device controller
considers the physical orientation of pixels. The
compositors and layers must be in alignment with the
underlying physical orientation which means that for
certain operations like screenshotting, they cannot
provide results with the accurate orientation unless
they have information about how the higher-level display
is orienting the screen. The only legal values for the
rotation are 0, 90, 180, and 270, which are each
applied counterclockwise.
Sets the falloff factor of the PointLight identified by light_id.
A value of 1.0 corresponds to the physically-based “inverse-square law”
(see Wikipedia). Other values can be used for artistic effect, e.g. a
value of 0.0 means that the radiance of a surface is not dependant on
its distance from the light.
A value that is specified explicitly by value if variable_id is zero,
or is the value produced by the resource identified by variable_id, e.g.
an animation or expression. In the latter case, the value produced by the
resource must be a vec2, and value is ignored.
A value that is specified explicitly by value if variable_id is zero,
or is the value produced by the resource identified by variable_id, e.g.
an animation or expression. In the latter case, the value produced by the
resource must be a vec3, and value is ignored.
A value that is specified explicitly by value if variable_id is zero,
or is the value produced by the resource identified by variable_id, e.g.
an animation or expression. In the latter case, the value produced by the
resource must be a vec4, and value is ignored.
Represents the root of a subgraph within a larger scene graph. Nodes can be
attached to the View as children, and these Nodes will have the Views’
coordinate transform applied to their own, in addition to being clipped to
the Views’ bounding box.
See ViewProperties.
Represents the root of a subgraph within a larger scene graph. Nodes can be
attached to the View as children, and these Nodes will have the Views’
coordinate transform applied to their own, in addition to being clipped to
the Views’ bounding box.
See ViewProperties.
Represents an attachment point for a subgraph within a larger scene graph.
The ViewHolder can be attached to a Node as a child, and the contents of
the linked View will become a child of the Node as well.