+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
#include <GL/gl.h>
#include "font.h"
#include "texture2d.h"
glyph(g)
{
add("texcoords", &Loader::texcoords);
- add("size", &Loader::size);
- add("offset", &Loader::offset);
+ add("size", &Glyph::w, &Glyph::h);
+ add("offset", &Glyph::off_x, &Glyph::off_y);
add("advance", &Glyph::advance);
}
glyph.y2=y2;
}
-void Font::Glyph::Loader::size(float w, float h)
-{
- glyph.w=w;
- glyph.h=h;
-}
-
-void Font::Glyph::Loader::offset(float x, float y)
-{
- glyph.off_x=x;
- glyph.off_y=y;
-}
-
} // namespace GL
} // namespace Msp