Ejemplo n.º 1
0
Archivo: Renderer.cs Proyecto: akx/qta
 public Renderer(AccumulatorBuffer buf, Palette pal)
 {
     buffer = buf;
     sigma = 0.475f;
     gamma = .15f;
     zeta = 1.0f;
     palette = pal;
 }
Ejemplo n.º 2
0
Archivo: MainForm.cs Proyecto: akx/qta
 public void createEnv(int width, int height)
 {
     buffer = new AccumulatorBuffer((uint)width, (uint)height);
     bmp = new Bitmap(width, height, PixelFormat.Format32bppArgb);
     renderer = new Renderer(buffer, palette);
     pc = new ParticleChamber(buffer);
     widthSpinner.Value = (decimal)width;
     heightSpinner.Value = (decimal)height;
 }
Ejemplo n.º 3
0
        public ParticleChamber(AccumulatorBuffer buf)
        {
            buffer = buf;
            points = new List<SimPoint>();
            gPoints = null;
            sPoints = null;
            particles = new LinkedList<Particle>();
            deletionMarks = new List<Particle>();

            ResetChamber(5, false, 0);
        }