API reference
API reference
Select your platform
No SDKs available
No versions available

SceneCylinderLayer

SceneCylinderLayer

class SceneCylinderLayer(scene: Scene, swapChain: SceneSwapchain, radius: Float, centralAngle: Float, aspectRatio: Float, pivotX: Float, pivotY: Float, stereoMode: StereoMode, sceneObject: SceneObject) : SceneLayer
SceneCylinderLayer creates a Layer that wraps content around a cylindrical surface.
See also
NameSummary
For common layer operations like scaling, alpha blending, and z-indexing
For flat rectangular layers
For spherical equirectangular layers

Constructors

NameSummary
SceneCylinderLayer
constructor(scene: Scene, swapChain: SceneSwapchain, radius: Float, centralAngle: Float, aspectRatio: Float, pivotX: Float, pivotY: Float, stereoMode: StereoMode, sceneObject: SceneObject)

Functions

NameSummary
destroy
fun destroy()
setAlphaBlend
fun setAlphaBlend(layerAlphaBlend: LayerAlphaBlend)

Sets the alpha blending mode for this layer.
setClip
fun setClip(minUV: Vector2, maxUV: Vector2, minRightUV: Vector2 = minUV, maxRightUV: Vector2 = maxUV)

Sets the UV clip region for this layer’s swapchain texture.
setColorScaleBias
fun setColorScaleBias(scale: Vector4, bias: Vector4)

Sets the color scale and bias for this layer.
setFilters
fun setFilters(filters: Int)
setScale
fun setScale(scale: Vector3)

Sets the scale of this layer.
setSecure
fun setSecure(secure: Boolean)

Sets whether this layer should be secure.
fun setZIndex(zIndex: Int)

Sets the Z-index of this layer, controlling its rendering order.
updateLayer
fun updateLayer(radius: Float, centralAngle: Float, aspectRatio: Float, pivotX: Float, pivotY: Float, stereoMode: Int)

Updates the parameters of this cylindrical layer.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon