fg_tmunits()

Win32 DirectX Fastgraph/Light

Prototype

void fg_tmunits (int units);

Sub fg_tmunits (ByVal units As Long)

procedure fg_tmunits (units : integer);

Description

The fg_tmunits() function specifies if the (u,v) coordinate arrays passed to Fastgraph's texture mapping functions use integer or floating point values. Floating point (u,v) coordinates can provide better results when 3D clipping is applied to textures. By default, the texture mapping functions assume (u,v) coordinates are integers.

Parameters

units specifies the (u,v) coordinate type. If units is 0, the texture mapping functions expect integer (u,v) coordinates. If units is any other value, the texture mapping functions expect 32-bit floating point (u,v) coordinates.

Return value

none

Restrictions

none

See also

fg_3Dtexturemap(), fg_3Dtexturemapobject(), fg_3Dzcliptm(), fg_texmap(), fg_texmapp(), fg_texmappz(), fg_texmapz()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.