Class DisplayListSystem
Collects and sorts entities by camera, and readies them for rendering.
Rendering and hit testing do not consider changes made to entities after
the display list is created.
Inheritance
System.Object
DisplayListSystem
Syntax
public class DisplayListSystem : ComponentSystem
Fields
dlMakerReg
Declaration
protected static List<IExternalDisplayListEntryMaker> dlMakerReg
Field Value
groupMain
Declaration
protected EntityQuery groupMain
Field Value
Type |
Description |
EntityQuery |
|
Methods
AddItemsToListByType(IExternalDisplayListEntryMaker, DisplayListCamera, Camera2D, DynamicBuffer<DisplayListEntry>, DynamicBuffer<SortedEntity>)
Declaration
protected void AddItemsToListByType(IExternalDisplayListEntryMaker dlm, DisplayListCamera dlc, Camera2D c2d, DynamicBuffer<DisplayListEntry> dest, DynamicBuffer<SortedEntity> destSorted)
Parameters
AddLayerFilter(ref EntityQueryBuilder, Camera2D)
Declaration
protected void AddLayerFilter(ref EntityQueryBuilder query, Camera2D c2d)
Parameters
Type |
Name |
Description |
EntityQueryBuilder |
query |
|
Camera2D |
c2d |
|
BoundsAreOutside(Rect, float4x4, float2)
Declaration
public static bool BoundsAreOutside(Rect r, float4x4 m, float2 unitSize)
Parameters
Type |
Name |
Description |
Rect |
r |
|
float4x4 |
m |
|
float2 |
unitSize |
|
Returns
Type |
Description |
System.Boolean |
|
ClipBitsNorm(float2, float2)
Declaration
protected static int ClipBitsNorm(float2 p, float2 unitSize)
Parameters
Type |
Name |
Description |
float2 |
p |
|
float2 |
unitSize |
|
Returns
Type |
Description |
System.Int32 |
|
DeRegisterExternalDisplayListEntryMaker(Int32)
Declaration
public static void DeRegisterExternalDisplayListEntryMaker(int typeIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
typeIndex |
|
FinishDisplayListEntry(ref DisplayListEntry, ref DisplayListCamera, ref LocalToWorld, ref PrivateTransformData, Boolean)
Declaration
protected bool FinishDisplayListEntry(ref DisplayListEntry de, ref DisplayListCamera dlc, ref LocalToWorld tx, ref PrivateTransformData ptd, bool doNotClip)
Parameters
Returns
Type |
Description |
System.Boolean |
|
OnCreate()
Declaration
protected override void OnCreate()
OnDestroy()
Declaration
protected override void OnDestroy()
OnUpdate()
Declaration
protected override void OnUpdate()
RegisterDisplayListEntryMaker(IExternalDisplayListEntryMaker)
Declaration
public static void RegisterDisplayListEntryMaker(IExternalDisplayListEntryMaker m)
Parameters
SetCameraLayerComponent<T>(Int32)
Declaration
public void SetCameraLayerComponent<T>(int layerIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
layerIndex |
|
Type Parameters
SortExternal(Void*, Void*, Int32)
Declaration
protected static void SortExternal(void *sortedEntities, void *groups, int n)
Parameters
Type |
Name |
Description |
System.Void* |
sortedEntities |
|
System.Void* |
groups |
|
System.Int32 |
n |
|
UpdateOneDisplayListCamera(Entity, ref Camera2D, ref DisplayListCamera, ref LocalToWorld, Single)
Declaration
protected int UpdateOneDisplayListCamera(Entity e, ref Camera2D cam, ref DisplayListCamera dlcCam, ref LocalToWorld tx, float primaryAspect)
Parameters
Returns
Type |
Description |
System.Int32 |
|