Texture3DBase.set_data

Sets the texture data.

class Texture3DBase(GLenum target_)
void
set_data
(
T
)
(,,
GLsizei width
,
GLsizei height
,
GLsizei depth
,
GLenum format
,
GLenum type
,
GLint level = 0
)

Parameters

data T

A pointer to the image data or an array of the image data.

internal_format GLint

Specifies the number of color components in the texture.

width GLsizei

Specifies the width of the texture image.

height GLsizei

Specifies the height of the texture image.

depth GLsizei

Specifies the depth of the texture image, or the number of layers in a texture array.

format GLenum

Specifies the format of the pixel data.

type GLenum

Specifies the data type of the pixel data.

See Also

Meta