/// <summary> /// Sets the attribute for a specific program. /// </summary> /// <param name="program">The program.</param> public void setAttribute(ShaderProgram program) { int index = program.GetAttributeLocation(this.name); if (index == -1) return; GL.EnableVertexAttribArray(index); GL.VertexAttribPointer(index, this.size, this.type, this.normalize, this.stride, this.offset); }
/// <summary> /// Sets the attribute for a specific program. /// </summary> /// <param name="program">The program.</param> public void setAttribute(ShaderProgram program) { int index = program.GetAttributeLocation(this.name); if (index == -1) { return; } GL.EnableVertexAttribArray(index); GL.VertexAttribPointer(index, this.size, this.type, this.normalize, this.stride, this.offset); }