C#Code
C#Code
Public Member Functions | Static Public Member Functions | Protected Attributes
Libraries._3D.Obj3DPoints Class Reference
Inheritance diagram for Libraries._3D.Obj3DPoints:
Libraries._3D.BaseObj3D Libraries._3D.BaseObj3D

List of all members.

Public Member Functions

 Obj3DPoints ()
 Obj3DPoints (VertexPositionNormalTexture[] points, bool visible, Vector3 pos, Vector3 rot, Vector3 scale)
override void Update (int timePassed)
override void Render (GraphicsDevice device)
VertexPositionNormalTexture[] GetVerts ()
void SetVerts (VertexPositionNormalTexture[] verts)
 Obj3DPoints ()
 Obj3DPoints (VertexPositionNormalTexture[] points, bool visible, Vector3 pos, Vector3 rot, Vector3 scale)
override void Update (int timePassed)
override void Render (GraphicsDevice device)
VertexPositionNormalTexture[] GetVerts ()
void SetVerts (VertexPositionNormalTexture[] verts)

Static Public Member Functions

static
VertexPositionNormalTexture[] 
CreateVertexQuad (Vector2 textureTL, Vector2 textureBR, Vector2 dims, bool center)
static
VertexPositionNormalTexture[] 
CreateVertexQuad (Vector2 textureTL, Vector2 textureBR, Vector2 dims, bool center)

Protected Attributes

VertexPositionNormalTexture[] m_points
 Points that make up the shape.

Detailed Description

Class to create a 3D object with the points specified (not a x file). Uses a generic for the vertex format to use.


Constructor & Destructor Documentation

Libraries._3D.Obj3DPoints.Obj3DPoints ( )

Default constructor.

Libraries._3D.Obj3DPoints.Obj3DPoints ( VertexPositionNormalTexture[]  points,
bool  visible,
Vector3  pos,
Vector3  rot,
Vector3  scale 
)

Constructor.

points - Points to store for the object.
visible - True if it is visible, false if not.
pos - Position of the object.
rot - Rotation of the object.
scale - Scale of the object.
Libraries._3D.Obj3DPoints.Obj3DPoints ( )

Default constructor.

Libraries._3D.Obj3DPoints.Obj3DPoints ( VertexPositionNormalTexture[]  points,
bool  visible,
Vector3  pos,
Vector3  rot,
Vector3  scale 
)

Constructor.

points - Points to store for the object.
visible - True if it is visible, false if not.
pos - Position of the object.
rot - Rotation of the object.
scale - Scale of the object.

Member Function Documentation

static VertexPositionNormalTexture [] Libraries._3D.Obj3DPoints.CreateVertexQuad ( Vector2  textureTL,
Vector2  textureBR,
Vector2  dims,
bool  center 
) [static]

Creates a sets of verticies that form a textured quad. The normal faces in the negative z direction.

textureTL - Top left texture coordinate.
textureBR - Bottom right texture coordinate.
dims - Dimensions of the quad in world space.
center - True if the shape should be centered, false if they should extend +x, -y.

Return:
Value is the verticies that make up the quad.
static VertexPositionNormalTexture [] Libraries._3D.Obj3DPoints.CreateVertexQuad ( Vector2  textureTL,
Vector2  textureBR,
Vector2  dims,
bool  center 
) [static]

Creates a sets of verticies that form a textured quad. The normal faces in the negative z direction.

textureTL - Top left texture coordinate.
textureBR - Bottom right texture coordinate.
dims - Dimensions of the quad in world space.
center - True if the shape should be centered, false if they should extend +x, -y.

Return:
Value is the verticies that make up the quad.
VertexPositionNormalTexture [] Libraries._3D.Obj3DPoints.GetVerts ( )

Get the vertices stored in the object.
Return:
Value is the verticies that make up the object.

VertexPositionNormalTexture [] Libraries._3D.Obj3DPoints.GetVerts ( )

Get the vertices stored in the object.
Return:
Value is the verticies that make up the object.

override void Libraries._3D.Obj3DPoints.Render ( GraphicsDevice  device) [virtual]

Render the object.

device - Graphics device to render with.

Implements Libraries._3D.BaseObj3D.

override void Libraries._3D.Obj3DPoints.Render ( GraphicsDevice  device) [virtual]

Render the object.

device - Graphics device to render with.

Implements Libraries._3D.BaseObj3D.

void Libraries._3D.Obj3DPoints.SetVerts ( VertexPositionNormalTexture[]  verts)

Store the given array as the verticies to use.

verts - Verticies to use.
void Libraries._3D.Obj3DPoints.SetVerts ( VertexPositionNormalTexture[]  verts)

Store the given array as the verticies to use.

verts - Verticies to use.
override void Libraries._3D.Obj3DPoints.Update ( int  timePassed) [virtual]

Update the object with the time passed.

timePassed - How much time to account for with the update.

Implements Libraries._3D.BaseObj3D.

override void Libraries._3D.Obj3DPoints.Update ( int  timePassed) [virtual]

Update the object with the time passed.

timePassed - How much time to account for with the update.

Implements Libraries._3D.BaseObj3D.


Member Data Documentation

VertexPositionNormalTexture [] Libraries._3D.Obj3DPoints.m_points [protected]

Points that make up the shape.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Properties