~kdub/mir/fix-1301040

« back to all changes in this revision

Viewing changes to src/server/scene/surface_impl.cpp

  • 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:
142
142
    surface->resize(size);
143
143
}
144
144
 
145
 
void ms::SurfaceImpl::set_rotation(float degrees, glm::vec3 const& axis)
 
145
void ms::SurfaceImpl::set_transformation(glm::mat4 const& t)
146
146
{
147
 
    surface->set_rotation(degrees, axis);
 
147
    surface->set_transformation(t);
148
148
}
149
149
 
150
150
float ms::SurfaceImpl::alpha() const