Ejemplo n.º 1
0
        public static DAEFilter ToDAEFilter(this H3DTextureMagFilter Filter)
        {
            switch (Filter)
            {
            default:
            case H3DTextureMagFilter.Nearest: return(DAEFilter.NEAREST);

            case H3DTextureMagFilter.Linear:  return(DAEFilter.LINEAR);
            }
        }
Ejemplo n.º 2
0
        private static All GetMagFilter(H3DTextureMagFilter Filter)
        {
            switch (Filter)
            {
            case H3DTextureMagFilter.Linear:  return(All.Linear);

            case H3DTextureMagFilter.Nearest: return(All.Nearest);

            default: throw new ArgumentException("Invalid magnification filter!");
            }
        }