Vertex Struct Reference
[Nodes and Scene Objects]

Light-weight class for storing position, material, and texture. More...

#include <Vertex.h>

Collaboration diagram for Vertex:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Vertex ()
 Construct a new Vertex.
 Vertex (float x, float y)
 Construct a new Vertex at (x,y).
 Vertex (const Vector2f &pos)
 Construct a new Vertex at pos.
 Vertex (const Vector2f &pos, const MaterialState &mat)
 Construct a new Vertex at pos, with a material.
 Vertex (const Vector2f &pos, const Vector2f &tex)
 Construct a new Vertex at pos.
 Vertex (const Vector2f &pos, const MaterialState &mat, const Vector2f &tex)
 Construct a new Vertex at pos, with a material.

Public Attributes

Vector2f position
 Current spatial position of the Vertex.
Vector2f textureCoord
 Current texture coordinate of the Vertex.
MaterialState material
 Current material of the Vertex.


Detailed Description

Light-weight class for storing position, material, and texture.

A Vertex is used to construct Shapes which may require different materials and texture coordinates at each point.


Constructor & Destructor Documentation

Vertex::Vertex (  )  [inline]

Construct a new Vertex.

Vertex is constructed at (0,0) with texture coordinates at (0,0).

Vertex::Vertex ( float  x,
float  y 
) [inline]

Construct a new Vertex at (x,y).

Vertex is constructed at (x,y) with texture coordinates at (0,0).

Vertex::Vertex ( const Vector2f pos  )  [inline]

Construct a new Vertex at pos.

Vertex is constructed at pos with texture coordinates at (0,0).

Vertex::Vertex ( const Vector2f pos,
const MaterialState mat 
) [inline]

Construct a new Vertex at pos, with a material.

Vertex is constructed at pos with texture coordinates at (0,0) and material set to mat.

Vertex::Vertex ( const Vector2f pos,
const Vector2f tex 
) [inline]

Construct a new Vertex at pos.

Vertex is constructed at pos with texture coordinates at tex.

Vertex::Vertex ( const Vector2f pos,
const MaterialState mat,
const Vector2f tex 
) [inline]

Construct a new Vertex at pos, with a material.

Vertex is constructed at pos with texture coordinates at tex and material set to mat.


The documentation for this struct was generated from the following file:

Generated on Fri Feb 22 15:56:25 2008 for Scene2D by  doxygen 1.5.5