예제 #1
0
 private void SetTexParameters(TexParams texParams)
 {
     GL.BindTexture(All.Texture2D, _name);
     GL.TexParameter(All.Texture2D, All.TextureMinFilter, (int)texParams.MinFilter);
     GL.TexParameter(All.Texture2D, All.TextureMagFilter, (int)texParams.MagFilter);
     GL.TexParameter(All.Texture2D, All.TextureWrapS, (int)texParams.WrapS);
     GL.TexParameter(All.Texture2D, All.TextureWrapT, (int)texParams.WrapT);
 }
예제 #2
0
        private void SetAntiAliasTexParameters()
        {
            TexParams texParams = new TexParams();
            texParams.MinFilter = All.Nearest;
            texParams.MagFilter = All.Nearest;
            texParams.WrapS = All.ClampToEdge;
            texParams.WrapT = All.ClampToEdge;

            SetTexParameters(texParams);
        }