CanvasTextureAllocator
class CanvasTextureAllocator extends TextureAllocatorThis allocator issues texture backed by a canvas. You can draw on to that canvas to soruce each texture.
Constructor
new CanvasTextureAllocator() → {}Summary
Methods from CanvasTextureAllocator
| TextureSlab | Creates a texture slab backed by a canvas. | 
Properties inherited from TextureAllocator
| number | The height of texture slabs. | 
| number | The width of texture slabs. | 
| TextureSlab[] | The list of base-textures that are used to allocate texture space. | 
Methods inherited from TextureAllocator
| T | Allocates a texture from this allocator. | 
| void |  | 
| T | Creates a texture on the given base-texture at  | 
| T | Issues a texture from the given texture slab, if possible. | 
Protected Methods
protected createSlab() → {TextureSlab}Creates a texture slab backed by a canvas.
| Type | Description | 
|---|---|
| TextureSlab |