--- /dev/null
+#include <msp/gl/transform.h>
+#include "alignment.h"
+#include "geometry.h"
+
+namespace Msp {
+namespace GLtk {
+
+void Alignment::apply(const Geometry &geom, unsigned wd, unsigned ht) const
+{
+ GL::translate((geom.w-wd)*(x+1)/2, (geom.h-ht)*(y+1)/2, 0);
+}
+
+} // namespace GLtk
+} // namespace Msp