Class LocalMatrixShader

java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.core.shaders.LocalMatrixShader
All Implemented Interfaces:
RefCounted, Shader

public final class LocalMatrixShader extends RefCnt implements Shader
  • Method Details

    • deallocate

      protected void deallocate()
      Description copied from class: RefCnt
      Override this method to invoke de-allocation of the underlying resource.
      Specified by:
      deallocate in class RefCnt
    • isOpaque

      public boolean isOpaque()
      Description copied from interface: Shader
      Returns true if the shader is guaranteed to produce only opaque colors, subject to the Paint using the shader to apply an opaque alpha value. Subclasses should override this to allow some optimizations.
      Specified by:
      isOpaque in interface Shader
    • isConstant

      public boolean isConstant()
      Returns true if the shader is guaranteed to produce only a single color. Subclasses can override this to allow loop-hoisting optimization.
      Specified by:
      isConstant in interface Shader
    • getBase

      @RawPtr public @RawPtr Shader getBase()
    • getLocalMatrix

      public Matrixc getLocalMatrix()