class PanelSurface(
scene: Scene,
val widthInPx: Int,
val heightInPx: Int,
val mips: Int,
val samplerConfig: SamplerConfig = PanelConfigOptions.DEFAULT_PANEL_SAMPLER,
val useSwapchain: Boolean,
val useTexture: Boolean,
val fragmentShader: String = "",
val isProtected: Boolean = false,
)PanelSurface
(
scene
, widthInPx
, heightInPx
, mips
, samplerConfig
, useSwapchain
, useTexture
, fragmentShader
, isProtected
)
|
Signature
constructor(
scene: Scene,
widthInPx: Int,
heightInPx: Int,
mips: Int,
samplerConfig: SamplerConfig = PanelConfigOptions.DEFAULT_PANEL_SAMPLER,
useSwapchain: Boolean,
useTexture: Boolean,
fragmentShader: String = "",
isProtected: Boolean = false,
)Parameters scene: ScenewidthInPx: Int
Width of the surface in pixels
heightInPx: Int
Height of the surface in pixels
mips: IntsamplerConfig: SamplerConfiguseSwapchain: BooleanuseTexture: BooleanfragmentShader: StringisProtected: Boolean
Whether the surface is protected (for DRM content)
Returns PanelSurface |
fragmentShader
: String
[Get] |
Signature
val fragmentShader: String |
heightInPx
: Int
[Get] |
Height of the surface in pixels
Signature
val heightInPx: Int |
isProtected
: Boolean
[Get] |
Whether the surface is protected (for DRM content)
Signature
val isProtected: Boolean = false |
mips
: Int
[Get] |
Signature
val mips: Int |
samplerConfig
: SamplerConfig
[Get] |
Signature
val samplerConfig: SamplerConfig |
surface
: Surface?
[Get][Set] |
The Android Surface object for rendering
Signature
var surface: Surface |
swapchain
: SceneSwapchain?
[Get][Set] |
The SceneSwapchain for efficient rendering (if enabled)
Signature
var swapchain: SceneSwapchain? |
texture
: SceneTexture?
[Get][Set] |
The SceneTexture for texture-based rendering (if enabled)
Signature
var texture: SceneTexture? |
useSwapchain
: Boolean
[Get] |
Signature
val useSwapchain: Boolean |
useTexture
: Boolean
[Get] |
Signature
val useTexture: Boolean |
widthInPx
: Int
[Get] |
Width of the surface in pixels
Signature
val widthInPx: Int |
destroy
()
|
Signature
fun destroy() |