Example #1
0
 public void Revert()
 {
     if (GLStateManager.BoundShaderProgram == this)
     {
         GLStateManager.RevertShaderProgram();
     }
     else
     {
         throw new InvalidOperationException("Attempted to revert to previous shader using shader that is not in use");
     }
 }
Example #2
0
 public void Unbind()
 {
     if (GLStateManager.BoundElementBuffer == this)
     {
         GLStateManager.UnbindElementBuffer();
     }
     else
     {
         throw new InvalidOperationException("Attempted to unbind buffer that is already unbound");
     }
 }
Example #3
0
 public void Use()
 {
     GLStateManager.UseShaderProgram(this);
 }
Example #4
0
 public void Bind()
 {
     GLStateManager.BindElementBuffer(this);
 }
Example #5
0
 public void Bind()
 {
     GLStateManager.BindVertexBuffer(this);
 }