Function _IrrCreateRenderTargetTexture

au3Irr2

au3Irr2 Function Reference

_IrrCreateRenderTargetTexture

Create a texture that is suitable for the scene manager to use as a surface to which it can render its 3d object.

#Include <au3Irrlicht2.au3>
_IrrCreateRenderTargetTexture($i_XSize, $i_YSize)

 

Parameters

$i_XSize Width of the texture
$i_YSize Height of the texture

 

Return Value

Success: Handle to an irrlicht texture object
Failure: False and @error 1

 

Remarks

Each of the dimentions must be of a power of two for example 128x128 or 256x256.
This function is very important when producing texture maps for special effects for example a rendering of a model for a 2D image displayed in the HUD,
the rendering of a model for display on a 3D surface for example a video display of virtual camera, the rendering of the texture for the reflection of a mirror,
the rendering of the environment for use in a water or chrome shader.
Most cards, even old cards, will support this very important function.

 

Related

[todo: functionName, functionName]