C# Class ShowIt.AABBSurface

A class that allows us to easily assign different textures to each surface. The surfaces are named as well.
Inheritance: IRenderable
Show file Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Methods

Method Description
AABBSurface ( GraphicsInterface gi, Vector3D roomSize ) : System.Collections.Generic
AABBSurface ( GraphicsInterface gi, Vector3D roomSize, Vector3D translation, Resolution res ) : System.Collections.Generic

Construct a cube of the given size. Initially, the cube starts as a unit cube, being 1 unit in all directions, with its center located at the origin (0,0,0). The scaling is applied, then the translation. This way, you can specify a solid rectangular volume of any dimension and put it anywhere in the scene.

AddWalls ( ) : void
GetWall ( AABBFace whichWall ) : AABBFaceMesh
Render ( GraphicsInterface gi ) : void
SetWallTexture ( AABBFace whichWall, GLTexture texture ) : void

Method Details

AABBSurface() public method

public AABBSurface ( GraphicsInterface gi, Vector3D roomSize ) : System.Collections.Generic
gi NewTOAPIA.GL.GraphicsInterface
roomSize Vector3D
return System.Collections.Generic

AABBSurface() public method

Construct a cube of the given size. Initially, the cube starts as a unit cube, being 1 unit in all directions, with its center located at the origin (0,0,0). The scaling is applied, then the translation. This way, you can specify a solid rectangular volume of any dimension and put it anywhere in the scene.
public AABBSurface ( GraphicsInterface gi, Vector3D roomSize, Vector3D translation, Resolution res ) : System.Collections.Generic
gi NewTOAPIA.GL.GraphicsInterface
roomSize Vector3D
translation Vector3D A vector describing the translation
res Resolution
return System.Collections.Generic

AddWalls() public method

public AddWalls ( ) : void
return void

GetWall() public method

public GetWall ( AABBFace whichWall ) : AABBFaceMesh
whichWall AABBFace
return AABBFaceMesh

Render() public method

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

SetWallTexture() public method

public SetWallTexture ( AABBFace whichWall, GLTexture texture ) : void
whichWall AABBFace
texture NewTOAPIA.GL.GLTexture
return void