Mercurial > octave-nkf
diff src/gl-render.h @ 9834:92d8f35ff217
compute bounding boxes for text in opengl graphics backend
author | Shai Ayal <shaiay@users.sourceforge.net> |
---|---|
date | Wed, 18 Nov 2009 23:14:09 -0500 |
parents | 2d6a5af744b6 |
children | 3ec3b8e80b67 |
line wrap: on
line diff
--- a/src/gl-render.h Wed Nov 18 21:02:49 2009 -0500 +++ b/src/gl-render.h Wed Nov 18 23:14:09 2009 -0500 @@ -95,9 +95,15 @@ virtual void draw_marker (double x, double y, double z, const Matrix& lc, const Matrix& fc); + virtual void text_to_pixels (const std::string& txt, + double rotation, + uint8NDArray& pixels, + Matrix& bbox, + int& rot_mode); + virtual Matrix render_text (const std::string& txt, - double x, double y, double z, - int halign, int valign, double rotation = 0.0); + double x, double y, double z, + int halign, int valign, double rotation = 0.0); private: opengl_renderer (const opengl_renderer&) { }