class SceneQuadLayer(scene: Scene, swapChain: SceneSwapchain, dimW: Float, dimH: Float, pivotX: Float, pivotY: Float, stereoMode: StereoMode, sceneObject: SceneObject) : SceneLayer
SceneQuadLayer
(
scene
, swapChain
, dimW
, dimH
, pivotX
, pivotY
, stereoMode
, sceneObject
)
|
Signature
constructor(scene: Scene, swapChain: SceneSwapchain, dimW: Float, dimH: Float, pivotX: Float, pivotY: Float, stereoMode: StereoMode, sceneObject: SceneObject) Parameters scene: SceneswapChain: SceneSwapchaindimW: FloatdimH: FloatpivotX: FloatpivotY: FloatstereoMode: StereoModesceneObject: SceneObjectReturns SceneQuadLayer |
destroy
()
|
Destroys this layer and removes it from the parent Scene. Once destroyed, all subsequent method calls on this layer are no-ops. Called automatically during garbage collection via finalize().
Signature
fun destroy() |
setAlphaBlend
(
layerAlphaBlend
)
|
Sets the alpha blending mode for this layer.
This controls how the layer blends with content behind it.
Signature
fun setAlphaBlend(layerAlphaBlend: LayerAlphaBlend) Parameters |
setClip
(
minUV
, maxUV
, minRightUV
, maxRightUV
)
|
Sets the UV clip region for this layer's swapchain texture.
This allows showing only a portion of the texture, or showing different portions for each eye in stereo rendering.
Signature
fun setClip(minUV: Vector2, maxUV: Vector2, minRightUV: Vector2 = minUV, maxRightUV: Vector2 = maxUV) Parameters |
setColorScaleBias
(
scale
, bias
)
|
Sets the color scale and bias for this layer.
This allows for color adjustment using the formula: output = input * scale + bias
Signature
fun setColorScaleBias(scale: Vector4, bias: Vector4) |
setFilters
(
filters
)
|
Sets the compositor filter flags for this layer. Filters control which rendering passes include this layer in their output. Pass a bitmask of filter constants to configure visibility per render pass.
Signature
fun setFilters(filters: Int) Parameters filters: Int |
setScale
(
scale
)
| |
setSecure
(
secure
)
|
Sets whether this layer should be secure.
When a layer is secure, its content cannot be captured or copied by other applications. Needs to be enabled to play DRM protected content.
Signature
fun setSecure(secure: Boolean) Parameters secure: Boolean
Whether the layer should be secure
|
setZIndex
(
zIndex
)
|
Sets the Z-index of this layer, controlling its rendering order.
Layers with higher Z-index values are rendered on top of layers with lower values. When layers have the same Z-index, they are sorted by distance to the viewer.
Signature
fun setZIndex(zIndex: Int) Parameters zIndex: Int
The Z-index value (default is 0)
|
updateLayer
(
dimW
, dimH
, pivotX
, pivotY
, stereoMode
)
|
Updates the parameters of this quad layer.
Signature
fun updateLayer(dimW: Float, dimH: Float, pivotX: Float, pivotY: Float, stereoMode: Int) Parameters dimW: Float
The width of the quad in meters.
dimH: Float
The height of the quad in meters.
pivotX: Float
The x-coordinate of the pivot point in the range 0, 1. 0.5 centers the panel on the origin.
pivotY: Float
The y-coordinate of the pivot point in the range 0, 1. 0.5 centers the panel on the origin.
stereoMode: Int
The stereo rendering mode as an integer value
|