TextureData constructor

__init__(self)

Constructor of TextureData


def __init__(self):
    ...

__init__(self, width, height, pixel_format)

Constructs a new TextureData and allocate pixel data.


def __init__(self, width, height, pixel_format):
    ...
ParameterTypeDescription
widthint
heightint
pixel_formatPixelFormat

__init__(self, width, height, stride, bytes_per_pixel, pixel_format, data)

Constructor of TextureData


def __init__(self, width, height, stride, bytes_per_pixel, pixel_format, data):
    ...
ParameterTypeDescription
widthint
heightint
strideint
bytes_per_pixelint
pixel_formatPixelFormat
databytes

See Also