Пример #1
0
 private void DrawLines2f_GL_3_2(Vertex2f[] vertices)
 {
     // Define geometry buffer
     _DrawArrayBuffer.Create(this, vertices);
     // Define geometry arrays
     _VertexArray.SetArray(_DrawArrayBuffer, VertexArraySemantic.Position);
     // Draw arrays
     _VertexArray.Draw(this, null);
 }
Пример #2
0
        /// <summary>
        /// Draw using this Technique.
        /// </summary>
        /// <param name="ctx">
        /// The <see cref="GraphicsContext"/> used for drawing using this Technique.
        /// </param>
        public void Draw(GraphicsContext ctx)
        {
            CheckCurrentContext(ctx);

            if (StateSet != null)
            {
                StateSet.Apply(ctx, Program);
            }

            VertexArray.Draw(ctx, Program);
        }