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
Show file Open project: WolfgangSt/axiom Class Usage Examples

Public Methods

Method 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 method

public CreateData ( ) : IPageStrategyData
return IPageStrategyData

DestroyData() public method

public DestroyData ( IPageStrategyData data ) : void
data IPageStrategyData
return void

GetPageID() public method

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

Grid2PageStrategy() public method

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
return System

NotifyCamera() public method

public NotifyCamera ( Camera cam, PagedWorldSection section ) : void
cam Axiom.Core.Camera
section PagedWorldSection
return void

UpdateDebugDisplay() public method

public UpdateDebugDisplay ( Page p, SceneNode sn ) : void
p Page
sn Axiom.Core.SceneNode
return void