Mercurial > hg > octave-nkf
diff src/gl-render.h @ 11455:2be9e22796d2
improvements in text-extent calculation
author | Konstantinos Poulios <logari81@googlemail.com> |
---|---|
date | Thu, 06 Jan 2011 20:46:03 +0100 |
parents | 65d5776379c3 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/src/gl-render.h +++ b/src/gl-render.h @@ -71,6 +71,7 @@ } virtual void set_viewport (int w, int h); + virtual graphics_xform get_transform (void) const { return xform; } protected: virtual void draw_figure (const figure::properties& props); @@ -97,10 +98,10 @@ const Matrix& lc, const Matrix& fc); virtual void text_to_pixels (const std::string& txt, - double rotation, uint8NDArray& pixels, Matrix& bbox, - int& rot_mode); + int halign = 0, int valign = 0, + double rotation = 0.0); virtual Matrix render_text (const std::string& txt, double x, double y, double z,