IrrCreateRenderTargetTexture

section index

## NAME

IrrCreateRenderTargetTexture - Creates a render target texture.

## SYNOPSIS

IrrCreateRenderTargetTexture(width.l, height.l)

## INPUTS

width.l, height.l | - | Size of the texture, in pixels. Width and height should be a power of two (for example 64, 128, 256, 512, ...) and it should not be bigger than the backbuffer, because it shares the zbuffer with the screen buffer.

## 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