|
The iluGetImageInfo function retrieves information about the current image in an ILinfo struct. This is useful when you are repeatedly calling ilGetInteger and is more efficient in this case.
| ILvoid iluGetImageInfo( ILinfo* Info );
|
Parameters | - Info
- ILinfo struct to receive the image information.
|
ILInfo structure | - SizeOfData
- ILuint which contains the image size of data in bytes
- Bpp
- ILubyte which contains the image Bytes per pixel (not bits)
- Depth
- ILuint which contains the image depth
- Format
- ILuint which contains the image format
- Height
- ILuint which contains the image height
- NumLayers
- ILenum which contains the image number of layer
- NumMips
- ILenum which contains the number of image mipmaps
- NumNext
- ILenum which contains the number of image following the current
- Origin
- ILenum which contains the image origin
- PalSize
- ILenum which contains the image palette size
- PalType
- ILenum which contains the image palette type
- Type
- ILenum which contains the image type
- Width
- ILuint which contains the image width
|
Errors | - ILU_ILLEGAL_OPERATION
- The operation attempted is not allowable in the current state. The function returns with no ill side effects. Generally there is currently no image bound or it has been deleted via ilDeleteImages. You should use ilGenImages and ilBindImage before calling the function.
|
See Also
|