Свойство | Type | Description | |
---|---|---|---|
BBox | BoundingBox | ||
ChunkSize | IntSize3 | ||
UseBigUnknownChunk | bool | ||
s_cubeFaceInfo | CubeFaceInfo[] |
Méthode | Description | |
---|---|---|
Chunk ( |
||
CreateCube ( IntVector3 p, Direction visibleFaces, |
||
CreateUndefinedChunk ( IntGrid3 &viewGrid, IntGrid3 &chunkGrid, VertexList |
||
DrawTerrain ( GraphicsDevice device ) : void | ||
DrawTrees ( GraphicsDevice device ) : void | ||
FillVoxelMap ( ) : void | ||
Free ( ) : void | ||
GenerateVertices ( IntGrid3 &viewGrid, Direction visibleChunkFaces, VertexList |
||
GenerateVertices ( IntGrid3 &viewGrid, IntVector3 cameraChunkPos, VertexList |
||
GetOcclusionsForFace ( IntVector3 p, DirectionOrdinal face, int &o0, int &o1, int &o2, int &o3 ) : void | ||
GetTextures ( IntVector3 p, |
||
GetVoxelDebug ( IntVector3 mp ) : string | ||
HandleVoxel ( IntVector3 p, |
||
ScanForAllEmptyOrUndefined ( ) : void | ||
UpdateSceneryVertexBuffer ( GraphicsDevice device, VertexList |
||
UpdateVertexBuffer ( GraphicsDevice device, VertexList |
||
UpdateVoxel ( IntVector3 mp ) : void |
Méthode | Description | |
---|---|---|
Chunk ( ) : System | ||
CreateFaceInfo ( Direction normalDir, Direction upDir, Direction rightDir ) : CubeFaceInfo | ||
GetGridSliceDirections ( IntGrid3 &grid, IntGrid3 &viewGrid ) : Direction |
Directions of faces which are revealed due to ViewGrid
|
|
GetVisibleFaces ( IntVector3 p ) : Direction | ||
GetVoxelSliceDirections ( IntVector3 p, IntGrid3 &viewGrid ) : Direction |
Directions of faces which are revealed due to ViewGrid
|
|
HandleTree ( VertexList |
||
IsBlocker ( IntVector3 p ) : bool |
public Chunk ( |
||
map | ||
chunkPosition | IntVector3 | |
Résultat | System |
public CreateCube ( IntVector3 p, Direction visibleFaces, |
||
p | IntVector3 | |
visibleFaces | Direction | |
baseTexture | ||
topTexture | ||
vertexList | VertexList |
|
sliceFaces | Direction | |
Résultat | void |
public CreateUndefinedChunk ( IntGrid3 &viewGrid, IntGrid3 &chunkGrid, VertexList |
||
viewGrid | IntGrid3 | |
chunkGrid | IntGrid3 | |
vertexList | VertexList |
|
visibleChunkFaces | Direction | |
Résultat | void |
public DrawTerrain ( GraphicsDevice device ) : void | ||
device | GraphicsDevice | |
Résultat | void |
public DrawTrees ( GraphicsDevice device ) : void | ||
device | GraphicsDevice | |
Résultat | void |
public GenerateVertices ( IntGrid3 &viewGrid, Direction visibleChunkFaces, VertexList |
||
viewGrid | IntGrid3 | |
visibleChunkFaces | Direction | |
terrainVertexList | VertexList |
|
sceneryVertexList | VertexList |
|
Résultat | void |
public GenerateVertices ( IntGrid3 &viewGrid, IntVector3 cameraChunkPos, VertexList |
||
viewGrid | IntGrid3 | |
cameraChunkPos | IntVector3 | |
terrainVertexList | VertexList |
|
sceneryVertexList | VertexList |
|
Résultat | void |
public GetOcclusionsForFace ( IntVector3 p, DirectionOrdinal face, int &o0, int &o1, int &o2, int &o3 ) : void | ||
p | IntVector3 | |
face | DirectionOrdinal | |
o0 | int | |
o1 | int | |
o2 | int | |
o3 | int | |
Résultat | void |
public GetTextures ( IntVector3 p, |
||
p | IntVector3 | |
vox | ||
baseTexture | ||
topTexture | ||
sliceFaces | Direction | |
Résultat | void |
public GetVoxelDebug ( IntVector3 mp ) : string | ||
mp | IntVector3 | |
Résultat | string |
public HandleVoxel ( IntVector3 p, |
||
p | IntVector3 | |
vox | ||
viewGrid | IntGrid3 | |
visibleChunkFaces | Direction | |
vertexList | VertexList |
|
Résultat | void |
public ScanForAllEmptyOrUndefined ( ) : void | ||
Résultat | void |
public UpdateSceneryVertexBuffer ( GraphicsDevice device, VertexList |
||
device | GraphicsDevice | |
vertexList | VertexList |
|
Résultat | void |
public UpdateVertexBuffer ( GraphicsDevice device, VertexList |
||
device | GraphicsDevice | |
vertexList | VertexList |
|
Résultat | void |
public UpdateVoxel ( IntVector3 mp ) : void | ||
mp | IntVector3 | |
Résultat | void |