glTexStorage1D

simultaneously specify storage for all levels of a one-dimensional texture

Signature

glTexStorage1D( GLenum ( target ) , GLsizei ( levels ) , GLenum ( internalformat ) , GLsizei ( width ) )-> void
glTexStorage1D( target , levels , internalformat , width )

Parameters

VariablesDescription
target
Specify the target of the operation. target must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D .
levels
Specify the number of texture levels.
internalformat
Specifies the sized internal format to be used to store texture image data.
width
Specifies the width of the texture, in texels.