/// <summary> /// Sets texture parameter for the sampler. /// </summary> /// <param name="sampler">The name of the sampler.</param> /// <param name="pname">Must be <see cref="glTextureParameter.TEXTURE_COMPARE_FUNC"/>.</param> /// <param name="param">The value the parameter is set to.</param> public static void SamplerParameteri(uint sampler, glTextureParameter pname, glFunc 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">Must be <see cref="glTextureParameter.TEXTURE_COMPARE_FUNC"/>.</param> /// <param name="param">Returns the requested value.</param> public static void GetSamplerParameteri(uint sampler, glTextureParameter pname, out glFunc param) { int p; _GetSamplerParameteri(sampler, pname, out p); param = (glFunc)p; }