This is an old revision of the document!
You can identify whether the software or OpenGL renderer is currently being used by using IsOpenGL
from ACSUtils.
GetCVar(“vid_renderer”)
– the user may also have gl_nogl
set to true.vid_renderer
and gl_nogl
– the user may be playing in ZDoom, which doesn't have the OpenGL renderer. IsOpenGL
in a variable – the renderer can change mid-game.
bool IsOpenGL()
– returns true if the mod is being played in the OpenGL renederer, false if software renderer.
IsOpenGL
in a variable. Instead, simply call it every time.