Beispiel #1
0
        ///---------------------------------------------------------------------
        internal static void Unregister(FrameRecorder recorder)
        {
            var instance = Instance;

            if (instance == null)
            {
                return;
            }

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

            recorder.Open(frames[recorder]);
        }
Beispiel #3
0
 ///-----------------------------------------------------------------
 public void Close(FrameRecorder recorder)
 {
     recorder.Close(frames[recorder]);
 }