C# Класс 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)
Наследование: Axiom.Components.Paging.PageStrategy
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

CreateData() публичный Метод

public CreateData ( ) : IPageStrategyData
Результат IPageStrategyData

DestroyData() публичный Метод

public DestroyData ( IPageStrategyData data ) : void
data IPageStrategyData
Результат void

GetPageID() публичный Метод

public GetPageID ( Axiom.Math.Vector3 worldPos, PagedWorldSection section ) : PageID
worldPos Axiom.Math.Vector3
section PagedWorldSection
Результат PageID

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)
public Grid2PageStrategy ( PageManager manager ) : System
manager PageManager
Результат System

NotifyCamera() публичный Метод

public NotifyCamera ( Camera cam, PagedWorldSection section ) : void
cam Axiom.Core.Camera
section PagedWorldSection
Результат void

UpdateDebugDisplay() публичный Метод

public UpdateDebugDisplay ( Page p, SceneNode sn ) : void
p Page
sn Axiom.Core.SceneNode
Результат void