DxSetTestMode: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client function}} __NOTOC__ {{New feature|3.0110|1.1| Only available in 1.1 }} This function is used for testing scripts written using guiCreateFont, dxCreateFont, [[dx...")
 
No edit summary
Line 1: Line 1:
{{Client function}}
{{Client function}}
__NOTOC__
__NOTOC__
{{New feature|3.0110|1.1|
Only available in 1.1
}}
This function is used for testing scripts written using [[guiCreateFont]], [[dxCreateFont]], [[dxCreateShader]] and [[dxCreateRenderTarget]]
This function is used for testing scripts written using [[guiCreateFont]], [[dxCreateFont]], [[dxCreateShader]] and [[dxCreateRenderTarget]]



Revision as of 17:36, 31 August 2011

This function is used for testing scripts written using guiCreateFont, dxCreateFont, dxCreateShader and dxCreateRenderTarget

Each one of the 3 test modes should be used in turn to help highlight any potential problems.

Syntax

bool dxSetTestMode ( string testMode )

Required Arguments

  • testMode : The test mode to be set. It can be one of the following values:
    • none : Test mode disabled
    • no_mem: Simulate no free video memory available for MTA.
    • low_mem: Simulate little free video memory available for MTA.
    • no_shader: Simulate shaders failing validation.

Returns

Returns true if the test mode was successfully set, false otherwise.

Example


See Also