示例#1
0
        public static void Start(GraphicsDisplay cameraView)
        {
            FrameCounter.Init();
            MessageManager.Init();
            initGraphics(cameraView);
            initEnvironment();
            Thread graphicsThread = new Thread(new ThreadStart(update));

            graphicsThread.SetApartmentState(ApartmentState.STA);
            graphicsThread.Start();
        }
示例#2
0
 public GraphicsHandler(GraphicsDisplay cameraView)
 {
     this.cameraView = cameraView;
 }
示例#3
0
 private static void initGraphics(GraphicsDisplay cameraView)
 {
     graphicsHandler = new GraphicsHandler(cameraView);
     cameraMode      = false;
     Cameras         = new List <Camera>();
 }