glTexSubImage1D Function

Syntax

GL_APICALL void GL_APIENTRY glTexSubImage1D(
     GLenum target,
     GLint level,
     GLint xoffset,
     GLsizei width,
     GLenum format,
     GLenum type,
     const GLvoid * pixels
);

Arguments

Name Description
in target Target texture
in level Mipmap level of the data to load
in xoffset Number of the first entry to replace
in width Size of entries in the lookup table
in format Format of lookup table data
in type Type of lookup table data
in pixels Pointer to the lookup table data

Return Values

No values are returned.

Description

Partially configures lookup table data.

You can set target to GL_LUT_TEXTUREi_DMP. Set i 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 glGetIntegerv with GL_MAX_LUT_ENTRIES_DMP specified. Specify 0 for level. Set xoffset to the number at which to start replacing entries. Set width to the entry size to replace. Set format to GL_LUMINANCEF_DMP. Set type to GL_FLOAT. The sum of width and xoffset must not be greater than the value obtained from glGetIntegerv with GL_MAX_LUT_ENTRIES_DMP specified. Set pixels to a pointer to the partial lookup table data.

Specify 0 for level.

Set xoffset to the number at which to start replacing entries.

Set width to the entry size to replace.

The sum of width and xoffset must not be greater than the value obtained from glGetIntegerv with GL_MAX_LUT_ENTRIES_DMP specified.

Set format to GL_LUMINANCEF_DMP.

Set type to GL_FLOAT.

Set pixels to a pointer to the partial lookup table data.

This function generates the following errors.

GL_INVALID_ENUMThe target, format, or type arguments were set to an invalid value.
GL_INVALID_VALUEThe level, xoffset, or width argument was set to an invalid value.
GL_INVALID_OPERATION0 was bound to the lookup table texture target specified by target.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL