예제 #1
0
        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;
            }
        }
예제 #2
0
        public override void OnRender(GUIHost host)
        {
            Element2D element2D = ChildList.Last();

            if (element2D == null)
            {
                return;
            }

            base.OnRender(host);
            element2D.OnRender(host);
        }