-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drawable base class #5
Labels
enhancement
New feature or request
Comments
This was referenced Jun 2, 2018
Closed
Closed
Closed
martinjrobins
added a commit
that referenced
this issue
Jun 5, 2018
martinjrobins
added a commit
that referenced
this issue
Jun 6, 2018
martinjrobins
added a commit
that referenced
this issue
Jun 7, 2018
made Drawables no longer templated on Backend. The particular Backend class is only needed for the |
got a basic class, closing this for now |
re-opening to add features |
martinjrobins
added a commit
that referenced
this issue
Jun 14, 2018
Closed
martinjrobins
added a commit
to martinjrobins/trase
that referenced
this issue
Jun 19, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Axis
,Plot1D
etcmember variables:
std::vector<Drawable *> m_children
m_area
: area as ratio of parentm_pixels
: current area as raw pixelsm_time_span
: maximum time for animationm_times
: frame times for animationm_time
: current time for animationmember functions:
void resize(const std::array<float, 4> &parent_pixels)
: resize itself and its childrentemplate <typename Backend> void draw(Backend &backend)
: draw itself and its childrenadd_frame(time)
: add a new animation framefloat get_frame_index()
: get frame index associated with current time (as a float, could be in-between frames)set_time(time)
: set current animation timeThe text was updated successfully, but these errors were encountered: