Class ExternalTexture
- java.lang.Object
-
- pro.streem.ar.sceneform.rendering.ExternalTexture
-
public class ExternalTexture extends java.lang.ObjectCreates an AndroidSurfaceTextureandSurfacethat can be displayed by Sceneform. Useful for displaying video, or anything else that can be drawn to aSurfaceTexture.The getFilamentEngine OpenGL ES texture is automatically created by Sceneform. Also,
SurfaceTexture.updateTexImage()is automatically called and should not be called manually.Call
Material.setExternalTexture(String, ExternalTexture)to use an ExternalTexture. The material parameter MUST be of type 'samplerExternal'.
-
-
Constructor Summary
Constructors Constructor Description ExternalTexture()Creates an ExternalTexture with a new AndroidSurfaceTextureandSurface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.view.SurfacegetSurface()Gets the surface created for this ExternalTexture that draws togetSurfaceTexture()android.graphics.SurfaceTexturegetSurfaceTexture()Gets the surface texture created for this ExternalTexture.
-
-
-
Method Detail
-
getSurfaceTexture
public android.graphics.SurfaceTexture getSurfaceTexture()
Gets the surface texture created for this ExternalTexture.
-
getSurface
public android.view.Surface getSurface()
Gets the surface created for this ExternalTexture that draws togetSurfaceTexture()
-
-