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