Example #1
0
        /// <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;
        }
Example #2
0
 /// <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);
 }
Example #3
0
 /// <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, int param)
 {
     _SamplerParameteri(sampler, pname, param);
 }
Example #4
0
 /// <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 int param)
 {
     _GetSamplerParameteri(sampler, pname, out param);
 }