EngineLoadIMG: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Added example, removed invalid note) |
||
Line 3: | Line 3: | ||
__NOTOC__ | __NOTOC__ | ||
{{New feature/item|4|1.6.0|21708|This function loads an IMG container into GTA.}} | {{New feature/item|4|1.6.0|21708|This function loads an IMG container into GTA.}} | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">img engineLoadIMG( string img_file )</syntaxhighlight> | <syntaxhighlight lang="lua"> | ||
img engineLoadIMG ( string img_file ) | |||
</syntaxhighlight> | |||
{{OOP||[[DFF|EngineIMG]]}} | {{OOP||[[DFF|EngineIMG]]}} | ||
===Required Arguments=== | ===Required Arguments=== | ||
Line 13: | Line 14: | ||
===Returns=== | ===Returns=== | ||
Returns an [[IMG]] element if the [[IMG]] file loaded, ''false'' otherwise. | Returns an [[IMG]] element if the [[IMG]] file loaded, ''false'' otherwise. | ||
===Examples=== | |||
This example loads IMG file from directory and then prints number of files in it | |||
<syntaxhighlight lang="lua"> | |||
local img = engineLoadIMG('file.img') | |||
iprint('Number of files: ',#engineImageGetFiles(img)) | |||
</syntaxhighlight> | |||
==See Also== | ==See Also== |
Revision as of 18:15, 10 April 2023
Syntax
img engineLoadIMG ( string img_file )
OOP Syntax Help! I don't understand this!
- Method: EngineIMG(...)
Required Arguments
Returns
Returns an IMG element if the IMG file loaded, false otherwise.
Examples
This example loads IMG file from directory and then prints number of files in it
local img = engineLoadIMG('file.img') iprint('Number of files: ',#engineImageGetFiles(img))
See Also
- engineAddImage
- engineApplyShaderToWorldTexture
- engineFreeModel
- engineGetModelFlags
- engineGetModelIDFromName
- engineGetModelLODDistance
- engineGetModelNameFromID
- engineGetModelPhysicalPropertiesGroup
- engineGetModelTextureNames
- engineGetModelTextures
- engineGetModelTXDID
- engineGetModelVisibleTime
- engineGetObjectGroupPhysicalProperty
- engineGetSurfaceProperties
- engineGetVisibleTextureNames
- engineImageGetFilesCount
- engineImageGetFiles
- engineImageGetFile
- engineImageLinkDFF
- engineImageLinkTXD
- engineImportTXD
- engineLoadCOL
- engineLoadDFF
- engineLoadIMG
- engineLoadIFP
- engineLoadTXD
- engineRemoveImage
- engineRemoveShaderFromWorldTexture
- engineReplaceAnimation
- engineReplaceCOL
- engineReplaceModel
- engineRequestModel
- engineResetModelFlags
- engineResetModelLODDistance
- engineResetSurfaceProperties
- engineRestoreAnimation
- engineRestoreCOL
- engineRestoreDFFImage
- engineRestoreModel
- engineRestoreModelPhysicalPropertiesGroup
- engineRestoreObjectGroupPhysicalProperties
- engineRestoreTXDImage
- engineRestreamWorld
- engineSetAsynchronousLoading
- engineSetModelFlag
- engineSetModelFlags
- engineSetModelLODDistance
- engineSetModelPhysicalPropertiesGroup
- engineSetModelVisibleTime
- engineSetObjectGroupPhysicalProperty
- engineSetSurfaceProperties
- engineStreamingFreeUpMemory
- engineStreamingGetUsedMemory