示例#1
0
        /// <summary>
        /// Refreshes the buffers with the current state of the 'font'drawing
        /// as defined in DrawingPrimitives
        /// </summary>
        public void RefreshBuffers()
        {
            if (VertexArrayObject == null)
            {
                VertexArrayObject = new QVertexArrayObject(SharedState);
            }

            VertexArrayObject.Reset();

            foreach (var primitive in _glFontDrawingPrimitives)
            {
                VertexArrayObject.AddVertexes(primitive.ShadowVertexRepr);
                VertexArrayObject.AddVertexes(primitive.CurrentVertexRepr);
            }
            VertexArrayObject.Load();
        }
示例#2
0
        /// <summary>
        /// Refreshes the buffers with the current state of the 'font'drawing 
        /// as defined in DrawingPrimitives
        /// </summary>
        public void RefreshBuffers()
        {
            if (_vertexArrayObject == null)
            {
                _vertexArrayObject = new QVertexArrayObject(QFontSharedState);
            }

            _vertexArrayObject.Reset();

            foreach (var primitive in _glFontDrawingPimitives)
            {
                _vertexArrayObject.AddVertexes(primitive.ShadowVertexRepr);
                _vertexArrayObject.AddVertexes(primitive.CurrentVertexRepr);
            }
            _vertexArrayObject.Load();
        }