IrrAnimSpriteLoad

section index

## NAME

IrrAnimSpriteLoad - Load Image/Texture for AnimSprite

## SYNOPSIS

IrrAnimSpriteLoad(*animNode.l, filename.s, Ax.l, Ay.l, Aw.l, Ah.l, frmWidth.l, frmHeight.l, [useClrKey.l] )

## FUNCTION

Load a Image or Texture that should be used with this AnimSprite. You can use als a anim-strip and define the frame-Width and Height.

## INPUTS

*animNode.l | - | a valid pointer to a AnimSpriteSceneNode (created before with IrrAddAnimSprite())
filename.s | - | Name of the File
Ax.l,Ay.l,Aw.l,Ah.l | - | define the Rect of the Image, that should be used with this AnimSprite.
frmWidth.l, frmHeight.l | - | define the Size of a Frame in the Image (Rect).
useClrKey.l | - | (optional) Use ColorKey (#True / #False)

## RESULT

#True if success, otherwise #False

## EXAMPLE

       IrrAnimSpriteLoad(*animspritenode, ".\media\animation.png" , 0,0,512,128,128,128)