Exemplo n.º 1
0
 internal static void Unbind(GraphicsContext ctx, TextureUnit textureUnit)
 {
     if (ctx.Extensions.SamplerObjects_ARB)
     {
         // Associate sampler to texture unit
         Gl.BindSampler(textureUnit.Index, InvalidObjectName);
     }
 }
Exemplo n.º 2
0
 internal void Bind(GraphicsContext ctx, TextureUnit textureUnit)
 {
     if (ctx.Extensions.SamplerObjects_ARB)
     {
         // Associate sampler to texture unit
         Gl.BindSampler(textureUnit.Index, ObjectName);
         // Update sampler parameters
         TexParameters(Parameters);
     }
 }