fg_swchar()

Win32 DirectX Fastgraph/Light

Prototype

void fg_swchar (char *string, int n, int justify);

Sub fg_swchar (ByVal string As String, ByVal n As Long, ByVal justify As Long)

procedure fg_swchar (string : string; n, justify : integer);

Description

The fg_swchar() function displays a string of software characters in the current color. The string may be left justified, centered, or right justified relative to the graphics cursor.

Parameters

string is the sequence of characters to display. It may contain special operators, as summarized in the following table.

Operator

Meaning

\

Switch to other font

\^

Superscript the next character

\v

Subscript the next character

_

Begin underlining characters until another underscore character is encountered

n is the number of characters in string, including any special operator characters.

justify determines how string is positioned relative to the current position. If justify is negative, string is left justified; if it is zero, string is centered; if it is positive, string is right justified.

Return value

none

Restrictions

Before using this function, you must use fg_initw() and fg_setworld() to establish a 2D world space coordinate system.

See also

fg_initw(), fg_setangle(), fg_setratio(), fg_setsize(), fg_setsizew(), fg_setworld(), fg_swlength(), fg_swtext()

Examples

SWchars

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.