ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:isopengl

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
functions:isopengl [2017/04/15 17:25] korshunfunctions:isopengl [2019/08/26 03:46] (current) – removed korshun
Line 1: Line 1:
-====== IsOpenGL ====== 
-{{tag>info needs_examples}} 
-''bool IsOpenGL()'' 
- 
-===== 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]]). 
-  - ''vid_renderer'' is true. 
-  - ''gl_nogl'' is false. 
- 
-Only if all three checks pass, the function returns true. 
- 
-<note important> 
-This function will return an incorrect value if ''vid_renderer'' or ''gl_nogl'' is changed mid-game because the renderer only actually switches after restart, but the values of the cvars change immediately.  
-</note> 
  
functions/isopengl.1492266351.txt.gz · Last modified: 2017/04/15 17:25 by korshun