Public Member Functions | Public Attributes | Static Public Attributes

xl7::direct3d::models::Vertex Class Reference

#include <Vertex.h>

List of all members.

Public Member Functions

 Vertex (void)
 Vertex (const ml7::Vector3 &position, const ml7::Vector3 &normal, const ml7::Vector2 &tex_coords)
 ~Vertex (void)
 Vertex (const Vertex &rhs)
Vertexoperator= (const Vertex &rhs)
const ml7::Vector3GetPosition () const
void SetPosition (const ml7::Vector3 &position)
const ml7::Vector3GetNormal () const
void SetNormal (const ml7::Vector3 &normal)
const ml7::Vector2GetTexCoords () const
void SetTexCoords (const ml7::Vector2 &tex_coords)
bool operator< (const Vertex &rhs) const
bool operator== (const Vertex &rhs) const
bool operator!= (const Vertex &rhs) const

Public Attributes

ml7::Vector3 position
ml7::Vector3 normal
ml7::Vector2 tex_coords

Static Public Attributes

static const unsigned long FVF = D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1

Constructor & Destructor Documentation

xl7::direct3d::models::Vertex::Vertex ( void   ) 

Default constructor.

xl7::direct3d::models::Vertex::Vertex ( const ml7::Vector3 position,
const ml7::Vector3 normal,
const ml7::Vector2 tex_coords 
)

Explicit constructor.

xl7::direct3d::models::Vertex::~Vertex ( void   ) 

Destructor.

xl7::direct3d::models::Vertex::Vertex ( const Vertex rhs  ) 

Copy constructor.


Member Function Documentation

const ml7::Vector3& xl7::direct3d::models::Vertex::GetNormal (  )  const [inline]

Returns the vertex normal

const ml7::Vector3& xl7::direct3d::models::Vertex::GetPosition (  )  const [inline]

Returns the position of the vertex.

const ml7::Vector2& xl7::direct3d::models::Vertex::GetTexCoords (  )  const [inline]

Returns the texture coordinates of the vertex.

bool xl7::direct3d::models::Vertex::operator!= ( const Vertex rhs  )  const
bool xl7::direct3d::models::Vertex::operator< ( const Vertex rhs  )  const
Vertex & xl7::direct3d::models::Vertex::operator= ( const Vertex rhs  ) 

Copy assignment operator.

bool xl7::direct3d::models::Vertex::operator== ( const Vertex rhs  )  const
void xl7::direct3d::models::Vertex::SetNormal ( const ml7::Vector3 normal  )  [inline]

Sets the vertex normal

void xl7::direct3d::models::Vertex::SetPosition ( const ml7::Vector3 position  )  [inline]

Sets the position of the vertex.

void xl7::direct3d::models::Vertex::SetTexCoords ( const ml7::Vector2 tex_coords  )  [inline]

Sets the texture coordinates of the vertex.


Member Data Documentation

const unsigned long xl7::direct3d::models::Vertex::FVF = D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1 [static]

The vertex normal

The position of the vertex.

The texture coordinates of the vertex.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines