DemoGL::Reference::Functions::DEMOGL_ConsoleLogLine

DEMOGL_ConsoleLogLine

DEMOGL_ConsoleLogLine logs a given string on the DemoGL system console.

void
DEMOGL_ConsoleLogLine(
	const bool bScroll,
	const char *pszLine
);
	
Parameters.
bScroll
Specifies if the console contents should scroll one line up when the line pointed by pszLine is placed on the system console. When bScroll is true, scrolling takes place, otherwise no scrolling will take place and the line will be overwritten by the next line that is logged.
pszLine
Pointer to a zero-terminated string that will be logged on the system console.

Return values.

Remarks.
The zero-terminated string pointed by pszLine will be placed on the lowest line visible in the system console, just above the input lines. bScroll controlls if the contents of the console should scroll up or not after the line pszLine is logged. When you want to log strings with dynamic parameters, constructed at runtime, use DEMOGL_ConsoleLogLineV. Logging is always done, even if the console is not visible. This function will not have any effect when DEMOGL_AppRun is not called, so use DEMOGL_ConsoleLogLine only in code placed in registered effectclasses. Logged lines are always wrapped. When bScroll is false, the wrapped part is lost.

Example.

Requirements.
DemoGL v1.3 (build 0112 or higher)

See also.
DEMOGL_ConsoleLogLineV, DEMOGL_AppRun

Last changed on 19-jan-2001

©1999-2001 Solutions Design