Gambas Documentation
Application Repository
Code Snippets
Compilation & Installation
Components
gb
gb.args
gb.cairo
gb.chart
gb.clipper
gb.complex
gb.compress
gb.crypt
gb.data
gb.db
gb.db.form
gb.db.mysql
gb.db.odbc
gb.db.postgresql
gb.db.sqlite2
gb.db.sqlite3
gb.dbus
gb.dbus.trayicon
gb.debug
gb.desktop
gb.desktop.gnome.keyring
gb.desktop.x11
gb.eval
gb.eval.highlight
gb.form
gb.form.dialog
gb.form.editor
gb.form.htmlview
gb.form.mdi
gb.form.print
gb.form.stock
gb.form.terminal
gb.gmp
gb.gsl
gb.gtk
gb.gtk.opengl
gb.gtk3
gb.gtk3.opengl
gb.gtk3.webview
gb.gui
gb.gui.opengl
gb.gui.qt
gb.gui.qt.ext
gb.gui.qt.opengl
gb.gui.qt.webkit
gb.gui.trayicon
gb.gui.webview
gb.hash
gb.highlight
gb.image
gb.image.effect
gb.image.imlib
gb.image.io
gb.inotify
gb.jit
gb.libxml
gb.logging
gb.map
gb.markdown
gb.media
gb.media.form
gb.memcached
gb.mime
gb.mongodb
gb.mysql
gb.ncurses
gb.net
gb.net.curl
gb.net.pop3
gb.net.smtp
gb.openal
gb.opengl
gb.opengl.glsl
Gl
ACTIVE_ATTRIBUTE_MAX_LENGTH
ACTIVE_ATTRIBUTES
ACTIVE_UNIFORM_MAX_LENGTH
ACTIVE_UNIFORMS
ATTACHED_SHADERS
AttachShader
BindAttribLocation
COMPILE_STATUS
CompileShader
CreateProgram
CreateShader
CURRENT_PROGRAM
DELETE_STATUS
DeleteProgram
DeleteShader
DetachShader
FRAGMENT_SHADER
GetAttachedShaders
GetProgramInfoLog
GetProgramiv
GetShaderInfoLog
GetShaderiv
GetShaderSource
GetUniformLocation
INFO_LOG_LENGTH
IsProgram
IsShader
LINK_STATUS
LinkProgram
SHADER_SOURCE_LENGTH
SHADER_TYPE
ShaderSource
Uniform1f
Uniform1fv
Uniform1i
Uniform1iv
Uniform2f
Uniform2fv
Uniform2i
Uniform2iv
Uniform3f
Uniform3fv
Uniform3i
Uniform3iv
Uniform4f
Uniform4fv
Uniform4i
Uniform4iv
UniformMatrix2fv
UniformMatrix2x3fv
UniformMatrix2x4fv
UniformMatrix3fv
UniformMatrix3x2fv
UniformMatrix3x4fv
UniformMatrix4fv
UniformMatrix4x2fv
UniformMatrix4x3fv
UseProgram
VALIDATE_STATUS
ValidateProgram
VERTEX_SHADER
VertexAttrib1f
VertexAttrib1fv
VertexAttrib2f
VertexAttrib2fv
VertexAttrib3f
VertexAttrib3fv
VertexAttrib4f
VertexAttrib4fv
gb.opengl.glu
gb.opengl.sge
gb.openssl
gb.option
gb.pcre
gb.pdf
gb.poppler
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.qt4.webview
gb.qt5
gb.qt5.ext
gb.qt5.opengl
gb.qt5.webkit
gb.qt5.webview
gb.qt6
gb.qt6.ext
gb.qt6.opengl
gb.qt6.webview
gb.report
gb.report2
gb.scanner
gb.sdl
gb.sdl.sound
gb.sdl2
gb.sdl2.audio
gb.settings
gb.signal
gb.term
gb.test
gb.util
gb.util.web
gb.v4l
gb.vb
gb.web
gb.web.feed
gb.web.form
gb.web.gui
gb.xml
gb.xml.html
gb.xml.rpc
gb.xml.xslt
Controls pictures
Deprecated components
Developer Documentation
Development Environment Documentation
Documents
Error Messages
Gambas Playground
How To's
Language Index
Language Overviews
Last Changes
Lexicon
README
Search the wiki
To Do
Topics
Tutorials
Wiki License
Wiki Manual

Gl.GetProgramiv (gb.opengl.glsl)

Static Function GetProgramiv ( Program As Integer, Pname As Integer ) As Integer[]

