MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / loadTextureFromImage

Function loadTextureFromImage

src/textures/index.ts:100–105  ·  view source on GitHub ↗
(imageHandle: number)

Source from the content-addressed store, hash-verified

98}
99
100export 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
107export function genTextureMipmaps(texture: Texture): void {
108 bloom_gen_texture_mipmaps(texture.id);

Callers

nothing calls this directly

Calls 3

bloom_get_texture_widthFunction · 0.50
bloom_get_texture_heightFunction · 0.50

Tested by

no test coverage detected