Graphics::getTextureResolution: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Returns the texture resolution of the passed texture dict+name.<br><br>Note: Most texture resolutions are doubled compared to the console version of the game.
Returns the texture resolution of the passed texture dict+name.<br><br>Note: Most texture resolutions are doubled compared to the console version of the game.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">graphics.getTextureResolution(textureDict, textureName);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.graphics.getTextureResolution(textureDict, textureName);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''textureDict:''' String
*'''textureDict:''' String
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Graphics_function_c}}
{{Graphics_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:13, 6 May 2017

Returns the texture resolution of the passed texture dict+name.

Note: Most texture resolutions are doubled compared to the console version of the game.

Syntax

mp.game.graphics.getTextureResolution(textureDict, textureName);

Required Arguments

  • textureDict: String
  • textureName: String

Return value

  • Vector3

Example

// todo

See also