new CanvTex(ecs, x)
Parameters:
Name | Type | Description |
---|---|---|
ecs |
ECS | |
x |
x | x-singleton {options, ...} |
- Source:
Members
iffall
Properties:
Name | Type | Description |
---|---|---|
iffall |
array | query condition: {iffall: ['Visual', 'Dynatex', 'Obj3']} |
- Source:
Methods
(static) init(x, entities)
Create text planes. Each plane is rendered with xshader colorArray.
Parameters:
Name | Type | Description |
---|---|---|
x |
x | x-singleton {options, ...} |
entities |
array.<{Entity}> |
- Source:
(static) setext(e, txt)
Set new text to entity.
Parameters:
Name | Type | Description |
---|---|---|
e |
Entity | |
txt |
String |
- Source:
update(tick, entities)
Update texture of canvas if Dynatex.dirty is true;
If the Dynatex.lookScreen is true, also turn it to facing screen.
This update checking will dynamically update canvas visual results.
Parameters:
Name | Type | Description |
---|---|---|
tick |
int | |
entities |
Array.<Entity> |
- Source: