C# 클래스 ShowIt.AABBSurface

A class that allows us to easily assign different textures to each surface. The surfaces are named as well.
상속: IRenderable
파일 보기 프로젝트 열기: Wiladams/NewTOAPIA 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

AABBSurface() 공개 메소드

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

AABBSurface() 공개 메소드

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
리턴 System.Collections.Generic

AddWalls() 공개 메소드

public AddWalls ( ) : void
리턴 void

GetWall() 공개 메소드

public GetWall ( AABBFace whichWall ) : AABBFaceMesh
whichWall AABBFace
리턴 AABBFaceMesh

Render() 공개 메소드

public Render ( GraphicsInterface gi ) : void
gi NewTOAPIA.GL.GraphicsInterface
리턴 void

SetWallTexture() 공개 메소드

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