C#Code
C#Code
Static Public Member Functions
Libraries._3D.QuadGenerator Class Reference

List of all members.

Static Public Member Functions

static
VertexPositionNormalTexture[] 
CreateTexturedQuadVerts (Vector2 textureTL, Vector2 textureBR, Vector2 dims, bool center)
static Libraries._3D.Obj3DPoints CreateTexturedQuad (Vector2 texUVTL, Vector2 texUVBR, Vector2 dims)
static
VertexPositionNormalTexture[] 
CreateTexturedQuadVerts (Vector2 textureTL, Vector2 textureBR, Vector2 dims, bool center)
static Libraries._3D.Obj3DPoints CreateTexturedQuad (Vector2 texUVTL, Vector2 texUVBR, Vector2 dims)

Detailed Description

Creates a sets of verticies that form a textured quad.


Member Function Documentation

static Libraries._3D.Obj3DPoints Libraries._3D.QuadGenerator.CreateTexturedQuad ( Vector2  texUVTL,
Vector2  texUVBR,
Vector2  dims 
) [static]

Create a 3D point quad with the given properties. This does not setup shaders. The caller has to do that.

texUVTL, texUVBR - Top left and bottom right texture coords.
dims - Dimensions of the piece in model space.
center - True if the object should be centered, false if it starts at the top left.
Return:
Value is the generated object. It is null if the object could not be created.
static Libraries._3D.Obj3DPoints Libraries._3D.QuadGenerator.CreateTexturedQuad ( Vector2  texUVTL,
Vector2  texUVBR,
Vector2  dims 
) [static]

Create a 3D point quad with the given properties. This does not setup shaders. The caller has to do that.

texUVTL, texUVBR - Top left and bottom right texture coords.
dims - Dimensions of the piece in model space.
center - True if the object should be centered, false if it starts at the top left.
Return:
Value is the generated object. It is null if the object could not be created.
static VertexPositionNormalTexture [] Libraries._3D.QuadGenerator.CreateTexturedQuadVerts ( 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.QuadGenerator.CreateTexturedQuadVerts ( 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.

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