Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Layer support #4

Open
rdrpenguin04 opened this issue Jun 29, 2020 · 2 comments
Open

Layer support #4

rdrpenguin04 opened this issue Jun 29, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@rdrpenguin04
Copy link
Member

Goal: To implement a "Layer" construct that organizes Things into a group that renders with the same depth.

Constraints:

  • Constructing a Layer should return something usable as a Thing.
  • Layer should have a function to add/remove Things.
  • Layer should have a function to either:
    • Translate the layer rendering
    • Translate the Things on the layer (only in effect; any x/y attributes of the Thing in question should remain constant)
  • A Layer should render as if all of its Things were rendered, in depth sorted order, followed by being compressed into one graphic, then rendered to the screen at the Layer's depth.
@rdrpenguin04 rdrpenguin04 added the enhancement New feature or request label Jun 29, 2020
@rdrpenguin04 rdrpenguin04 self-assigned this Jun 29, 2020
@chorman0773
Copy link
Member

This seems similar to the DrawingSpace api from JPipeworksEngine LightningCreations/JPipeworksEngine#1.
Would it make sense to add additional apis to Layer's similar to that (Affine Transformations, Colour Mapping by function, etc.), in addition to simple translations?

@rdrpenguin04
Copy link
Member Author

rdrpenguin04 commented Jun 29, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants