Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

DoCompTextureUVWCallback(3D)

DoTextureMapBump(3D)

DoTextureMapDiffuseColor(3D)

DoTextureMapTranspIntens(3D)

DoCompTextureUVWSwitch(3D)  —  Kubota Pacfic Computer Inc. (\*(Dd)

NAME

DoCompTextureUVWSwitch − Create a primitive attribute object for enabling or disabling generation of uvw texture coordinates

SYNOPSIS

C:

DtObject DoCompTextureUVWSwitch(switchvalue)
DtSwitch switchvalue;

FORTRAN:

INTEGER∗4 DOCTWS(SWVAL)
INTEGER∗4 SWVAL

DESCRIPTION

DoCompTextureUVWSwitch creates a primitive attribute object that enables or disables the generation of uvw texture coordinates for primitives that do not have user-provided vertex information.  Such primitives include DoPrimSurf, DoTorus, and DoSphereList primitives. 

For some renderers certain primitive objects, such as spheres, are tessellated into triangles before they are drawn.  If a sphere is to be 3D texture mapped, the element vertices approximating the sphere may need to include uvw texture coordinates.  On the other hand, if the sphere will never be texture mapped there is no need to generate and store that information. 

The switchvalue parameter is used to specify whether or not subsequent primitives will generate uvw coordinates for texture mapping when they decompose themselves into elements.  Possible values for switchvalue are:

DcOff <DCOFF>
the primitive object will not generate any uvw information. 

DcOn <DCON>
the primitive object will generate uvw coordinates, when possible, using the parameterization method set by DoCompTextureUVWCallback <DOCTWC>. 

DEFAULTS

The default for DoCompTextureUVWSwitch is DcOff. 

SEE ALSO

DoCompTextureUVWCallback(3D), DoTextureMapBump(3D), DoTextureMapDiffuseColor(3D), DoTextureMapTranspIntens(3D)

September 02, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026