OMeshShaderProvider class

A class responsible for loading and caching the fragment shader responsible for interpolation the colors of the mesh.

This class is used internally by the OMeshGradient and AnimatedOMeshGradient and should be used directly only if you want to render a mesn on canvas directly (eg. by using OMeshRectPaint).

Should be loaded via OMeshShaderProvider.load and disposed when no longer needed.

Avoid sharing instances of this class between different mesh gradient areas.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes the shader provider and all the shaders.
getShaderFor(int index) FragmentShader
Returns the shader for the given patch index.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

load() Future<OMeshShaderProvider>
Loads the shader provider. It will resolve after the FragmentProgram is loaded.