Пример #1
0
        public static void Update(GUIEvent guievent)
        {
            s_graphicsBind.UpdateGUIParams(guievent.RenderWidth, guievent.RenderHeight);


            //init frame
            GUI.Context.Frame(guievent, guievent.RenderWidth, guievent.RenderHeight);

            foreach (var stage in s_drawStages)
            {
                stage.Draw(guievent);
            }


            for (int i = s_drawStages.Count - 1; i >= 0; i--)
            {
                s_drawStages[i].SyncBuffer(s_graphicsBind);
            }

            GUI.Context.EndFrame();
            if (GUI.Context.TextureStorage.Changed)
            {
                GraphicsBind.SetDynamicBufferTexture(GUI.Context.TextureStorage.BufferData, GUI.Context.TextureStorage.BufferData.Count);
            }
        }
Пример #2
0
        public void Update()
        {
            m_graphicsBind.Update();
            m_graphicsBind.UpdateGUIParams((int)m_rect.z, (int)m_rect.w);

            //Sync data
            foreach (var layer in m_layers)
            {
                m_graphicsBind.SyncLayerBuffer(layer);
            }
        }