comparison src/gl-render.cc @ 12368:3458c5bba6e5 release-3-4-x

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 1a24d55b1714
children 63dc132a1000
comparison
equal deleted inserted replaced
12367:4f4eb7da82d5 12368:3458c5bba6e5
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,