• Sceneform SDK for Android was open sourced and archived (github.com/google-ar/sceneform-android-sdk) with version 1.16.0.
  • This site (developers.google.com/sceneform) serves as the documentation archive for the previous version, Sceneform SDK for Android 1.15.0.
  • Do not use version 1.17.0 of the Sceneform Maven artifacts.
  • The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.

Texture.Sampler.Builder

Stay organized with collections Save and categorize content based on your preferences.
public static class Texture.Sampler.Builder

Builder for constructing Sampler objects.

Public Constructors

Public Methods

Texture.Sampler
build()
Construct a Sampler from the properties of the Builder.
Texture.Sampler.Builder
setMagFilter(Texture.Sampler.MagFilter magFilter)
Set the magnification function used whenever the level-of-detail function determines that the texture should be magnified.
Texture.Sampler.Builder
setMinFilter(Texture.Sampler.MinFilter minFilter)
Set the minifying function used whenever the level-of-detail function determines that the texture should be minified.
Texture.Sampler.Builder
setWrapMode(Texture.Sampler.WrapMode wrapMode)
Set the wrap mode for all texture coordinates.
Texture.Sampler.Builder
setWrapModeR(Texture.Sampler.WrapMode wrapMode)
Set the wrap mode for texture coordinate R.
Texture.Sampler.Builder
setWrapModeS(Texture.Sampler.WrapMode wrapMode)
Set the wrap mode for texture coordinate S.
Texture.Sampler.Builder
setWrapModeT(Texture.Sampler.WrapMode wrapMode)
Set the wrap mode for texture coordinate T.

Inherited Methods

Public Constructors

public Texture.Sampler.Builder ()

Public Methods

public Texture.Sampler build ()

Construct a Sampler from the properties of the Builder.

public Texture.Sampler.Builder setMagFilter (Texture.Sampler.MagFilter magFilter)

Set the magnification function used whenever the level-of-detail function determines that the texture should be magnified.

Parameters
magFilter

public Texture.Sampler.Builder setMinFilter (Texture.Sampler.MinFilter minFilter)

Set the minifying function used whenever the level-of-detail function determines that the texture should be minified.

Parameters
minFilter

public Texture.Sampler.Builder setWrapMode (Texture.Sampler.WrapMode wrapMode)

Set the wrap mode for all texture coordinates. The wrap mode determines how a texture is rendered for uv coordinates outside the range of [0, 1].

Parameters
wrapMode

public Texture.Sampler.Builder setWrapModeR (Texture.Sampler.WrapMode wrapMode)

Set the wrap mode for texture coordinate R. The wrap mode determines how a texture is rendered for uv coordinates outside the range of [0, 1].

Parameters
wrapMode

public Texture.Sampler.Builder setWrapModeS (Texture.Sampler.WrapMode wrapMode)

Set the wrap mode for texture coordinate S. The wrap mode determines how a texture is rendered for uv coordinates outside the range of [0, 1].

Parameters
wrapMode

public Texture.Sampler.Builder setWrapModeT (Texture.Sampler.WrapMode wrapMode)

Set the wrap mode for texture coordinate T. The wrap mode determines how a texture is rendered for uv coordinates outside the range of [0, 1].

Parameters
wrapMode