(path: string)
| 26 | } |
| 27 | |
| 28 | export function loadTexture(path: string): Texture { |
| 29 | const id = bloom_load_texture(path as any); |
| 30 | const width = bloom_get_texture_width(id); |
| 31 | const height = bloom_get_texture_height(id); |
| 32 | return { id, width, height }; |
| 33 | } |
| 34 | |
| 35 | export function unloadTexture(texture: Texture): void { |
| 36 | bloom_unload_texture(texture.id); |
nothing calls this directly
no test coverage detected