IrrTextureLock

section index

## NAME

IrrTextureLock - Lock function.

## SYNOPSIS

IrrTextureLock(*Texture)

## INPUTS

*Texture | - | A Pointer to a Texture

## FUNCTION

Lock function. Locks the Texture and returns a pointer to access the pixels. After IrrTextureLock() has been called and all operations on the pixels are done, you must call IrrTextureUnlock(). Returns a pointer to the pixel data. The format of the pixel can be determinated by using IrrTextureGetColorFormat(). #Null is returned, if the texture cannot be locked.

## RESULT

A Pointer to the Texture-Data if success, otherwise #Null