(imageHandle: number)
| 98 | } |
| 99 | |
| 100 | export function loadTextureFromImage(imageHandle: number): Texture { |
| 101 | const id = bloom_load_texture_from_image(imageHandle); |
| 102 | const width = bloom_get_texture_width(id); |
| 103 | const height = bloom_get_texture_height(id); |
| 104 | return { id, width, height }; |
| 105 | } |
| 106 | |
| 107 | export function genTextureMipmaps(texture: Texture): void { |
| 108 | bloom_gen_texture_mipmaps(texture.id); |
nothing calls this directly
no test coverage detected