class PanelSurface(scene: Scene, val widthInPx: Int, val heightInPx: Int, mips: Int, samplerConfig: SamplerConfig = PanelConfigOptions.DEFAULT_PANEL_SAMPLER, useSwapchain: Boolean, useTexture: Boolean, fragmentShader: String = "", val isProtected: Boolean = false)
PanelSurface
(
scene
,
widthInPx
,
heightInPx
,
mips
,
samplerConfig
,
useSwapchain
,
useTexture
,
fragmentShader
,
isProtected
)
:
PanelSurface |
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:
Scene
widthInPx:
Int
heightInPx:
Int
mips:
Int
samplerConfig:
SamplerConfig
useSwapchain:
Boolean
useTexture:
Boolean
fragmentShader:
String
isProtected:
Boolean
Returns |
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 |
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? |
widthInPx
:
Int
[Get] |
Width of the surface in pixels
Signature
val widthInPx: Int |
destroy
()
|
Signature
fun destroy() |