dxSetTestMode
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This function is used for testing scripts written using guiCreateFont, dxCreateFont, dxCreateShader and dxCreateRenderTarget.
Syntax
bool dxSetTestMode ( string testMode )Required Arguments
- testMode: MISSING_PARAM_DESC
Returns
- bool: value
Returns true if the test mode was successfully set, false otherwise.
Code Examples
shared
With this example you can use /setmode command to set the test mode.
local testValues = { ["none"] = true, ["no_mem"] = true, ["low_mem"] = true, ["no_shader"] = true}
function testmode( cmd, value ) if testValues[value] then dxSetTestMode( value ) outputChatBox( "Test mode set to " .. value .. ".", 220, 175, 20, false ) else outputChatBox( "Invalid test mode entered.", 245, 20, 20, false ) endendaddCommandHandler( "setmode", testmode )See Also
Drawing Functions
- dxConvertPixels
- dxCreateFont
- dxCreateRenderTarget
- dxCreateScreenSource
- dxCreateShader
- dxCreateTexture
- dxDrawCircle
- dxDrawImage
- dxDrawImageSection
- dxDrawLine
- dxDrawLine3D
- dxDrawMaterialLine3D
- dxDrawMaterialPrimitive
- dxDrawMaterialPrimitive3D
- dxDrawMaterialSectionLine3D
- dxDrawModel3D
- dxDrawPrimitive
- dxDrawPrimitive3D
- dxDrawRectangle
- dxDrawText
- dxDrawWiredSphere
- dxGetBlendMode
- dxGetFontHeight
- dxGetMaterialSize
- dxGetPixelColor
- dxGetPixelsFormat
- dxGetPixelsSize
- dxGetStatus
- dxGetTextSize
- dxGetTexturePixels
- dxGetTextWidth
- dxIsAspectRatioAdjustmentEnabled
- dxSetAspectRatioAdjustmentEnabled
- dxSetBlendMode
- dxSetPixelColor
- dxSetRenderTarget
- dxSetShaderTessellation
- dxSetShaderTransform
- dxSetShaderValue
- dxSetTestMode
- dxSetTextureEdge
- dxSetTexturePixels
- dxUpdateScreenSource