GL_APICALL void GL_APIENTRY glTexImage1D(
GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLint border,
GLenum format,
GLenum type,
const GLvoid * pixels
);
| Name | Description | |
|---|---|---|
| in | target | Target texture |
| in | level | Mipmap level of the data to load |
| in | internalformat | Internal format of lookup table data (the same as format) |
| in | width | Size of entries in the lookup table |
| in | border | Border width (only 0 is valid) |
| in | format | Format of lookup table data |
| in | type | Type of lookup table data |
| in | pixels | Pointer to the lookup table data |
Configures lookup table data.
You can set target to GL_LUT_TEXTUREi_DMP. The value of i is greater than or equal to 0 and is at least one less than the value obtained from glGetIntegerv with GL_MAX_LUT_TEXTURES_DMP specified.
Specify 0 for level.
Set internalformat to GL_LUMINANCEF_DMP.
For width, specify the lookup table's entry size. This must not be larger than the value that is obtained from glGetIntegerv with GL_MAX_LUT_ENTRIES_DMP specified.
Specify 0 for border.
Set format to GL_LUMINANCEF_DMP.
Set type to GL_FLOAT.
For pixels, specify a pointer to the lookup table data.
This function generates the following errors.
| GL_INVALID_ENUM | The target, format, internalformat, or type argument was set to an invalid value. |
|---|---|
| GL_INVALID_VALUE | The level, border, or width argument was set to an invalid value. |
| GL_INVALID_OPERATION | 0 was bound to the lookup table texture target specified by target. |
CONFIDENTIAL