Exemplo n.º 1
0
        ///---------------------------------------------------------------------
        internal static void Unregister(FrameRecorder recorder)
        {
            var instance = Instance;

            if (instance == null)
            {
                return;
            }

            instance.recorders.Remove(recorder);
        }
Exemplo n.º 2
0
        ///-----------------------------------------------------------------
        public void Open(FrameRecorder recorder)
        {
            if (!frames.ContainsKey(recorder))
            {
                frames.Add(recorder, recorder.NewFrame());
            }
            else
            {
                frames[recorder].Recycle();
            }

            recorder.Open(frames[recorder]);
        }
Exemplo n.º 3
0
 ///-----------------------------------------------------------------
 public void Close(FrameRecorder recorder)
 {
     recorder.Close(frames[recorder]);
 }