HU/dxGetStatus: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client function hu}} __NOTOC__ This function gets information about various internal datum ==Szintaxis== <syntaxhighlight lang="lua"> table dxGetStatus ( ) </syntaxhighlig...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Client function hu}}
{{Client function hu}}
__NOTOC__
__NOTOC__
This function gets information about various internal datum
Ez a függvény különböző belső adatokról ad vissza információkat.


==Szintaxis==  
==Szintaxis==  
Line 9: Line 9:


===Visszatérési érték===
===Visszatérési érték===
Returns a table with the following entries:
Visszaad egy táblát a következő elemekkel:
* '''TestMode :''' The current dx test mode. See [[dxSetTestMode]].
* '''TestMode :''' Az aktuális dx teszt módja. Lásd [[dxSetTestMode]].
*'''VideoCardName :''' The name of the graphics card.
*'''VideoCardName :''' A videókártya neve.
*'''VideoCardRAM :''' The installed memory in MB of the graphics card.
*'''VideoCardRAM :''' A videókártya beépített memóriája MB-ben.
*'''VideoCardPSVersion :''' The maximum pixel shader version of the graphics card.
*'''VideoCardPSVersion :''' The maximum pixel shader version of the graphics card.
*'''VideoCardNumRenderTargets:''' The maximum number of simultaneous render targets a shader can use.
*'''VideoCardNumRenderTargets:''' The maximum number of simultaneous render targets a shader can use.
*'''VideoCardMaxAnisotropy:''' The maximum anisotropic filtering available. (0-4 which respectively mean: off,2x,4x,8x,16x)
*'''VideoCardMaxAnisotropy:''' The maximum anisotropic filtering available. (0-4 which respectively mean: off,2x,4x,8x,16x)
*'''VideoMemoryFreeForMTA :''' The amount of memory in MB available for MTA to use. '''When this gets to zero, [[guiCreateFont]], [[dxCreateFont]] and [[dxCreateRenderTarget]] will fail.'''
*'''VideoMemoryFreeForMTA :''' Az MTA számára elérhető memória mennyisége MB-ben. '''Ha ez eléri a nullát, akkor a [[guiCreateFont]], [[dxCreateFont]] és a [[dxCreateRenderTarget]] nem fog működni.'''
*'''VideoMemoryUsedByFonts :''' The amount of graphic memory in MB used by custom fonts.
*'''VideoMemoryUsedByFonts :''' The amount of graphic memory in MB used by custom fonts.
*'''VideoMemoryUsedByTextures :''' The amount of graphic memory in MB used by textures.
*'''VideoMemoryUsedByTextures :''' The amount of graphic memory in MB used by textures.
Line 40: Line 40:
*'''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
*'''UsingDepthBuffer:''' ''true'' if the depth buffer is used, ''false'' otherwise
*'''UsingDepthBuffer:''' ''true'' if the depth buffer is used, ''false'' otherwise
==Példa==
==Példa==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
Line 67: Line 68:


[[en:dxGetStatus]]
[[en:dxGetStatus]]
==Fordította==
'''2018.11.28.''' <font size="3">'''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''</font>

Latest revision as of 12:55, 28 November 2018

Ez a függvény különböző belső adatokról ad vissza információkat.

Szintaxis

table dxGetStatus ( )

Visszatérési érték

Visszaad egy táblát a következő elemekkel:

  • TestMode : Az aktuális dx teszt módja. Lásd dxSetTestMode.
  • VideoCardName : A videókártya neve.
  • VideoCardRAM : A videókártya beépített memóriája MB-ben.
  • VideoCardPSVersion : The maximum pixel shader version of the graphics card.
  • VideoCardNumRenderTargets: The maximum number of simultaneous render targets a shader can use.
  • VideoCardMaxAnisotropy: The maximum anisotropic filtering available. (0-4 which respectively mean: off,2x,4x,8x,16x)
  • VideoMemoryFreeForMTA : Az MTA számára elérhető memória mennyisége MB-ben. Ha ez eléri a nullát, akkor a guiCreateFont, dxCreateFont és a dxCreateRenderTarget nem fog működni.
  • 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)
  • SettingFullScreenStyle : Display style when in full screen mode. (0-2 which respectively mean: Standard, Borderless window, Borderless keep res)
  • 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)
  • 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)
  • SettingHUDMatchAspectRatio: The hud match aspect ratio setting (true/false)
  • SettingAspectRatio: The aspect ratio setting ("auto", "4:3", "16:10", "16:9")
  • SettingFOV: The FOV setting
  • SettingHighDetailVehicles: High detail vehicles setting (true/false).
  • AllowScreenUpload : The allows screen uploads setting. (true/false)
  • DepthBufferFormat: The format of the shader readable depth buffer, or 'unknown' if not available
  • UsingDepthBuffer: true if the depth buffer is used, false otherwise

Példa

addCommandHandler( "getinfo",
	function( )
		local info = dxGetStatus( )
		for k, v in pairs( info ) do
			outputChatBox( k .. " : " .. tostring( v ) )
		end
	end
)

Changelog

Version Description
1.3.0-9.04715 Added DepthBufferFormat argument
1.3.0-9.04811 Added VideoCardMaxAnisotropy, SettingAnisotropicFiltering, SettingAntiAliasing,
SettingHeatHaze, SettingGrassEffect and Setting32BitColor arguments
1.3.4-9.05731 Added SettingHUDMatchAspectRatio and SettingAspectRatio
1.4.1-9.07181 Added SettingFOV
1.4.1-9.07310 Added VideoCardNumRenderTargets
1.5.2-9.07816 Added UsingDepthBuffer
1.5.3-9.11199 Added SettingHighDetailVehicles
1.5.5-9.11814 Added SettingFullScreenStyle
Fixed SettingWindowed

Lásd még

Fordította

2018.11.28. Surge