update (const void *data, GLenum dataFormat, GLenum dataType, int mipLevel, int width, int height, int depth, int xOffset=0, int yOffset=0, int zOffset=0)
the Texture's internal format, which is the format that OpenGL stores the texture data in memory. Common values include
GL_RGB
,
GL_RGBA
and
GL_LUMINANCE
Sets the wrapping behavior when a texture coordinate falls outside the range of [0,1]. Possible values are
GL_REPEAT
,
GL_CLAMP_TO_EDGE
, etc. Default is
GL_CLAMP_TO_EDGE
.
Sets the wrapping behavior when a texture coordinate falls outside the range of [0,1]. Possible values are
GL_REPEAT
,
GL_CLAMP_TO_EDGE
, etc. Default is
GL_CLAMP_TO_EDGE
.
Sets the horizontal wrapping behavior when a texture coordinate falls outside the range of [0,1]. Possible values are
GL_REPEAT
and
GL_CLAMP_TO_EDGE
, etc. Default is
GL_CLAMP_TO_EDGE
.
Sets the vertical wrapping behavior when a texture coordinate falls outside the range of [0,1]. Possible values are
GL_REPEAT
,
GL_CLAMP_TO_EDGE
, etc. Default is
GL_CLAMP_TO_EDGE
.
Sets the depth wrapping behavior when a texture coordinate falls outside the range of [0,1]. Possible values are
GL_REPEAT
,
GL_CLAMP_TO_EDGE
, etc. Default is
GL_CLAMP_TO_EDGE
.
create (const void *data, GLenum dataFormat, int width, int height, int depth, const Format &format=Format())
Constructs a texture of size(
width
,
height
,
depth
). Pixel data is provided by
data
in format
dataFormat
(Ex:
GL_RGB
,
GL_RGBA
). Use
format.setDataType()
to specify a dataType other than
GL_UNSIGNED_CHAR
.
Returns the corresponding legal values for glTexImage*D() calls for dataFormat and dataType based on
internalFormat
, as well as whether the internal format contains an alpha channel, is compressed, and is in the sRGB color space.