fg_setworld()

Win32 DirectX Fastgraph/Light

Prototype

void fg_setworld (double xmin, double xmax, double ymin, double ymax);

Sub fg_setworld (ByVal xmin As Double, ByVal xmax As Double, ByVal ymin As Double, ByVal ymax As Double)

procedure fg_setworld (xmin, xmax, ymin, ymax : real);

Description

The fg_setworld() function defines the 2D world space coordinates that correspond to the edges of the active virtual buffer.

Parameters

xmin is the world space coordinate of the screen's left edge.

xmax is the world space coordinate of the screen's right edge. It must be greater than the value of xmin.

ymin is the world space coordinate of the screen's bottom edge.

ymax is the world space coordinate of the screen's top edge. It must be greater than the value of ymin.

Return value

none

Restrictions

Before using this function, you must call fg_initw() to initialize Fastgraph's 2D world space parameters.

See also

fg_getworld(), fg_initw(), fg_setview()

Examples

SWchars

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.