]> git.tdb.fi Git - libs/gltk.git/blob - source/alignment.cpp
Reorder class members
[libs/gltk.git] / source / alignment.cpp
1 /* $Id$
2
3 This file is part of libmspgltk
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include <msp/gl/transform.h>
9 #include "alignment.h"
10 #include "geometry.h"
11
12 namespace Msp {
13 namespace GLtk {
14
15 void Alignment::apply(const Geometry &geom, unsigned wd, unsigned ht) const
16 {
17         GL::translate((geom.w-wd)*(x+1)/2, (geom.h-ht)*(y+1)/2, 0);
18 }
19
20 } // namespace GLtk
21 } // namespace Msp