DxGetStatus: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 22: | Line 22: | ||
*'''SettingDrawDistance :''' The draw distance setting. (0-100) | *'''SettingDrawDistance :''' The draw distance setting. (0-100) | ||
*'''SettingVolumetricShadows :''' The volumetric shadows setting. (true/false) | *'''SettingVolumetricShadows :''' The volumetric shadows setting. (true/false) | ||
*'''SettingStreamingVideoMemoryForGTA :''' The usable graphics memory setting. ( | *'''SettingStreamingVideoMemoryForGTA :''' The usable graphics memory setting. (64-256) | ||
*'''AllowScreenUpload :''' The allows screen uploads setting. (true/false) | *'''AllowScreenUpload :''' The allows screen uploads setting. (true/false) | ||
Revision as of 00:01, 3 September 2012
This function gets information about various internal datum
Syntax
table dxGetStatus ()
Returns
Returns a table with the following entries:
- TestMode : The current dx test mode. See dxSetTestMode.
- VideoCardName : The name of the graphics card.
- VideoCardRAM : The installed memory in MB of the graphics card.
- VideoCardPSVersion : The maximum pixel shader version of the graphics card.
- VideoMemoryFreeForMTA : The amount of memory in MB available for MTA to use. When this gets to zero, guiCreateFont, dxCreateFont and dxCreateRenderTarget will fail.
- VideoMemoryUsedByFonts : The amount of graphic memory in MB used by custom fonts.
- VideoMemoryUsedByTextures : The amount of graphic memory in MB used by textures.
- VideoMemoryUsedByRenderTargets : The amount of graphic memory in MB used by render targets.
- SettingWindowed : The windowed setting. (true/false)
- SettingFXQuality : The FX Quality. (0-3)
- SettingDrawDistance : The draw distance setting. (0-100)
- SettingVolumetricShadows : The volumetric shadows setting. (true/false)
- SettingStreamingVideoMemoryForGTA : The usable graphics memory setting. (64-256)
- AllowScreenUpload : The allows screen uploads setting. (true/false)
Example
addCommandHandler("getinfo",function() local info=dxGetStatus() for k,v in pairs(info) do outputChatBox(k.." : "..tostring(v),root,255,0,0,true) end end)
See Also
- 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