Difference between revisions of "GLAPI/glIsShader"

From OpenGL.org
Jump to: navigation, search
m (Bot: Adding better formatting.)
m (Bot: Adding better formatting.)
 
Line 35: Line 35:
 
== See Also ==
 
== See Also ==
  
{{apifunc|glAttachShader}}, {{apifunc|glCompileShader}}, {{apifunc|glCreateShader}}, {{apifunc|glDeleteShader}}, {{apifunc|glDetachShader}}, {{apifunc|glLinkProgram}}, {{apifunc|glShaderSource}}
+
{{apifunc|glCreateShader}}, {{apifunc|glDeleteShader}}
  
 
== Copyright ==
 
== Copyright ==

Latest revision as of 15:41, 27 September 2012

glIsShader
Core in version 4.5
Core since version 2.0

glIsShader: Determines if a name corresponds to a shader object

Function Definition

 GLboolean glIsShader(GLuint shader​);
shader
Specifies a potential shader object.

Description

glIsShader returns GL_TRUE if shader​ is the name of a shader object previously created with glCreateShader and not yet deleted with glDeleteShader. If shader​ is zero or a non-zero value that is not the name of a shader object, or if an error occurs, glIsShader returns GL_FALSE.

Notes

No error is generated if shader​ is not a valid shader object name.

A shader object marked for deletion with glDeleteShader but still attached to a program object is still considered a shader object and glIsShader will return GL_TRUE.

Associated Gets

glGetAttachedShaders with a valid program object

glGetShader with arguments shader​ and a parameter to be queried

glGetShaderInfoLog with argument object​

glGetShaderSource with argument object​

See Also

glCreateShader, glDeleteShader

Copyright

Copyright © 2003-2005 3Dlabs Inc. Ltd. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.