Parameters

program

Specifies the program object to be queried.
pname

Specifies the object parameter. Accepted symbolic names are Gl.DELETE_STATUS, Gl.LINK_STATUS, Gl.VALIDATE_STATUS, Gl.INFO_LOG_LENGTH, Gl.ATTACHED_SHADERS, Gl.ACTIVE_ATTRIBUTES, Gl.ACTIVE_ATTRIBUTE_MAX_LENGTH, Gl.ACTIVE_UNIFORMS, Gl.ACTIVE_UNIFORM_BLOCKS, Gl.ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH, Gl.ACTIVE_UNIFORM_MAX_LENGTH, Gl.TRANSFORM_FEEDBACK_BUFFER_MODE, Gl.TRANSFORM_FEEDBACK_VARYINGS, Gl.TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH, Gl.GEOMETRY_VERTICES_OUT, Gl.GEOMETRY_INPUT_TYPE, and Gl.GEOMETRY_OUTPUT_TYPE.
params

Returns the requested object parameter.

Description

Gl.GetProgram returns in params the value of a parameter for a specific program object. The following parameters are defined:
Gl.DELETE_STATUS

params returns Gl.TRUE if program is currently flagged for deletion, and Gl.FALSE otherwise.
Gl.LINK_STATUS

params returns Gl.TRUE if the last link operation on program was successful, and Gl.FALSE otherwise.
Gl.VALIDATE_STATUS

params returns Gl.TRUE or if the last validation operation on program was successful, and Gl.FALSE otherwise.
Gl.INFO_LOG_LENGTH

params returns the number of characters in the information log for program including the null termination character (i.e., the size of the character buffer required to store the information log). If program has no information log, a value of 0 is returned.
Gl.ATTACHED_SHADERS

params returns the number of shader objects attached to program.
Gl.ACTIVE_ATTRIBUTES

params returns the number of active attribute variables for program.
Gl.ACTIVE_ATTRIBUTE_MAX_LENGTH

params returns the length of the longest active attribute name for program, including the null termination character (i.e., the size of the character buffer required to store the longest attribute name). If no active attributes exist, 0 is returned.
Gl.ACTIVE_UNIFORMS

params returns the number of active uniform variables for program.
Gl.ACTIVE_UNIFORM_MAX_LENGTH

params returns the length of the longest active uniform variable name for program, including the null termination character (i.e., the size of the character buffer required to store the longest uniform variable name). If no active uniform variables exist, 0 is returned.
Gl.TRANSFORM_FEEDBACK_BUFFER_MODE

params returns a symbolic constant indicating the buffer mode used when transform feedback is active. This may be Gl.SEPARATE_ATTRIBS or Gl.INTERLEAVED_ATTRIBS.
Gl.TRANSFORM_FEEDBACK_VARYINGS

params returns the number of varying variables to capture in transform feedback mode for the program.
Gl.TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH

params returns the length of the longest variable name to be used for transform feedback, including the null-terminator.
Gl.GEOMETRY_VERTICES_OUT

params returns the maximum number of vertices that the geometry shader in program will output.
Gl.GEOMETRY_INPUT_TYPE

params returns a symbolic constant indicating the primitive type accepted as input to the geometry shader contained in program.
Gl.GEOMETRY_OUTPUT_TYPE

params returns a symbolic constant indicating the primitive type that will be output by the geometry shader contained in program.

Notes

Gl.ACTIVE_UNIFORM_BLOCKS and Gl.ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH are available only if the GL version 3.1 or greater.

Gl.GEOMETRY_VERTICES_OUT, Gl.GEOMETRY_INPUT_TYPE and Gl.GEOMETRY_OUTPUT_TYPE are accepted only if the GL version is 3.2 or greater.

If an error is generated, no change is made to the contents of params.

Errors

Gl.INVALID_VALUE is generated if program is not a value generated by OpenGL.

Gl.INVALID_OPERATION is generated if program does not refer to a program object.

Gl.INVALID_OPERATION is generated if pname is Gl.GEOMETRY_VERTICES_OUT, Gl.GEOMETRY_INPUT_TYPE, or Gl.GEOMETRY_OUTPUT_TYPE, and program does not contain a geometry shader.

Gl.INVALID_ENUM is generated if pname is not an accepted value.

Associated Gets

Gl.GetActiveAttrib with argument program

Gl.GetActiveUniform with argument program

Gl.GetAttachedShaders with argument program

Gl.GetProgramInfoLog with argument program

Gl.IsProgram

See also

See original documentation on OpenGL website