EngineRemoveShaderFromWorldTexture: Difference between revisions
Jump to navigation
Jump to search
m (moved EngineRemoveShaderFromModel to EngineRemoveShaderFromWorldTexture: Function change) |
No edit summary |
||
Line 4: | Line 4: | ||
Only available in 1.1 | Only available in 1.1 | ||
}} | }} | ||
This function removes a [[shader]] from one | This function removes a [[shader]] from one or more world textures. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool | bool engineRemoveShaderFromWorldTexture ( element shader, string textureName ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''shader:''' The shader which is to be removed | *'''shader:''' The shader which is to be removed | ||
*'''textureName :''' The name of the world texture to remove the shader from. It should be exactly the same string as used with [[engineApplyShaderToWorldTexture]] when the shader was initially applied | |||
*'''textureName :''' The name of the texture | |||
===Returns=== | ===Returns=== | ||
Returns ''true'' if the shader was successfully removed | Returns ''true'' if the shader was successfully removed, ''false'' otherwise. | ||
==Example== | ==Example== | ||
This example will remove a previously created shader from the "des_logwall" texture | This example will remove a previously created shader from the "des_logwall" world texture | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
engineRemoveShaderFromWorldTexture ( myShader, "des_logwall" ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 19:06, 20 July 2011
Only available in 1.1 This function removes a shader from one or more world textures.
Syntax
bool engineRemoveShaderFromWorldTexture ( element shader, string textureName )
Required Arguments
- shader: The shader which is to be removed
- textureName : The name of the world texture to remove the shader from. It should be exactly the same string as used with engineApplyShaderToWorldTexture when the shader was initially applied
Returns
Returns true if the shader was successfully removed, false otherwise.
Example
This example will remove a previously created shader from the "des_logwall" world texture
engineRemoveShaderFromWorldTexture ( myShader, "des_logwall" )
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
- dxConvertPixels
- dxCreateFont
- dxCreateRenderTarget
- dxCreateScreenSource
- dxCreateShader
- dxCreateTexture
- dxDrawCircle
- dxDrawImage
- dxDrawImageSection
- dxDrawLine
- dxDrawLine3D
- dxDrawMaterialLine3D
- dxDrawMaterialPrimitive
- dxDrawMaterialPrimitive3D
- dxDrawMaterialSectionLine3D
- dxDrawPrimitive
- dxDrawPrimitive3D
- dxDrawRectangle
- dxDrawText
- dxDrawWiredSphere
- dxGetBlendMode
- dxGetFontHeight
- dxGetMaterialSize
- dxGetPixelColor
- dxGetPixelsSize
- dxGetPixelsFormat
- dxGetStatus
- dxGetTextSize
- dxGetTextWidth
- dxGetTexturePixels
- dxIsAspectRatioAdjustmentEnabled
- dxSetAspectRatioAdjustmentEnabled
- dxSetBlendMode
- dxSetPixelColor
- dxSetRenderTarget
- dxSetShaderValue
- dxSetShaderTessellation
- dxSetShaderTransform
- dxSetTestMode
- dxSetTextureEdge
- dxSetTexturePixels
- dxUpdateScreenSource