ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


engine_info

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
engine_info [2019/04/22 00:24] – [IsOpenGL] korshunengine_info [2019/04/22 00:25] – [IsOpenGL] korshun
Line 65: Line 65:
 If the port is confirmed to be a GZDoom derivative, this function checks for two CVars: ''vid_renderer'' and ''gl_nogl''. This function only returns true if ''vid_renderer'' is true and ''gl_nogl'' is false. If the port is confirmed to be a GZDoom derivative, this function checks for two CVars: ''vid_renderer'' and ''gl_nogl''. This function only returns true if ''vid_renderer'' is true and ''gl_nogl'' is false.
  
-=== Caching === +The result is not cached in any way, because the renderer can be changed mid-game.
- +
-As with source port identification, the result is cached in a map variable. +
- +
  
 +<note important>Do not save the result in a variable yourself. Always call ''IsOpenGL'' to check for the renderer.</note>