public void Render() { try { RefreshViews(); GetSimpleRenderer().Begin2D(); m_oframeRootMasterElement.OnRender(this); if (m_oeFocusElement != null && m_oeFocusElement.FocusedAlwaysOnTop) { m_oeFocusElement.OnRender(this); } tooltipFrame.OnRender(this); GetSimpleRenderer().End2D(); GL.Color4(1f, 1f, 1f, 1f); } catch (Exception ex) { if (ex is InvalidOperationException || ex is NullReferenceException) { return; } throw; } }
public override void OnRender(GUIHost host) { Element2D element2D = ChildList.Last(); if (element2D == null) { return; } base.OnRender(host); element2D.OnRender(host); }