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>glTexImage1D</title>
8  </head>
9  <body>
10<h1>glTexImage1D Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14GL_APICALL void GL_APIENTRY glTexImage1D(
15     GLenum target,
16     GLint level,
17     GLint internalformat,
18     GLsizei width,
19     GLint border,
20     GLenum format,
21     GLenum type,
22     const GLvoid * pixels
23);
24</pre>
25    </div>
26<h2>Parameters</h2>
27    <div class="section">
28      <table class="arguments">
29        <thead>
30          <tr>
31            <td width="15" />
32<th>Name</th>
33<td>Description</td>
34          </tr>
35        </thead>
36        <tr>
37<td>in</td>
38<th>target</th>
39<td>Target texture</td>
40        </tr>
41        <tr>
42<td>in</td>
43<th>level</th>
44<td>Mipmap level of the data to load</td>
45        </tr>
46        <tr>
47<td>in</td>
48<th>internalformat</th>
49<td>Internal format of lookup table data (the same as <span class="argument">format</span>)</td>
50        </tr>
51        <tr>
52<td>in</td>
53<th>width</th>
54<td>Size of entries in the lookup table</td>
55        </tr>
56        <tr>
57<td>in</td>
58<th>border</th>
59<td>Border width (only 0 is valid)</td>
60        </tr>
61        <tr>
62<td>in</td>
63<th>format</th>
64<td>Format of lookup table data</td>
65        </tr>
66        <tr>
67<td>in</td>
68<th>type</th>
69<td>Type of lookup table data</td>
70        </tr>
71        <tr>
72<td>in</td>
73<th>pixels</th>
74<td>Pointer to the lookup table data</td>
75        </tr> </table>
76    </div>
77<h2>Return Values</h2>
78<div class="section">No values are returned. </div>
79<h2>Description</h2>
80    <div class="section">
81<p>Configures lookup table data.</p><P>
82You can set <span class="argument">target</span> to <code>GL_LUT_TEXTUREi_DMP</code>. The value of <B><I>i</I></B> is greater than or equal to 0 and is at least one less than the value obtained from <code>glGetIntegerv</code> with <code>GL_MAX_LUT_TEXTURES_DMP</code> specified.
83            </P><P>
84Specify 0 for <span class="argument">level</span>.
85            </P><P>
86Set <span class="argument">internalformat</span> to <code>GL_LUMINANCEF_DMP</code>.
87            </P><P>
88For <span class="argument">width</span>, specify the lookup table's entry size. This must not be larger than the value that is obtained from <code>glGetIntegerv</code> with <code>GL_MAX_LUT_ENTRIES_DMP</code> specified.
89            </P><P>
90Specify 0 for <span class="argument">border</span>.
91            </P><P>
92Set <span class="argument">format</span> to <code>GL_LUMINANCEF_DMP</code>.
93            </P><P>
94Set <span class="argument">type</span> to <code>GL_FLOAT</code>.
95            </P><P>
96For <span class="argument">pixels</span>, specify a pointer to the lookup table data.
97            </P><P>
98This function generates the following errors.
99<TABLE><TR><TH>GL_INVALID_ENUM</TH><TD>The <span class="argument">target</span>, <span class="argument">format</span>, <span class="argument">internalformat</span>, or <span class="argument">type</span> argument was set to an invalid value.</TD></TR><TR><TH>GL_INVALID_VALUE</TH><TD>The <span class="argument">level</span>, <span class="argument">border</span>, or <span class="argument">width</span> argument was set to an invalid value.</TD></TR><TR><TH>GL_INVALID_OPERATION</TH><TD>0 was bound to the lookup table texture target specified by <span class="argument">target</span>.</TD></TR></TABLE><!-- source                      target、format、internalformat、typeに不正な値を指定した場合エラーGL_INVALID_ENUMを生成します。 level、border、widthに不正な値を指定した場合エラーGL_INVALID_VALUEを生成します。 targetで指定した参照テーブルのテクスチャターゲットに0がバインドされている場合エラーGL_INVALID_OPERATIONを生成します。                 --></P></div>
100<h2>Revision History</h2>
101    <div class="section">
102      <dl class="history">
103        <dt>2010/01/07</dt>
104<dd>Initial version.<br />
105        </dd>
106      </dl>
107    </div>
108  <hr><p>CONFIDENTIAL</p></body>
109</html>