C# Class ShowIt.AABBFaceMesh

This object represents a single wall of a Axis Aligned Bounding Box
Inheritance: Mesh3D
显示文件 Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Methods

Method Description
ApplyTransform ( Transformation transform ) : void
CreateFace ( GraphicsInterface gi, Vector3D roomSize, AABBFace whichWall, Resolution res, GLTexture texture ) : AABBFaceMesh

Create a mesh object that represents the wall.

PositionWall ( AABBFace whichFace ) : void
Render ( GraphicsInterface GI ) : void

Private Methods

Method Description
AABBFaceMesh ( GraphicsInterface gi, Vector3D boundary, AABBFace whichFace ) : System

Method Details

ApplyTransform() public method

public ApplyTransform ( Transformation transform ) : void
transform Transformation
return void

CreateFace() public static method

Create a mesh object that represents the wall.
public static CreateFace ( GraphicsInterface gi, Vector3D roomSize, AABBFace whichWall, Resolution res, GLTexture texture ) : AABBFaceMesh
gi NewTOAPIA.GL.GraphicsInterface
roomSize Vector3D The size of the room
whichWall AABBFace Which wall of the room are we creating
res Resolution The Resolution of the mesh, meaning, the number of rows and columns of quads to create.
texture NewTOAPIA.GL.GLTexture
return AABBFaceMesh

PositionWall() public method

public PositionWall ( AABBFace whichFace ) : void
whichFace AABBFace
return void

Render() public method

public Render ( GraphicsInterface GI ) : void
GI NewTOAPIA.GL.GraphicsInterface
return void