GlIsEnabled

From QB64 Phoenix Edition Wiki
Revision as of 06:03, 1 May 2022 by SMcNeill (talk | contribs) (Created page with "'''_glIsEnabled, glIsEnabledi:''' test whether a capability is enabled {{PageSyntax}} FUNCTION _glIsEnabled~%% (BYVAL cap AS _UNSIGNED LONG) GLboolean '''_glIsEnabled'''(GLenum {{Parameter|cap}}); GLboolean '''_glIsEnabledi'''(GLenum {{Parameter|cap}}, GLuint {{Parameter|index}}); ; cap : Specifies a symbolic constant indicating a GL capability. ; index : Specifies the index of the capability. {{PageDescription}} '''_glIsEnabled''' returns {{KW|_GL_TRUE}} i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

_glIsEnabled, glIsEnabledi: test whether a capability is enabled


Syntax

 FUNCTION _glIsEnabled~%% (BYVAL cap AS _UNSIGNED LONG)
 GLboolean _glIsEnabled(GLenum cap);
 GLboolean _glIsEnabledi(GLenum cap, GLuint index);
cap
Specifies a symbolic constant indicating a GL capability.
index
Specifies the index of the capability.


Description

_glIsEnabled returns Template:KW if cap is an enabled capability and returns Template:KW otherwise. Boolean states that are indexed may be tested with _glIsEnabledi. For _glIsEnabledi, index specifies the index of the capability to test. index must be between zero and the count of indexed capabilities for cap. Initially all capabilities except Template:KW are disabled; Template:KW is initially enabled.

The following capabilities are accepted for cap:


Constant See
Template:KW Template:KW, Template:KW
Template:KWi Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW, Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW, Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW
Template:KW Template:KW, Template:KW
Template:KW Template:KW



Template:PageNotes

If an error is generated, _glIsEnabled and _glIsEnabledi return Template:KW.

Template:KW and Template:KW are available only if the GL version is 4.3 or greater.


Template:PageErrors

Template:KW is generated if cap is not an accepted value.

Template:KW is generated by _glIsEnabledi if index is outside the valid range for the indexed state cap.


See also

SUB _GL Template:KW, Template:KW, Template:KW


Template:PageCopyright

Copyright 1991-2006 Silicon Graphics, Inc. Copyright 2010-2011 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.