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(); }
public GraphicsHandler(GraphicsDisplay cameraView) { this.cameraView = cameraView; }
private static void initGraphics(GraphicsDisplay cameraView) { graphicsHandler = new GraphicsHandler(cameraView); cameraMode = false; Cameras = new List <Camera>(); }