Packages
 In this topic

*Constructors

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class D3dTLVertex

public final class D3dTLVertex
{
  // Fields
  public int color;
  public float rhw;
  public int specular;
  public float sx;
  public float sy;
  public float sz;
  public float tu;
  public float tv;

  // Constructors
  public D3dTLVertex();
  public D3dTLVertex(float sx, float sy, float sz, float rhw,
        int color, int specular float tu, float tv);
}

Defines a transformed and lit vertex (screen coordinates with color).

Constructors

D3dTLVertex

public D3dTLVertex();

Creates a D3DTLVertex object with uninitialized fields.

D3dTLVertex

public D3dTLVertex(float sx, float sy, float sz, float rhw, int color,
        int specular float tu, float tv);

Creates a D3dTLVertex object with fields set to values specified by the user.

ParameterDescription
sx A float that initializes the sx field.
sy A float that initializes the sy field.
sz A float that initializes the sz field.
rhw A float that initializes the rhw field.
color An int that initializes the color field.
specular An int that initializes the specular field.
tu A float that initializes the tu field.
tv A float that initializes the tv field.

Fields

color
Value describing the color component of the vertex.
rhw
The value that is the reciprocal of homogenous w. This value is 1 divided by the distance from the origin to the object along the z-axis.
specular
Value describing the specular component of the vertex.
sx
The x screen coordinate of the vertex.
sy
The y screen coordinate of the vertex.
sz
The z screen coordinate of the vertex.
tu
Value describing the texture u-coordinate of the vertex.
tv
Value describing the texture v-coordinate of the vertex.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.