Example #1
0
        public DepthOfField(String [] args)
            : base(args, RESIZE_BIT)
        {
            about("0.1", "depth-of-field effect",
                  "Stephen Tse <*****@*****.**>",
                  "http://escher.sourceforge.net/");

            if (help_option)
            {
                return;
            }

            visual_config.set_accum_rgb_size(ACCUM_SIZE);
            visual_config.set_depth_size(1);
            init_window(300, 300);
            teapot = new Teapot(glut, 0.5);

            gl.enable(GL.AUTO_NORMAL);
            gl.enable(GL.DEPTH_TEST);
            gl.enable(GL.NORMALIZE);
            gl.front_face(GL.CW);

            gl.matrix_mode(GL.MODELVIEW);
            gl.load_identity();
            init_light();
        }
Example #2
0
        public TeapotMaterial(String [] args)
            : base(args, RESIZE_BIT)
        {
            about ("0.1", "teapots of different material colors",
              "Stephen Tse <*****@*****.**>",
              "http://escher.sourceforge.net/");

            if (help_option) return;

            visual_config.set_depth_size (1);
            init_window (500, 600);
            teapot = new Teapot (glut, 1.0);

            gl.enable (GL.AUTO_NORMAL);
            gl.enable (GL.DEPTH_TEST);
            gl.enable (GL.NORMALIZE);
            gl.front_face (GL.CW);

            init_light ();
        }
Example #3
0
        public DepthOfField(String [] args)
            : base(args, RESIZE_BIT)
        {
            about ("0.1", "depth-of-field effect",
              "Stephen Tse <*****@*****.**>",
              "http://escher.sourceforge.net/");

            if (help_option) return;

            visual_config.set_accum_rgb_size (ACCUM_SIZE);
            visual_config.set_depth_size (1);
            init_window (300, 300);
            teapot = new Teapot (glut, 0.5);

            gl.enable (GL.AUTO_NORMAL);
            gl.enable (GL.DEPTH_TEST);
            gl.enable (GL.NORMALIZE);
            gl.front_face (GL.CW);

            gl.matrix_mode (GL.MODELVIEW);
            gl.load_identity ();
            init_light ();
        }
Example #4
0
        public TeapotMaterial(String [] args)
            : base(args, RESIZE_BIT)
        {
            about("0.1", "teapots of different material colors",
                  "Stephen Tse <*****@*****.**>",
                  "http://escher.sourceforge.net/");

            if (help_option)
            {
                return;
            }

            visual_config.set_depth_size(1);
            init_window(500, 600);
            teapot = new Teapot(glut, 1.0);

            gl.enable(GL.AUTO_NORMAL);
            gl.enable(GL.DEPTH_TEST);
            gl.enable(GL.NORMALIZE);
            gl.front_face(GL.CW);

            init_light();
        }