Pascal
procedure tsTextBeginBlock(Left: tsInt; Top: tsInt; Width: tsInt; Height: tsInt; Flags: tsBitmask);
C/C++
void tsTextBeginBlock(tsInt Left, tsInt Top, tsInt Width, tsInt Height, tsBitmask Flags);
This function enters the block mode. It will create an virtual rect with the given size in which the text will be arranged. Following parameters affect the output from the block mode. TS_ALIGN, TS_VALIGN, TS_CLIP, TS_BLOCK_OFFSET_X, TS_BLOCK_OFFSET_Y, TS_FONT_CHAR_SPACING and TS_FONT_LINE_SPACING.
|
Note |
|---|---|
|
All of these parameters must be set before you enter the block mode. Inside the parameters can't be changed an result in an invalid operation error. |
|
The position and the size of the mode. All values are in opengl units. In 2D this normally should be pixels in order to print some
There are several flags to control the output from the block mode. See table flags for the block mode for more details.
There is no active context. See also tsContextBind.
There was no renderer set. See the parameter TS_RENDERER.
You already has entered the block mode.