Esempio n. 1
0
 void render()
 {
     for (int i = 0; i < nframes; i++)
     {
         PixelScreen ps = new PixelScreen(world.ViewPlane);
         world.Screen = ps;
         world.RenderScene();
         frames.Add(ps);
         FrameCompletedEventArgs e = new FrameCompletedEventArgs();
         e.FinishedFrame = ps;
         e.FinishedFrameNumber = i + 1;
         fireNextFrame(e);
     }
     fireRenderCompleted(new FrameCompletedEventArgs());
 }
Esempio n. 2
0
 void fireRenderCompleted(FrameCompletedEventArgs e)
 {
     if (RenderingCompleted != null)
         RenderingCompleted(this, e);
 }
Esempio n. 3
0
 void fireNextFrame(FrameCompletedEventArgs e)
 {
     if (NextFrame != null)
         NextFrame(this, e);
 }