set_from_yuv_data
Description:
[
Deprecated ( since =
"1.10" ) ]
public bool set_from_yuv_data (
uint8[] data,
int width,
int height,
TextureFlags flags)
throws Error
Warning: set_from_yuv_data is deprecated.
Sets a Texture from YUV image data.
If an error occurred, false is returned and error is set.
The YUV support depends on the driver; the format supported by the few drivers exposing this capability are not really useful.
The proper way to convert image data in any YUV colorspace to any RGB colorspace is to use a fragment shader associated with the
Texture material.
Parameters:
| data |
Image data in YUV type colorspace. |
| width |
Width in pixels of image data. |
| height |
Height in pixels of image data |
| flags |
TextureFlags
|
Returns:
true if the texture was successfully updated |