메소드 | 설명 | |
---|---|---|
Draw ( |
||
DrawBox ( |
||
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 |
public Draw ( |
||
gameTime | ||
device | GraphicsDevice | |
effect | ||
eyePos | Vector3 | |
viewMatrix | Matrix | |
worldMatrix | Matrix | |
projectionMatrix | Matrix | |
lightDirection | Vector3 | |
리턴 | void |
public DrawBox ( |
||
gameTime | ||
device | GraphicsDevice | |
effect | ||
eyePos | Vector3 | |
viewMatrix | Matrix | |
worldMatrix | Matrix | |
projectionMatrix | Matrix | |
lightDirection | Vector3 | |
리턴 | void |
public LoadContent ( GraphicsDevice device ) : void | ||
device | GraphicsDevice | |
리턴 | void |
public SetDataFromCells ( TerrainEngine.Terrain cells, int xofs, int yofs, int stride ) : void | ||
cells | TerrainEngine.Terrain | |
xofs | int | |
yofs | int | |
stride | int | |
리턴 | void |
public SetTransformMatrix ( Matrix worldMatrix ) : void | ||
worldMatrix | Matrix | |
리턴 | void |
public TerrainTile ( int width, int height, Vector3 offset, float scale ) : System | ||
width | int | |
height | int | |
offset | Vector3 | |
scale | float | |
리턴 | System |
public UpdateHeights ( GraphicsDevice device ) : void | ||
device | GraphicsDevice | |
리턴 | void |
public UpdateShadeTexture ( Color dummydata ) : void | ||
dummydata | Color | |
리턴 | void |