Exemplo n.º 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();
        }