public TextureSceneView createTextureSceneView(String name, Vector3 translation, Vector3 lookAt, int width, int height)
        {
            OrbitCameraController orbitCamera = new OrbitCameraController(translation, lookAt, Vector3.Zero, Vector3.Zero, 0, 1000);

            orbitCamera.AllowRotation = AllowRotation;
            orbitCamera.AllowZoom     = AllowZoom;

            TextureSceneView window = new TextureSceneView(this, orbitCamera, name, background, 0, width, height);

            if (WindowCreated != null)
            {
                WindowCreated.Invoke(window);
            }
            if (camerasCreated)
            {
                window.createSceneView(currentScene);
            }

            textureWindows.Add(window);

            return(window);
        }
Beispiel #2
0
 public ManualResourceLoader(TextureSceneView sceneView)
 {
     this.sceneView = sceneView;
 }