API:Settings.HardwareSupportsPostProc
From RoR Wiki
UI Lua API · Interface functions
Version: WAR 1.4.8
Returns whether the client can offer the post-processing graphics option.
supported = Settings.HardwareSupportsPostProc()
Arguments
None.
Returns
- supported
boolean–trueif post-processing is supported.
Details
- The result is
trueonly when two graphics capability flags that the client sets at startup are both set and the client is not the Mac version (see IsMacClient). On the Mac version it is alwaysfalse. - The function lives in the
Settingstable, so it is called asSettings.HardwareSupportsPostProc. - Arguments are not checked; anything passed is ignored.
- The stock performance window hides its post-processing check box when this returns anything other than
true.
Errors
None.
Example
From ea_customizeperformancewindow/source/ea_customizeperformancewindow.lua:
if(Settings.HardwareSupportsPostProc() ~= true) then
WindowSetShowing("EA_Window_CustomizePerformanceEnablePostProcess", false);
end
