Class Texture.Sampler.Builder
- java.lang.Object
-
- com.google.ar.sceneform.rendering.Texture.Sampler.Builder
-
- Enclosing class:
- Texture.Sampler
public static class Texture.Sampler.Builder extends java.lang.Object
Builder for constructing Sampler objects.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
setMinMagFilter(Texture.Sampler.MagFilter minMagFilter)
Set both the texture minifying function and magnification function.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.
-
-
-
Method Detail
-
setMinMagFilter
public Texture.Sampler.Builder setMinMagFilter(Texture.Sampler.MagFilter minMagFilter)
Set both the texture minifying function and magnification function.
-
setMinFilter
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.
-
setMagFilter
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.
-
setWrapMode
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].
-
setWrapModeS
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].
-
setWrapModeT
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].
-
setWrapModeR
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].
-
build
public Texture.Sampler build()
Construct a Sampler from the properties of the Builder.
-
-