IrrAddTextureFromImage

section index

## NAME

IrrAddTextureFromImage - Create a Texture from an Irrlicht Image

## SYNOPSIS

IrrAddTextureFromImage( TextureName.s , *ptr2IrrlichtImage )

## FUNCTION

Creates a Texture from an Irrlicht Image. Later calls of IrrGetTexture() with this name will return this texture.

## INPUTS

TextureName.s | - | Texture Name to identify our Texture.
*ptr2irrlichtImage | - | Pointer to the Source Irrlicht Image

## RESULT

Pointer to the Texture

## EXAMPLE

       *iTex = IrrAddTextureFromImage("Mytexture_"+str(id),*IImage)
       IrrSetNodeMaterialTexture(*myNode,*iTex,0)

## NOTES

For a practical Usage see Example's 31 and 32