Пример #1
0
 public static BDOSDRenderer GetInstance()
 {
   if (_instance == null)
   {
     _instance = new BDOSDRenderer();
   }
   return _instance;
 }
Пример #2
0
 public static BDOSDRenderer GetInstance()
 {
     if (_instance == null)
     {
         _instance = new BDOSDRenderer();
     }
     return(_instance);
 }
Пример #3
0
        public void RenderLayer(float timePassed)
        {
            // if (VideoRendererStatistics.VideoState == VideoRendererStatistics.State.VideoPresent)
            // Before , we got a black screen until GUI_MSG_NOTIFY command has finished
            // That we don't want ( do we ?)
            if (VideoRendererStatistics.VideoState == VideoRendererStatistics.State.VideoPresent ||
                VideoRendererStatistics.VideoState == VideoRendererStatistics.State.NoSignal)
            {
                if (GUIGraphicsContext.RenderBlackImage)
                {
                    RenderBlackImage(timePassed);
                }

                // Render video texture
                if (_shouldRenderTexture == false)
                {
                    BDOSDRenderer.GetInstance().Render();
                    return;
                }

                if (_textureAddress != 0)
                {
                    DrawTexture(_textureAddress, _diffuseColor);
                }
            }
            else
            {
                GUIGraphicsContext.RenderBlackImage = true;
                RenderBlackImage(timePassed);
                GUIGraphicsContext.RenderBlackImage = false;
            }

            SubtitleRenderer.GetInstance().Render();
            SubEngine.GetInstance().Render(_subsRect, _destinationRect);
            BDOSDRenderer.GetInstance().Render();
        }
Пример #4
0
 public static void Release()
 {
   _instance = null;
 }
Пример #5
0
 public static void Release()
 {
     _instance = null;
 }