Tango.YUVTexture.YUVTexture C# (CSharp) Метод

YUVTexture() публичный Метод

Initializes a new instance of the Tango.YUVTexture class. NOTE : Texture resolutions will be reset by the API. The sizes passed into the constructor are not guaranteed to persist when running on device.
public YUVTexture ( int yPlaneWidth, int yPlaneHeight, int uvPlaneWidth, int uvPlaneHeight, TextureFormat format, bool mipmap ) : System
yPlaneWidth int Y plane width.
yPlaneHeight int Y plane height.
uvPlaneWidth int UV plane width.
uvPlaneHeight int UV plane height.
format TextureFormat Texture format.
mipmap bool If set to true mipmap.
Результат System
        public YUVTexture(int yPlaneWidth, int yPlaneHeight,
                          int uvPlaneWidth, int uvPlaneHeight,
                          TextureFormat format, bool mipmap)
        {
            m_videoOverlayTextureY = new Texture2D(yPlaneWidth, yPlaneHeight, format, mipmap);
            m_videoOverlayTextureY.filterMode = FilterMode.Point;
            m_videoOverlayTextureCb = new Texture2D(uvPlaneWidth, uvPlaneHeight, format, mipmap);
            m_videoOverlayTextureCb.filterMode = FilterMode.Point;
            m_videoOverlayTextureCr = new Texture2D(uvPlaneWidth, uvPlaneHeight, format, mipmap);
            m_videoOverlayTextureCr.filterMode = FilterMode.Point;
        }