Пример #1
0
 public void Set(GLTextureUnit glTextureUnit)
 {
     if (!CheckValid())
     {
         return;
     }
     glTextureUnit.MakeCurrent();
     if (ValueType != GLValueType.GL_SAMPLER_2D)
     {
         throw(new Exception($"Trying to bind a TextureUnit to something not a Sampler2D : {ValueType}"));
     }
     Set(glTextureUnit.Index);
 }