示例#1
0
 /// <summary>
 /// Bind transform feedback object.
 /// </summary>
 /// <param name="primitive">Transform feedback primitive type.</param>
 public void Bind(PrimitiveType primitive, bool resume)
 {
     // bind transform feedback object
     GL.BindTransformFeedback(TransformFeedbackTarget.TransformFeedback, glname);
     // resume or start transform feedback
     if (resume)
         GL.ResumeTransformFeedback();
     else
         GL.BeginTransformFeedback(primitive);
 }
示例#2
0
 /// <summary>
 /// Bind transform feedback object.
 /// </summary>
 /// <param name="primitive">Transform feedback primitive type.</param>
 public void Bind(PrimitiveType primitive, bool resume)
 {
     // bind transform feedback object
     GL.BindTransformFeedback(TransformFeedbackTarget.TransformFeedback, glname);
     // resume or start transform feedback
     if (resume)
     {
         GL.ResumeTransformFeedback();
     }
     else
     {
         GL.BeginTransformFeedback(primitive);
     }
 }