This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
renderer_identification [2019/08/26 00:43] – [IsOpenGL] korshun | renderer_identification [2019/08/26 00:55] (current) – removed korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Renderer identification ====== | ||
- | |||
- | ===== Introduction ===== | ||
- | |||
- | You can identify whether the software or OpenGL renderer is currently being used by using the '' | ||
- | |||
- | <note warning> | ||
- | **Things not to do:** | ||
- | * don't just check '' | ||
- | * don't just check for '' | ||
- | * don't just use [[source_port_identification|IsGZDoom]] and assume that if the engine is GZDoom, the user is playing in OpenGL renderer. | ||
- | * don't check the renderer serverside -- the server has no renderer. | ||
- | |||
- | Nonetheless, | ||
- | </ | ||
- | |||
- | ===== IsOpenGL ===== | ||
- | |||
- | '' | ||
- | |||
- | If called serverside, '' | ||
- | |||
- | <note important> | ||
- | This function will return an incorrect value if '' | ||
- | </ | ||
- | |||
- | |||
- | ===== How it works ===== | ||
- | |||
- | First, '' | ||
- | |||
- | Then '' | ||
- | |||
- | Then, '' | ||
- | |||
- | And only then '' | ||
- | |||