This commit is contained in:
Akko
2025-08-04 18:57:35 +02:00
parent 8cf6e78a79
commit 9495868c2e
5030 changed files with 518594 additions and 17609 deletions

View File

@@ -0,0 +1,12 @@
import type { ICanvas } from '../../../environment/canvas/ICanvas';
import type { Texture } from '../../../rendering/renderers/shared/texture/Texture';
/**
* Takes an image and creates a texture from it, using a power of 2 texture from the texture pool.
* Remember to return the texture when you don't need it any more!
* @param image - The image to create a texture from
* @param width - the frame width of the texture
* @param height - the frame height of the texture
* @param resolution - The resolution of the texture
* @returns - The texture
*/
export declare function getPo2TextureFromSource(image: HTMLImageElement | HTMLCanvasElement | ICanvas, width: number, height: number, resolution: number): Texture;