Texture2DProvider
new Texture2DProvider() is an invalid constructor. If you need a 2D texture, you can get a texture by calling TextureUtil.createTexture2D()
| Type | Name | Interface Description |
|---|---|---|
| Variables | alphaPremul: boolean | • Function: Whether to initialize the memory data for transparency premultiplication. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.Texture2DProvider();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use Texture2DProvider here
}
onUpdate(deltaTime: number) {
}
}