DxGetStatus: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:
{{New feature/item|4.0133|1.3.2|4715|
{{New feature/item|4.0133|1.3.2|4715|
*'''DepthBufferFormat:''' The format of the shader readable depth buffer, or 'unknown' if not available
*'''DepthBufferFormat:''' The format of the shader readable depth buffer, or 'unknown' if not available
}}
{{New feature/item|4.0133|1.3.2|4811|
*'''VideoCardMaxAnisotropy:''' The maximum anisotropic filtering available. (0-4 which respectively mean: off,2x,4x,8x,16x)
*'''SettingAnisotropicFiltering:''' The anisotropic filtering setting. (0-4 which respectively mean: off,2x,4x,8x,16x)
*'''SettingAntiAliasing:''' The anti-aliasing setting. (0-3 which respectively mean: off,1x,2x,3x)
*'''SettingHeatHaze:''' The heat haze setting. (true/false)
*'''SettingGrassEffect:''' The grass effect setting. (true/false)
*'''Setting32BitColor:''' The color depth of the screen. (false is 16bit, true is 32bit)
}}
}}
==Example==  
==Example==  
Line 36: Line 44:
end)
end)
</syntaxhighlight>
</syntaxhighlight>
==Changelog==
{{ChangelogHeader}}
{{ChangelogItem|1.3.0-9.04715|Added DepthBufferFormat argument}}
{{ChangelogItem|1.3.0-9.04811|Added VideoCardMaxAnisotropy, SettingAnisotropicFiltering, SettingAntiAliasing,<br> SettingHeatHaze, SettingAnisotropicFiltering, SettingGrassEffect, Setting32BitColor}}


==See Also==
==See Also==
{{Drawing_functions}}
{{Drawing_functions}}

Revision as of 06:52, 27 November 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)
ADDED/UPDATED IN VERSION 1.3.2 r4715:
  • DepthBufferFormat: The format of the shader readable depth buffer, or 'unknown' if not available
ADDED/UPDATED IN VERSION 1.3.2 r4811:
  • VideoCardMaxAnisotropy: The maximum anisotropic filtering available. (0-4 which respectively mean: off,2x,4x,8x,16x)
  • SettingAnisotropicFiltering: The anisotropic filtering setting. (0-4 which respectively mean: off,2x,4x,8x,16x)
  • SettingAntiAliasing: The anti-aliasing setting. (0-3 which respectively mean: off,1x,2x,3x)
  • SettingHeatHaze: The heat haze setting. (true/false)
  • SettingGrassEffect: The grass effect setting. (true/false)
  • Setting32BitColor: The color depth of the screen. (false is 16bit, true is 32bit)

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)

Changelog

Version Description
1.3.0-9.04715 Added DepthBufferFormat argument
1.3.0-9.04811 Added VideoCardMaxAnisotropy, SettingAnisotropicFiltering, SettingAntiAliasing,
SettingHeatHaze, SettingAnisotropicFiltering, SettingGrassEffect, Setting32BitColor

See Also