Previous Up Next

_SDRAWtext
Draws text on a surface.

ObjSurface _SDRAWtext (
ObjSurface _surface_
ObjFont _font_
I _x_
I _y_
I _color_
I _flag_
S _text_
)
Parameters

_surface_
Rendering surface
_font_
Character font
_x_
X coordinate of Upper-Left corner
_y_
Y coordinate of Upper-Left corner
_color_
Text color
_flag_
Flag
TD_BASELINE y is the 'baseline' coordinate
TD_BOTTOM y is the 'bottom' coordinate
TD_TOP y is the 'top' coordinate
TD_CENTER y is the 'center' coordinate
TD_LEFT y is the 'left' coordinate
TD_RIGHT y is the 'right' coordinate
_text_
Text to be drawn
Return value

Rendering surface