C# Класс ShowIt.AABBSurface

A class that allows us to easily assign different textures to each surface. The surfaces are named as well.
Наследование: IRenderable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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