This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
engine_info [2019/04/22 00:13] – created korshun | engine_info [2019/04/22 05:57] – [IsOpenGL] korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
ACSUtils provides functions to identify the exact source port (ZDoom, GZDoom, Zandronum) and renderer (software, OpenGL). | ACSUtils provides functions to identify the exact source port (ZDoom, GZDoom, Zandronum) and renderer (software, OpenGL). | ||
Line 5: | Line 5: | ||
===== Identifying source port ===== | ===== Identifying source port ===== | ||
- | ==== Detection | + | ==== Detection |
The detection module first checks for presence of [[zan> | The detection module first checks for presence of [[zan> | ||
Line 38: | Line 38: | ||
Returns true if the port is Zandronum or a derivative. | Returns true if the port is Zandronum or a derivative. | ||
+ | ==== GetPortName ==== | ||
+ | '' | ||
+ | Returns the name of the source port as a string, one of ''" | ||
+ | |||
+ | === Example usage === | ||
+ | |||
+ | < | ||
+ | print(s:" | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Identifying renderer ===== | ||
+ | |||
+ | ==== IsOpenGL ==== | ||
+ | '' | ||
+ | |||
+ | Returns true if the engine is currently running in an OpenGL renderer. | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | ==== Detection method ==== | ||
+ | |||
+ | This function first calls '' | ||
+ | |||
+ | If the port is confirmed to be a GZDoom derivative, this function checks for two CVars: '' | ||
+ | |||
+ | The result is not cached in any way, because the renderer can be changed mid-game. | ||
+ | |||
+ | <note important> | ||