/// <summary> /// Sets texture parameter for the sampler. /// </summary> /// <param name="sampler">The name of the sampler.</param> /// <param name="pname">A <see cref="glTextureParameter"/> selecting the parameter to be set.</param> /// <param name="param">The value the parameter is set to.</param> public static void SamplerParameteri(uint sampler, glTextureParameter pname, glTextureWrapMode param) { _SamplerParameteri(sampler, pname, (int)param); }
/// <summary> /// Returns the value of a texture parameter of a sampler. /// </summary> /// <param name="sampler">The name of the sampler.</param> /// <param name="pname">A <see cref="glTextureParameter"/> specifying the texture parameter.</param> /// <param name="param">Returns the requested value.</param> public static void GetSamplerParameteri(uint sampler, glTextureParameter pname, out glTextureWrapMode param) { int p; _GetSamplerParameteri(sampler, pname, out p); param = (glTextureWrapMode)p; }