/// <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); }
/// <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); } }