diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2016-04-02 13:00:29 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2016-04-02 13:00:29 +0200 |
commit | f8420e0a46e1069220dcd642bca30c3fcb8c1b91 (patch) | |
tree | 4f07eaf8f8fa4829c541d8aea66a3769c8080454 /src/renderer.h | |
parent | 2a8925a8612b5e632b0dbaa762ce834ad61704a8 (diff) |
Don't update xsections if unnecessary.
Diffstat (limited to 'src/renderer.h')
-rw-r--r-- | src/renderer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/renderer.h b/src/renderer.h index 0c38e6d..ce373df 100644 --- a/src/renderer.h +++ b/src/renderer.h @@ -49,12 +49,16 @@ typedef enum { typedef struct { SDL_Texture *texture; float aspect_ratio; + + r_xsection_type last_type; + float last_frac; + int64_t frame_index; } r_xsection; void r_xsection_create(r_xsection *xsection); void r_xsection_destroy(r_xsection *xsection); int r_xsection_update(r_window *rw, r_xsection *xsection, - phy_field_info *fi, float *field, + phy_field_info *fi, float *field, int64_t frame_index, r_xsection_type type, float frac); void r_xsection_draw(r_window *rw, r_xsection *xsection, float x, float y, float w, float h); |