ClanSoft logo
ClanSoft logo

    CL_Font::put_target

Syntax

void put_target(
        int x,
        int y,
        const char *text,
        CL_Target *target,
        int alignment=ALIGN_LEFT);

Parameters

x-X coordinate (in pixels)
y-Y coordiante (in pixels)
text-The text to be drawn with this font.
target-the target surface to blit to.
alignment-the alignment of the text, CL_Font::ALIGN_LEFT, CL_Font::ALIGN_CENTER, CL_Font::ALIGN_RIGHT

Description

Prints text aligned with alignment at coordinates (x,y) to the target surface.If CL_Font::ALIGN_LEFT is specified the text is draw starting from x, y.If CL_Font::ALIGN_CENTER is specified the text is centered at x, y.If CL_Font::ALIGN_RIGHT is specified the text ends at x, y;


Back to index



This page was built using the Perceps documentation system.