au3Irr2 Function Reference
_IrrGetTextureInformationGet information of a texture. The width, height, pitch and color format is returned in an array.
#Include <au3Irrlicht2.au3>
_IrrGetTextureInformation($h_Texture)
Parameters
$h_Texture | Handle to an irrlicht texture object |
Return Value
Success: 1D Array with the information$Array[0] = Width of the texture
$Array[1] = Height of the texture
$Array[2] = Pitch of the texture
$Array[3] = Color Reference of the texture (e.g.: $ECF_A1R5G5B5, $ECF_R5G6B5, $ECF_R8G8B8, $ECF_A8R8G8B8)
Failure: Empty Array and Sets @error to 1
Remarks
This function cannot be used for image objects. For this, use _IrrGetImageInformation instead.
Related
_IrrGetTexture, _IrrGetImageInformation
Example
#include <au3Irrlicht2.au3>
_IrrStart()
Local $hLogo = _IrrGetTexture("./media/Cross.bmp")
Local $aInfo = _IrrGetTextureInformation($hLogo)
If Not @error Then MsgBox(64, "Texture Information", "Width: " & $aInfo[0] & @LF & _
"Height: " & $aInfo[1] & @LF & "Pitch: " & $aInfo[2] & @LF & _
"Color Format: " & $aInfo[3])
_IrrStop()