Exemple #1
0
 /// <summary>
 /// Binds this shader to OpenGL.
 /// </summary>
 public Shader Bind()
 {
     if (NewVersion != this)
     {
         return(NewVersion.Bind());
     }
     LastBindTime = Engine.cTime;
     CheckValid();
     GL.UseProgram(Internal_Program);
     return(NewVersion);
 }