C# 클래스 TerrainEngine.TerrainTile

파일 보기 프로젝트 열기: geofftnz/TestBench1 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( GameTime gameTime, GraphicsDevice device, Effect effect, Vector3 eyePos, Matrix viewMatrix, Matrix worldMatrix, Matrix projectionMatrix, Vector3 lightDirection ) : void
DrawBox ( GameTime gameTime, GraphicsDevice device, Effect effect, Vector3 eyePos, Matrix viewMatrix, Matrix worldMatrix, Matrix projectionMatrix, Vector3 lightDirection ) : void
IsInBox ( Vector3 p ) : bool
LoadContent ( GraphicsDevice device ) : void
SetDataFromCells ( TerrainEngine.Terrain cells, int xofs, int yofs, int stride ) : void
SetTransformMatrix ( Matrix worldMatrix ) : void

Creates the transform and inv-transform matrices.

Setup ( GraphicsDevice device ) : void
TerrainTile ( int width, int height, Vector3 offset, float scale ) : System
UpdateHeights ( GraphicsDevice device ) : void
UpdateShadeTexture ( Color dummydata ) : void

보호된 메소드들

메소드 설명
LoadContent ( ) : void

Upload textures

UnloadContent ( ) : void

비공개 메소드들

메소드 설명
CreateHeightTexture ( GraphicsDevice device ) : void
CreateNormalTexture ( GraphicsDevice device ) : void

Creates the normal texture for this tile.

CreateShadeTexture ( GraphicsDevice device ) : void
RenderBoundingBox ( GraphicsDevice device ) : void
RenderTile ( GraphicsDevice device ) : void
SetupBoundingBox ( ) : void
SetupTestData ( ) : void
UpdateHeightTexture ( ) : void

메소드 상세

Draw() 공개 메소드

public Draw ( GameTime gameTime, GraphicsDevice device, Effect effect, Vector3 eyePos, Matrix viewMatrix, Matrix worldMatrix, Matrix projectionMatrix, Vector3 lightDirection ) : void
gameTime Microsoft.Xna.Framework.GameTime
device GraphicsDevice
effect Microsoft.Xna.Framework.Graphics.Effect
eyePos Vector3
viewMatrix Matrix
worldMatrix Matrix
projectionMatrix Matrix
lightDirection Vector3
리턴 void

DrawBox() 공개 메소드

public DrawBox ( GameTime gameTime, GraphicsDevice device, Effect effect, Vector3 eyePos, Matrix viewMatrix, Matrix worldMatrix, Matrix projectionMatrix, Vector3 lightDirection ) : void
gameTime Microsoft.Xna.Framework.GameTime
device GraphicsDevice
effect Microsoft.Xna.Framework.Graphics.Effect
eyePos Vector3
viewMatrix Matrix
worldMatrix Matrix
projectionMatrix Matrix
lightDirection Vector3
리턴 void

IsInBox() 공개 메소드

public IsInBox ( Vector3 p ) : bool
p Vector3
리턴 bool

LoadContent() 보호된 메소드

Upload textures
protected LoadContent ( ) : void
리턴 void

LoadContent() 공개 메소드

public LoadContent ( GraphicsDevice device ) : void
device GraphicsDevice
리턴 void

SetDataFromCells() 공개 메소드

public SetDataFromCells ( TerrainEngine.Terrain cells, int xofs, int yofs, int stride ) : void
cells TerrainEngine.Terrain
xofs int
yofs int
stride int
리턴 void

SetTransformMatrix() 공개 메소드

Creates the transform and inv-transform matrices.
public SetTransformMatrix ( Matrix worldMatrix ) : void
worldMatrix Matrix
리턴 void

Setup() 공개 메소드

public Setup ( GraphicsDevice device ) : void
device GraphicsDevice
리턴 void

TerrainTile() 공개 메소드

public TerrainTile ( int width, int height, Vector3 offset, float scale ) : System
width int
height int
offset Vector3
scale float
리턴 System

UnloadContent() 보호된 메소드

protected UnloadContent ( ) : void
리턴 void

UpdateHeights() 공개 메소드

public UpdateHeights ( GraphicsDevice device ) : void
device GraphicsDevice
리턴 void

UpdateShadeTexture() 공개 메소드

public UpdateShadeTexture ( Color dummydata ) : void
dummydata Color
리턴 void