Texture1D.set_data

Sets the texture data.

class Texture1D
void
set_data
(
T
)
(,,
int width
,
GLenum format
,
GLenum type
)

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 int

If data is an array and width is -1, the width will be infered from the array, otherwise it must be valid.

format GLenum

Specifies the format of the pixel data.

type GLenum

Specifies the data type of the pixel data.

See Also

Meta