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

Function loadTexture

src/textures/index.ts:28–33  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

26}
27
28export 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
35export function unloadTexture(texture: Texture): void {
36 bloom_unload_texture(texture.id);

Callers

nothing calls this directly

Calls 3

bloom_load_textureFunction · 0.50
bloom_get_texture_widthFunction · 0.50
bloom_get_texture_heightFunction · 0.50

Tested by

no test coverage detected