1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../css/manpage.css" type="text/css" />
7<title>glCreateProgram</title>
8  </head>
9  <body>
10<h1>glCreateProgram Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14GL_APICALL GLuint GL_APIENTRY glCreateProgram(
15     void
16);
17</pre>
18    </div>
19<h2>Arguments</h2>
20    <div class="section">
21<p>None.</p>
22    </div>
23<h2>Return Values</h2>
24<div class="section">The generated program object. </div>
25<h2>Description</h2>
26    <div class="section">
27<p>Generates a program object.</p><P>
28Returns the program object's name. The name is represented by a 13-bit integer. Shader objects use a separate namespace.
29            </P><P>
30This function generates the following errors.
31<TABLE><TR><TH>GL_INVALID_OPERATION</TH><TD>The number of generated program objects exceeded what can be represented by a 13-bit integer.</TD></TR><TR><TH>GL_OUT_OF_MEMORY</TH><TD>Failed to allocate the management region.</TD></TR></TABLE><!-- source                      13ビットの整数値で表される数以上のプログラムオブジェクトを生成した場合エラーGL_INVALID_OPERATIONを生成します。 管理用領域の確保に失敗した場合エラーGL_OUT_OF_MEMORYを生成します。                 --></P></div>
32<h2>Revision History</h2>
33    <div class="section">
34      <dl class="history">
35        <dt>2010/01/07</dt>
36<dd>Initial version.<br />
37        </dd>
38      </dl>
39    </div>
40  <hr><p>CONFIDENTIAL</p></body>
41</html>