IrrSetRenderTarget

section index

## NAME

IrrSetRenderTarget - Creates a render target texture.

## SYNOPSIS

IrrSetRenderTarget(*targetTexture.l, clearBackbuffer.l, clearZBuffer.l, red.l, green.l, blue.l)

## INPUTS

*targetTexture.l | - | a Pointer (as Result of IrrCreateRenderTargetTexture() )
clearBackbuffer.l | - | Specifies if the back buffer should be cleared, which means that the screen is filled with a color specified with the parameter color. If this parameter is false, the back buffer will not be cleared and the color parameter is ignored.
clearZBuffer.l | - | Specifies if the depth or z buffer should be cleared. It is not nesesarry to do so, if only 2d drawing is used.
red.l | - | RedValue for clearing Background
green.l | - | GreenValue for clearing Background
blue.l | - | BlueValue for clearing Background

## FUNCTION

Creates a render target texture.

## RESULT

Returns a pointer to the created texture or 0 if the texture could not be created. If you no longer need the image, you should call IrrDropPointer().

## EXAMPLE

        There is a complete Example of using the RenderTarget. Please study it.

## NOTES