spritely
spritely copied to clipboard
Allow Context_t to support mutliple pixel buffers
It would be nice to get rid of the weirdness in the sprite selector. Currently the sprite selector is multiple contexts.
- a context to support sprite selection (i.e.
sprite_selector_ctx)
- this doesn't render, but it's what handles the click event and where the indicator goes.
- multiple contexts that render each sprite. These just happened to be positioned conveniently (i.e.
sprite_selector_cells)
if Context_t could optionally support multiple pixel buffers, we could probably make this a little cleaner. Also it will help us out when we go add icons on our toolbar or if we decide to build a map editor along-side this.
Please respond here if you have any questions.