~kdub/mir/fix-1301040

« back to all changes in this revision

Viewing changes to src/server/scene/basic_surface.h

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2014-03-24 14:38:13 UTC
  • mfrom: (1493.1.3 set-transformation)
  • Revision ID: tarmac-20140324143813-5qesax5lvhgqlmj9
Generalize shell::Surface::set_rotation() into set_transformation().
  
A generic transformation matrix is more useful as it can represent any
sequence of transformations, as is required for animation support.
.

Approved by PS Jenkins bot, Alexandros Frantzis, Kevin DuBois, Alberto Aguirre.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
    bool contains(geometry::Point const& point) const override;
99
99
    void frame_posted();
100
100
    void set_alpha(float alpha) override;
101
 
    void set_rotation(float degrees, glm::vec3 const&) override;
 
101
    void set_transformation(glm::mat4 const&) override;
102
102
    glm::mat4 transformation() const override;
103
103
    bool should_be_rendered_in(geometry::Rectangle const& rect) const  override;
104
104
    bool shaped() const  override;  // meaning the pixel format has alpha
130
130
    std::function<void()> const notify_change;
131
131
    std::string const surface_name;
132
132
    geometry::Rectangle surface_rect;
133
 
    glm::mat4 rotation_matrix;
 
133
    glm::mat4 transformation_matrix;
134
134
    float surface_alpha;
135
135
    bool first_frame_posted;
136
136
    bool hidden;