WoW:API RestartGx: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 3: Line 3:
Requests the graphics engine to restart.
Requests the graphics engine to restart.


  RestartGx();
  RestartGx()


----
----
Line 17: Line 17:
----
----
;''Example''
;''Example''
   SetCVar("gxResolution","1024x768");
   SetCVar("gxResolution","1024x768")
   RestartGx();
   RestartGx()


;''Result''
;''Result''
  ''-- Graphical engine is restarted in 1024x760 resolution.''
  ''-- Graphical engine is restarted in 1024x768 resolution.''


----
----

Revision as of 17:04, 30 May 2009

WoW API < RestartGx

Requests the graphics engine to restart.

RestartGx()

Arguments
none

Returns
none

Example
 SetCVar("gxResolution","1024x768")
 RestartGx()
Result
-- Graphical engine is restarted in 1024x768 resolution.

Description
Primarily necessary for editing various display settings on the fly. Will not circumvent options that request you restart WoW for them to take effect.