public static BDOSDRenderer GetInstance() { if (_instance == null) { _instance = new BDOSDRenderer(); } return _instance; }
public static BDOSDRenderer GetInstance() { if (_instance == null) { _instance = new BDOSDRenderer(); } return(_instance); }
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(); }
public static void Release() { _instance = null; }