CL_Font::draw_glyph - ClanLib Game SDK

Home | All Classes | Grouped Classes | Index | Search

# CL_Font::draw_glyph

Draws a single glyph to a given spot.

    	void draw_glyph(
    		int x, int y, unsigned int glyph, float ang = 0.0, CL_GraphicContext* gc = 0);

Parameters:

x, y
  The upper-left coordinates of where to draw the glyph.
chr
  The character to draw the glyph of.
ang
  The amount to rotate the glyph by. The hotspot is set with CL_Font::set_glyph_rot_hotspot().
gc
  Graphic context to render to. If null, will render to the CL_Display currently set window.

Detailed description:

If there is no glyph for the given index, then nothing is drawn.

See also:

CL_GraphicContext | CL_Display | CL_Font

Questions or comments, write to the ClanLib mailing list.