Scene

Scene object.

Constructors

this
this()
Undocumented in source.

Public Imports

tida.shape
public import tida.shape, tida.vector;
tida.vector
public import tida.shape, tida.vector;

Members

Functions

add
void add(T instance, size_t threadID)

Adds an instance to the scene for interpreting its actions.

add
void add(Instance[] instances, size_t threadID)

Adds multiple instances at a time.

getAssortedInstances
Instance[] getAssortedInstances()

Returns a assorted list of instances.

getInstanceByClass
T getInstanceByClass()

Returns an object by its instance inheritor.

getInstanceByMask
Instance getInstanceByMask(Shapef shape, Vecf position)

Returns instance(-s) by its mask.

getInstanceByName
Instance getInstanceByName(string name)

Returns an instance by name.

getInstanceByNameTag
Instance getInstanceByNameTag(string name, string tag)

Returns an instance by name and tag.

getInstancesByMask
Instance[] getInstancesByMask(Shapef shape, Vecf position)

Returns instance(-s) by its mask.

getThreadList
Instance[] getThreadList(size_t index)

Returns a buffer of instances from the thread.

hasInstance
bool hasInstance(Instance instance)

Whether this instance is on the list.

initThread
void initThread(size_t count)

Creates an instance buffer for the thread.

instanceDestroy
void instanceDestroy(Instance instance, bool isRemoveHandle)

Removes an instance from the list and, if a delete method is specified in the template, from memory.

instanceDestroy
void instanceDestroy()

Destroys an instance from the scene or from memory, depending on the template argument, by its class.

isThreadExists
bool isThreadExists(size_t index)

Is there such a thread buffer.

sort
void sort()

Sort list of instances.

sortClear
void sortClear()

Clear sorted list of instances.

worldCollision
void worldCollision()

Checks instances for collisions.

Properties

list
Instance[] list [@property getter]

Returns a list of instances.

Variables

bufferThread
Instance[][] bufferThread;
Undocumented in source.
camera
Camera camera;

Camera scene

erentInstances
Instance[] erentInstances;
Undocumented in source.
instances
Instance[] instances;
Undocumented in source.
isInit
bool isInit;
Undocumented in source.
name
string name;

Scene name

Meta