JosephCottam / AbstractRendering

Bin-based rendering...for the win!
Other
52 stars 6 forks source link

Modular "Info" method #7

Closed JosephCottam closed 11 years ago

JosephCottam commented 11 years ago

Info is currently handled as part of the glyph definition (e.g., glyph is a shape and a value). If a different info is desired, a new glyphset needs to be built.

Lift out info so it takes the value from the glyph and produces a new value. Glyphs remain the same interface, but "value" can be more broadly defined.

JosephCottam commented 11 years ago

Took a different tack. Renamed "value" to "info" on the glyph. To do different info functions, the glyphset can be wrapped and the value translated on the fly. Incurs an extra object allocation since glyph objects are immutable.