Module PLATE.RT
A pool of used / available render targets.
Module Overview
Functions
| Assign(ent) | Assigns a Render Target to an entity. |
| Release(ent) | Releases the RT from an entity back into the pool. |
| Create() | Creates a new RT. |
| Get(ent) | Gets the RT name assigned to a given entity. |
| GetTexture(ent) | Gets the RT assigned to a given entity, creating it, if it doesn't exist. |
| GetMaterial(ent) | Gets the material assigned to a given entity, creating it, if it doesn't exist. |
- Assign(ent)
-
Assigns a Render Target to an entity.
Parameters:
- ent Entity Entity to assign.
Returns:
-
string
Assigned RT Name.
- Release(ent)
-
Releases the RT from an entity back into the pool.
Parameters:
- ent Entity Entity to release.
- Create()
- Creates a new RT.
- Get(ent)
-
Gets the RT name assigned to a given entity.
Parameters:
- ent Entity Entity to get.
Returns:
-
optional string
Name of the Material,
- GetTexture(ent)
-
Gets the RT assigned to a given entity, creating it, if it doesn't exist.
Parameters:
- ent Entity Entity to get.
Returns:
-
ITexture
- GetMaterial(ent)
-
Gets the material assigned to a given entity, creating it, if it doesn't exist.
Parameters:
- ent Entity Entity to get.
Returns:
-
IMaterial