SiliconGhetto Engine API
    Preparing search index...

    Function drawSprite

    • Draw a textured sprite at a given position and size.

      Parameters

      • textureId: string

        The texture ID previously loaded with loadTexture

      • x: number

        X position of the top-left corner

      • y: number

        Y position of the top-left corner

      • w: number

        Display width in pixels

      • h: number

        Display height in pixels

      Returns void