Beispiel #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");
     }
 }
Beispiel #2
0
 public void Unbind()
 {
     if (GLStateManager.BoundElementBuffer == this)
     {
         GLStateManager.UnbindElementBuffer();
     }
     else
     {
         throw new InvalidOperationException("Attempted to unbind buffer that is already unbound");
     }
 }
Beispiel #3
0
 public void Use()
 {
     GLStateManager.UseShaderProgram(this);
 }
Beispiel #4
0
 public void Bind()
 {
     GLStateManager.BindElementBuffer(this);
 }
Beispiel #5
0
 public void Bind()
 {
     GLStateManager.BindVertexBuffer(this);
 }