rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man4 / glIsProgram.xml
CommitLineData
7faf1d71
AW
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4<refentry id="glIsProgram">
5 <refmeta>
6 <refentrytitle>glIsProgram</refentrytitle>
7 <manvolnum>3G</manvolnum>
8 </refmeta>
9 <refnamediv>
10 <refname>glIsProgram</refname>
11 <refpurpose>Determines if a name corresponds to a program object</refpurpose>
12 </refnamediv>
13 <refsynopsisdiv><title>C Specification</title>
14 <funcsynopsis>
15 <funcprototype>
16 <funcdef>GLboolean <function>glIsProgram</function></funcdef>
17 <paramdef>GLuint <parameter>program</parameter></paramdef>
18 </funcprototype>
19 </funcsynopsis>
20 </refsynopsisdiv>
21 <refsect1 id="parameters"><title>Parameters</title>
22 <variablelist>
23 <varlistentry>
24 <term><parameter>program</parameter></term>
25 <listitem>
26 <para>Specifies a potential program object.</para>
27 </listitem>
28 </varlistentry>
29 </variablelist>
30 </refsect1>
31 <refsect1 id="description"><title>Description</title>
32 <para><function>glIsProgram</function> returns
33 <constant>GL_TRUE</constant> if <parameter>program</parameter>
34 is the name of a program object previously created with
35 <citerefentry><refentrytitle>glCreateProgram</refentrytitle></citerefentry>
36 and not yet deleted with <citerefentry><refentrytitle>glDeleteProgram</refentrytitle></citerefentry>.
37 If <parameter>program</parameter> is zero or a non-zero value that
38 is not the name of a program object, or if an error occurs,
39 <function>glIsProgram</function> returns <constant>GL_FALSE</constant>.</para>
40 </refsect1>
41 <refsect1 id="notes"><title>Notes</title>
42 <para>No error is generated if <parameter>program</parameter> is
43 not a valid program object name.</para>
44
45 <para>A program object marked for deletion with <citerefentry><refentrytitle>glDeleteProgram</refentrytitle></citerefentry>
46 but still in use as part of current rendering state is still considered
47 a program object and <function>glIsProgram</function> will return <constant>GL_TRUE</constant>.</para>
48 </refsect1>
49 <refsect1 id="associatedgets"><title>Associated Gets</title>
50 <para><citerefentry><refentrytitle>glGet</refentrytitle></citerefentry>
51 with the argument <constant>GL_CURRENT_PROGRAM</constant></para>
52
53 <para><citerefentry><refentrytitle>glGetActiveAttrib</refentrytitle></citerefentry>
54 with arguments <parameter>program</parameter> and the index of
55 an active attribute variable</para>
56
57 <para><citerefentry><refentrytitle>glGetActiveUniform</refentrytitle></citerefentry>
58 with arguments <parameter>program</parameter> and the index of
59 an active uniform variable</para>
60
61 <para><citerefentry><refentrytitle>glGetAttachedShaders</refentrytitle></citerefentry>
62 with argument <parameter>program</parameter></para>
63
64 <para><citerefentry><refentrytitle>glGetAttribLocation</refentrytitle></citerefentry>
65 with arguments <parameter>program</parameter> and the name of an
66 attribute variable</para>
67
68 <para><citerefentry><refentrytitle>glGetProgram</refentrytitle></citerefentry>
69 with arguments <parameter>program</parameter> and the parameter
70 to be queried</para>
71
72 <para><citerefentry><refentrytitle>glGetProgramInfoLog</refentrytitle></citerefentry>
73 with argument <parameter>program</parameter></para>
74
75 <para><citerefentry><refentrytitle>glGetUniform</refentrytitle></citerefentry>
76 with arguments <parameter>program</parameter> and the location
77 of a uniform variable</para>
78
79 <para><citerefentry><refentrytitle>glGetUniformLocation</refentrytitle></citerefentry>
80 with arguments <parameter>program</parameter> and the name of a
81 uniform variable</para>
82 </refsect1>
83 <refsect1 id="seealso"><title>See Also</title>
84 <para><citerefentry><refentrytitle>glAttachShader</refentrytitle></citerefentry>,
85 <citerefentry><refentrytitle>glBindAttribLocation</refentrytitle></citerefentry>,
86 <citerefentry><refentrytitle>glCreateProgram</refentrytitle></citerefentry>,
87 <citerefentry><refentrytitle>glDeleteProgram</refentrytitle></citerefentry>,
88 <citerefentry><refentrytitle>glDetachShader</refentrytitle></citerefentry>,
89 <citerefentry><refentrytitle>glLinkProgram</refentrytitle></citerefentry>,
90 <citerefentry><refentrytitle>glUniform</refentrytitle></citerefentry>,
91 <citerefentry><refentrytitle>glUseProgram</refentrytitle></citerefentry>,
92 <citerefentry><refentrytitle>glValidateProgram</refentrytitle></citerefentry></para>
93 </refsect1>
94 <refsect1 id="Copyright"><title>Copyright</title>
95 <para>
96 Copyright <trademark class="copyright"></trademark> 2003-2005 3Dlabs Inc. Ltd.
97 This material may be distributed subject to the terms and conditions set forth in
98 the Open Publication License, v 1.0, 8 June 1999.
99 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.
100 </para>
101 </refsect1>
102</refentry>