Пример #1
0
        /// <summary>
        /// Construct a GraphicsStateSetStack.
        /// </summary>
        public GraphicsStateSetStack()
        {
            GraphicsStateSet defaultSet = GraphicsStateSet.GetDefaultSet();

            // The stack always defines a current state
            _StateSetStack.AddLast(defaultSet);
        }
Пример #2
0
        /// <summary>
        /// Construct a GraphicsStateSetStack.
        /// </summary>
        public GraphicsStateSetStack()
        {
            GraphicsStateSet defaultSet = GraphicsStateSet.GetDefaultSet();

            // Avoid a disposition of this state set
            defaultSet.IncRef();
            // The stack always defines a current state
            _StateSetStack.AddLast(defaultSet);
        }