Exemple #1
0
        public GUILayer(GUIForm form, GUILayerType type)
        {
            LayerType = type;
            m_order   = (int)type;


            m_form              = form;
            m_bufferRect        = form.GraphicsBind.CreateBuffer(256);
            m_bufferRectDynamic = form.GraphicsBind.CreateBuffer(256);

            m_bufferText        = form.GraphicsBind.CreateBuffer(256);
            m_bufferTextDynamic = form.GraphicsBind.CreateBuffer(256);


            m_rootView       = new GUIView();
            m_rootView.Rect  = Vector4.zero;
            m_rootView.Layer = this;

            actionBeforeUpdate = new GUIDelayAction();
        }
Exemple #2
0
 public bool RemoveView(GUIView view)
 {
     return(m_rootView.RemoveSubView(view));
 }