Mercurial > hg > octave-nkf
comparison src/gl-render.cc @ 12333:f103b9c1ca05
use text_renderer object only when freetye is available
author | Kai Habel <kai.habel@gmx.de> |
---|---|
date | Thu, 03 Feb 2011 12:47:05 +0100 |
parents | 2ad37783bf01 |
children | 63dc132a1000 |
comparison
equal
deleted
inserted
replaced
12331:f39436e14734 | 12333:f103b9c1ca05 |
---|---|
3212 opengl_renderer::text_to_pixels (const std::string& txt, | 3212 opengl_renderer::text_to_pixels (const std::string& txt, |
3213 uint8NDArray& pixels, | 3213 uint8NDArray& pixels, |
3214 Matrix& bbox, | 3214 Matrix& bbox, |
3215 int halign, int valign, double rotation) | 3215 int halign, int valign, double rotation) |
3216 { | 3216 { |
3217 #if HAVE_FREETYPE | |
3217 text_renderer.text_to_pixels (txt, pixels, bbox, | 3218 text_renderer.text_to_pixels (txt, pixels, bbox, |
3218 halign, valign, rotation); | 3219 halign, valign, rotation); |
3220 #endif | |
3219 } | 3221 } |
3220 | 3222 |
3221 Matrix | 3223 Matrix |
3222 opengl_renderer::render_text (const std::string& txt, | 3224 opengl_renderer::render_text (const std::string& txt, |
3223 double x, double y, double z, | 3225 double x, double y, double z, |