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(); }
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 (); }
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 (); }
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(); }