This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| functions:isopengl [2017/03/17 20:17] – korshun | functions:isopengl [2019/08/26 00:46] (current) – removed korshun | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== IsOpenGL ====== | ||
| - | '' | ||
| - | {{tag> | ||
| - | |||
| - | ===== Description ===== | ||
| - | Returns true if the OpenGL renderer is being used by the client, false if software. | ||
| - | |||
| - | When used serverside, this function always returns true and emits a [[ProgramError]]. | ||
| - | |||
| - | It works by checking the following conditions: | ||
| - | - The mod is being played in a GZDoom-based port (see [[IsGZDoom]]). | ||
| - | - '' | ||
| - | - '' | ||
| - | |||
| - | Only if all three checks pass, the function returns true. | ||
| - | |||
| - | <note important> | ||
| - | This function will return an incorrect value if '' | ||
| - | </ | ||