public void DrawItem(OSDTexture item)
 {
     try
     {
         lock (_OSDLock)
         {
             if (item.texture != null && item.width > 0 && item.height > 0)
             {
                 // todo: support 2 planes
                 if (_OSDTexture == null)
                 {
                     _OSDTexture = new Texture(item.texture);
                 }
             }
             else
             {
                 _OSDTexture = null;
             }
         }
     }
     catch (Exception ex)
     {
         Log.Error(ex);
     }
 }
Beispiel #2
0
        public void DrawItem(OSDTexture item)
        {
            try
            {
                lock (_instanceLock)
                {
                    if (!_render)
                    {
                        return;
                    }

                    if (item.texture != null && item.width > 0 && item.height > 0)
                    {
                        if (_planes[item.plane] == null)
                        {
                            _planes[item.plane] = new Texture(item.texture);
                        }
                    }
                    else
                    {
                        _planes[item.plane] = null;
                    }
                }
            }
            catch (Exception ex)
            {
                Log.Error(ex);
            }
        }