glClearTexSubImage

fills all or part of a texture image with a constant value

Signature

glClearTexSubImage( GLuint ( texture ) , GLint ( level ) , GLint ( xoffset ) , GLint ( yoffset ) , GLint ( zoffset ) , GLsizei ( width ) , GLsizei ( height ) , GLsizei ( depth ) , GLenum ( format ) , GLenum ( type ) , const void * ( data ) )-> void
glClearTexSubImage( texture , level , xoffset , yoffset , zoffset , width , height , depth , format , type , data )

Parameters

VariablesDescription
texture
The name of an existing texture object containing the image to be cleared.
level
The level of texture containing the region to be cleared.
xoffset
The coordinate of the left edge of the region to be cleared.
yoffset
The coordinate of the lower edge of the region to be cleared.
zoffset
The coordinate of the front of the region to be cleared.
width
The width of the region to be cleared.
height
The height of the region to be cleared.
depth
The depth of the region to be cleared.
format
The format of the data whose address in memory is given by data .
type
The type of the data whose address in memory is given by data .
data
The address in memory of the data to be used to clear the specified region.