fg_3Dviewport()

Win32 DirectX Fastgraph/Light

Prototype

void fg_3Dviewport (int minx, int maxx, int miny, int maxy, double ratio);

Sub fg_3Dviewport (ByVal minx As Long, ByVal maxx As Long, ByVal miny As Long, ByVal maxy As Long, ByVal ratio As Double)

procedure fg_3Dviewport (minx, maxx, miny, maxy : integer; ratio : double);

Description

The fg_3Dviewport() function defines the 3D viewport in screen space and the corresponding projection ratio. You must set up a 3D viewport before using any 3D drawing functions or fg_3Dproject().

Parameters

minx is the x coordinate of the viewport's left edge.

maxx is the x coordinate of the viewport's right edge. It must be greater than or equal to the value of minx.

miny is the y coordinate of the viewport's top edge.

maxy is the y coordinate of the viewport's bottom edge. It must be greater than or equal to the value of miny.

ratio is the projection ratio. It must be greater than zero for a left-handed 3D coordinate system, and less than zero for a right-handed system.

Return value

none

Restrictions

3D clipping cannot be used with a right-handed coordinate system.

Examples

Columns, Cube, Geometry, TMcube, TMcubeX, Tunnel

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.