megaplot icon indicating copy to clipboard operation
megaplot copied to clipboard

Implement generic solution to non-zero default sprite attribute values

Open jimbojw opened this issue 3 years ago • 0 comments

Currently, all sprite attribute values default to 0. This makes initialization easy since a freshly allocated texture will have zeros flashed throughout. When a sprite is released, its swatch of texture data is flashed back to 0 before that swatch is reused.

Instead, Megaplot should implement a generic solution for specifying non-zero default values. This new mechanism should be used to support TransitionTimeMs, which currently receives special treatment.

Design consideration: provide an API for the user to override any or all sprite attribute default values.

jimbojw avatar Oct 21 '22 15:10 jimbojw