Пример #1
0
 public void setGraphicDevice(GraphicsDeviceControl devControl,
                                          GraphicsDevice dev)
 {
     graficDeviceControl=devControl;
        graficDevice = dev;
        mainSpriteBatch = new SpriteBatch(dev);
        if (!watch.IsRunning)
        watch.Start();
 }
Пример #2
0
        public DisplayComponent createScene(GraphicsDeviceControl devControl, GraphicsDevice dev)
        {
            baseSceneLayer = new DisplayXNA();
            baseSceneLayer.setGraphicDevice(devControl, devControl.GraphicsDeviceService.GraphicsDevice);

            cameraSceneLayer = new CameraImageDisplay(baseSceneLayer);
            cameraSceneLayer.setDisplayEnable(true);
            model3dSceneLayer = new Model3dDisplay(cameraSceneLayer);

            moveLayerScene = new DisplayMove(model3dSceneLayer);
            return moveLayerScene;
        }
Пример #3
0
 public DisplayComponent createScene(GraphicsDeviceControl devControl)
 {
     return createScene(devControl, devControl.GraphicsDeviceService.GraphicsDevice);
 }
 public void createScene(GraphicsDeviceControl devControl, GraphicsDevice dev)
 {
     displayComponent= piktoViewManager.createScene(devControl,dev);
 }