DX::IDXVertex Struct Reference

#include <IDXVertex.h>

Inherits DX::IDXUserData, DX::IDXModelOwned, and DX::IDXMeshOwned.

Collaboration diagram for DX::IDXVertex:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const DXVector &DXMCALL GetPosition () const =0
virtual const DXVector &DXMCALL GetNormal () const =0
virtual DXError DXMCALL GetUV (uint channel, DXUV *out)=0
virtual uint DXMCALL GetNumUVS () const =0
virtual void DXMCALL SetPosition (const DXVector &position)=0
virtual void DXMCALL SetNormal (const DXVector &normal)=0
virtual DXError DXMCALL SetUV (uint channel, const DXUV &uv)=0


Detailed Description

Added to meshes to describe a vertex - a position, normal and a number of UV coordinates.

Member Function Documentation

virtual const DXVector& DXMCALL DX::IDXVertex::GetNormal (  )  const [pure virtual]

Get the normal vector of this IDXVertex.

Returns:
The normal.

virtual uint DXMCALL DX::IDXVertex::GetNumUVS (  )  const [pure virtual]

Get the number of uvs that this vertex has.

virtual const DXVector& DXMCALL DX::IDXVertex::GetPosition (  )  const [pure virtual]

Get the position vector of this IDXVertex.

Returns:
The position

virtual DXError DXMCALL DX::IDXVertex::GetUV ( uint  channel,
DXUV *  out 
) [pure virtual]

Get the UV data for this vertex on the specified channel.

Parameters:
channel The channel number to retrieve.
out A pointer to a DXUV where the result will be stored.
Returns:
Error_NullParam if out was null.
Error_OutOfRange if channel was higher than this vert supports.
Error_Success if the result was stored in out.

virtual void DXMCALL DX::IDXVertex::SetNormal ( const DXVector &  normal  )  [pure virtual]

Set the normal of this IDXVertex.

Parameters:
normal A DXVector representing the new normal of the IDXVertex.

virtual void DXMCALL DX::IDXVertex::SetPosition ( const DXVector &  position  )  [pure virtual]

Set the position vector of this IDXVertex.

Parameters:
position A DXVector representing the new position of the IDXVertex.

virtual DXError DXMCALL DX::IDXVertex::SetUV ( uint  channel,
const DXUV &  uv 
) [pure virtual]

Set the UV coordinates on the specified channel.

Parameters:
channel The number of the channel to set the uvs for
uv A DXUV which represents the uv coordinates.


Generated on Wed Jun 17 17:24:51 2009 for DXMesh API by  doxygen 1.5.7.1