C# Class Axiom.Components.Paging.Grid2PageStrategy

Page strategy which loads new pages based on a regular 2D grid.
The grid can be up to 65536 x 65536 cells in size. PageIDs are generated like this: (row * 65536) + col. The grid is centred around the grid origin, such that the boundaries of the cell around that origin are [-CellSize/2, CellSize/2)
Inheritance: Axiom.Components.Paging.PageStrategy
Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Méthodes publiques

Méthode Description
CreateData ( ) : IPageStrategyData

DestroyData ( IPageStrategyData data ) : void

GetPageID ( Axiom.Math.Vector3 worldPos, PagedWorldSection section ) : PageID

Grid2PageStrategy ( PageManager manager ) : System

Page strategy which loads new pages based on a regular 2D grid.

The grid can be up to 65536 x 65536 cells in size. PageIDs are generated like this: (row * 65536) + col. The grid is centred around the grid origin, such that the boundaries of the cell around that origin are [-CellSize/2, CellSize/2)

NotifyCamera ( Camera cam, PagedWorldSection section ) : void

UpdateDebugDisplay ( Page p, SceneNode sn ) : void

Method Details

CreateData() public méthode

public CreateData ( ) : IPageStrategyData
Résultat IPageStrategyData

DestroyData() public méthode

public DestroyData ( IPageStrategyData data ) : void
data IPageStrategyData
Résultat void

GetPageID() public méthode

public GetPageID ( Axiom.Math.Vector3 worldPos, PagedWorldSection section ) : PageID
worldPos Axiom.Math.Vector3
section PagedWorldSection
Résultat PageID

Grid2PageStrategy() public méthode

Page strategy which loads new pages based on a regular 2D grid.
The grid can be up to 65536 x 65536 cells in size. PageIDs are generated like this: (row * 65536) + col. The grid is centred around the grid origin, such that the boundaries of the cell around that origin are [-CellSize/2, CellSize/2)
public Grid2PageStrategy ( PageManager manager ) : System
manager PageManager
Résultat System

NotifyCamera() public méthode

public NotifyCamera ( Camera cam, PagedWorldSection section ) : void
cam Axiom.Core.Camera
section PagedWorldSection
Résultat void

UpdateDebugDisplay() public méthode

public UpdateDebugDisplay ( Page p, SceneNode sn ) : void
p Page
sn Axiom.Core.SceneNode
Résultat void