TextureData constructor

init

Constructor of TextureData

def __init__(self):
    ...

init

Constructs a new TextureData and allocate pixel data.

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

init

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