Graphics::getScreenResolution: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
int screenresx,screenresy;<br>GET_SCREEN_RESOLUTION(&amp;screenresx,&amp;screenresy);
int screenresx,screenresy;<br>GET_SCREEN_RESOLUTION(&amp;screenresx,&amp;screenresy);
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">graphics.getScreenResolution(x, y);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.graphics.getScreenResolution(x, y);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''x:''' int
*'''x:''' int
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]]

Revision as of 21:13, 6 May 2017

int screenresx,screenresy;
GET_SCREEN_RESOLUTION(&screenresx,&screenresy);

Syntax

mp.game.graphics.getScreenResolution(x, y);

Required Arguments

  • x: int
  • y: int

Return value

  • object: x, y

Example

// todo

See also