ContributorRegistry class final

The contributors a renderer draws, and the order it draws them in.

Its own class rather than three fields on Renderer because ordering is the whole substance of a registry and the only part worth testing — and testing it through the renderer would need a GPU context to ask a question that is pure list arithmetic.

Constructors

ContributorRegistry()

Properties

active → Iterable<PassContributor>
Everything active, in drawing order.
no setter
all → List<PassContributor>
Registration order, which is not drawing order — see active.
no setter
hashCode → int
The hash code for this object.
no setterinherited
length → int
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add<T extends PassContributor>(T plugin) → T
clear() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(PassContributor plugin) → bool
toString() → String
A string representation of this object.
inherited

Operators

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