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); }
protected virtual void OnWindowCreated() { WindowCreated?.Invoke(this, EventArgs.Empty); }
private void HandleWindowAdd(WindowsWindow window, bool firstCreate) { WindowCreated?.Invoke(window, firstCreate); }
/// <summary> /// Raises the WindowCreated event. /// </summary> /// <param name="window">The window that was created.</param> private void OnWindowCreated(IUltravioletWindow window) => WindowCreated?.Invoke(window);
private void RaiseWindowCreatedEvent(Window window) { WindowCreated?.Invoke(this, new WindowEventArgs(window)); }
///<summary>Invokes registered user-defined handler methods after the native window is created.</summary> internal void OnWindowCreated() { WindowCreated?.Invoke(this, null); }
/// <summary> /// Raises the WindowCreated event. /// </summary> /// <param name="window">The window that was created.</param> protected void OnWindowCreated(IUltravioletWindow window) => WindowCreated?.Invoke(window);
private void WindowCreatedEvent(ShellEventHook shellObject, IntPtr hWnd) { WindowCreated?.Invoke(shellObject, hWnd); }
public void OnWindowCreated(WindowCreatedEventArgs e) { EventDispatcher.Dispatch(() => WindowCreated?.Invoke(this, e)); }