SiliconGhetto Engine API
    Preparing search index...

    Function loadTexture

    • Load a texture from a URL and register it with an ID for later use.

      Parameters

      • id: string

        Unique string ID to reference this texture

      • url: string

        URL of the image file to load

      Returns Promise<void>

      await sg.loadTexture('hero', 'assets/hero.png');