protected override void OnResize(ResizeEventArgs e) { base.OnResize(e); GL.Viewport(0, 0, Size.X, Size.Y); _camera.AspectRatio = Size.X / (float)Size.Y; }
protected override void OnResize(ResizeEventArgs e) { GL.Viewport(0, 0, Size.X, Size.Y); // We need to update the aspect ratio once the window has been resized _camera.AspectRatio = Size.X / (float)Size.Y; base.OnResize(e); }
protected override void OnResize(ResizeEventArgs e) { renderer.Resize(e.Width, e.Height); canvas.SetSize(e.Width, e.Height); base.OnResize(e); }
/// <summary> /// Called whenever the window is resized /// </summary> /// <param name="e">Information about the new window</param> protected override void OnResize(ResizeEventArgs e) { // Call GL.viewport to resize OpenGL's viewport to match the new size GL.Viewport(0, 0, Size.X, Size.Y); camera.AspectRatio = Size.X / (float)Size.Y; base.OnResize(e); }
protected override void OnResize(ResizeEventArgs e) { base.OnResize(e); UpdateProjectionMatrix(); GL.Viewport(0, 0, Size.X, Size.Y); }
protected virtual void OnResize(ResizeEventArgs e) { if (Child != null) { Child.InjectResize(e); } }
protected override void OnResize(ResizeEventArgs e) { _renderer.MainCamera.AspectRatio = (float)Size.X / Size.Y; GL.Viewport(0, 0, e.Width, e.Height); base.OnResize(e); }
// Is called when the window was resized public override void Resize(ResizeEventArgs e) { _resizeScaleFactor = new float2((100 / _initWidth * Width) / 100, (100 / _initHeight * Height) / 100); _canvasHeight = UserInterfaceHelper.CanvasHeightInit * _resizeScaleFactor.y; _canvasWidth = UserInterfaceHelper.CanvasWidthInit * _resizeScaleFactor.x; }
void _ResizeChangedMethod(object sender, ResizeEventArgs e) { if (null != ResizeChanged) { ResizeChanged(sender, e); } }
protected override void OnResize(ResizeEventArgs e) { base.OnResize(e); GL.Viewport(0, 0, Size.X, Size.Y); Render(); }
protected override void OnResize(ResizeEventArgs e) { //TODO: Setup renderer to updates its render surface width and height GL.Viewport(0, 0, Size.X, Size.Y); base.OnResize(e); }
protected override void OnResize(ResizeEventArgs e) { GL.Viewport(0, 0, e.Width, e.Height); DrawBuffer.Resize(e.Width, e.Height); _target.Dispose(); _target = new MultisampleRenderTarget(e.Width, e.Height); }
protected override void OnResize(ResizeEventArgs e) { // When the window gets resized, we have to call GL.Viewport to resize OpenGL's viewport to match the new size. // If we don't, the NDC will no longer be correct. GL.Viewport(0, 0, Size.X, Size.Y); base.OnResize(e); }
private void MainWindowResize(ResizeEventArgs obj) { lock (_resizeWindowLock) { _openGLSceneProcessor.ResizeRenderWindow(obj.Width, obj.Height); } }
protected override void OnResize(ResizeEventArgs e) { GL.Viewport(0, 0, e.Width, e.Height); view.viewSize.X = e.Width; view.viewSize.Y = e.Height; base.OnResize(e); }
protected virtual void OnResize(ResizeEventArgs e) { if (Resize != null) { Resize(this, e); } }
private void onResize(object sender, ResizeEventArgs e) { foreach (Panel panel in panels) { panel.onScreenResize(sender, e); } }
protected override void OnResize(ResizeEventArgs e) { base.OnResize(e); GL.Viewport(0, 0, ClientSize.X, ClientSize.Y); scene.Update(ClientSize.X, ClientSize.Y); imGuiController.WindowResized(ClientSize.X, ClientSize.Y); }
/// <summary> /// OnResize override to reposition the control properly. /// </summary> /// <param name="e"></param> protected override void OnResize(ResizeEventArgs e) { base.OnResize(e); // Adjust the controls.. this.CalculateScrolling(); this.PositionControls(); }
protected virtual void OnWindowResize(ResizeEventArgs args) { // int deltaW = size.Width - m_ClientRect.Width; int deltaH = args.NewSize.Height - m_ClientRect.Height; m_ClientRect.Width = args.NewSize.Width; m_ClientRect.Height = args.NewSize.Height; }
protected override void OnResize(ResizeEventArgs e) { ScreenSize = new vec2(e.Width, e.Height); GL.Viewport(0, 0, e.Width, e.Height); //camera.OnResize(e.Width, e.Height); camera.OnResize(1, 1); base.OnResize(e); }
// This is called when the window is resized. I also set the camera's aspect // here, too. protected override void OnResize(ResizeEventArgs e) { GL.Viewport(0, 0, Width, Height); if (view != null) // it will be null on the first call -- JC { view.pviewpointcritter().setAspect((float)Width / (float)Height); // width/height ratio } }
protected override void OnResize(ResizeEventArgs e) { GL.Viewport(0, 0, e.Width, e.Height); CameraManager.AspectRatio = ClientSize.X / (float)ClientSize.Y; base.OnResize(e); }
protected override void OnResize(ResizeEventArgs e) { base.OnResize(e); AppScreen.Resolution = new Entygine.Mathematics.Vec2i(Size.X, Size.Y); Ogl.Viewport(0, 0, Size.X, Size.Y); }
// Is called when the window was resized public override void Resize(ResizeEventArgs e) { _aspectRatio = Width / (float)Height; _resizeScaleFactor = new float2((100 / _initWidth * Width) / 100, (100 / _initHeight * Height) / 100); _canvasHeight = UIHelper.CanvasHeightInit * _resizeScaleFactor.y; _canvasWidth = UIHelper.CanvasWidthInit * _resizeScaleFactor.x; }
/// <summary> /// Handle window resize /// </summary> protected override void OnResize(ResizeEventArgs e) { var newSize = new Size(this.Size.X, this.Size.Y); GL.Viewport(0, 0, newSize.Width, newSize.Height); this.Projection.Refresh(newSize); this.OnReshape(newSize); base.OnResize(e); }
void RaiseResize(ResizeEventArgs e) { OnResize(e); if (Resize != null) { Resize(this, e); } }
protected override void OnResize(ResizeEventArgs e) { resizeNeeded = true; (width, height) = (e.Width, e.Height); projectionMatrix.Value = Matrix4.CreatePerspectiveFieldOfView( MathF.PI / 4, (float)e.Width / e.Height, .1f, 100f); pixelSizeUniform.Value = new Vector2(1f / e.Width, 1f / e.Height); }
private void Resize(object sender, ResizeEventArgs args) { _done = false; foreach (Menu menu in Common.Screens.Where(x => x is Menu && (x as Menu).Id == "MainMenu")) { menu.X = ((Width - 120) / 2) + 3; menu.Y = Height - 55; } }
protected override void OnResize(ResizeEventArgs e) { _engine.Resize(e.Width, e.Height); _fontRenderer.UpdateProjection(e.Width, e.Height); base.OnResize(e); }
protected override void OnResize(ResizeEventArgs e) { base.OnResize(e); if (clientArea != null) { clientArea.Left = ClientLeft; clientArea.Top = ClientTop; clientArea.Width = ClientWidth; clientArea.Height = ClientHeight; } }
protected override void OnResize(ResizeEventArgs e) { base.OnResize(e); if (btnDown != null) { btnDown.Width = 16; btnDown.Height = Height - Skin.Layers[0].ContentMargins.Vertical; btnDown.Top = Skin.Layers[0].ContentMargins.Top; btnDown.Left = Width - btnDown.Width - 2; } }
protected override void OnResize(ResizeEventArgs e) { SetMovableArea(); base.OnResize(e); }
public void OnResize(ResizeEventArgs e) { mode.Width = e.Width; mode.Height = e.Height; if (this.Resize != null) this.Resize(this, e); }
protected virtual void OnDeviceResize(object sender,ResizeEventArgs e) { Camera.Reset(); Scene.Tree.Reset(); Hud.BeginDesign(); Hud.Size = e.NewSize; Hud.EndDesign(); }
protected override void OnResized(ResizeEventArgs resizeEventArgs) { base.OnResized(resizeEventArgs); this.hScrollbar.Position = new Vector2(0, this.Height - ScrollBar.DEFAULT_SCROLLBAR_SIZE); this.hScrollbar.Size = new Vector2(this.Width - ScrollBar.DEFAULT_SCROLLBAR_SIZE, ScrollBar.DEFAULT_SCROLLBAR_SIZE); this.vScrollbar.Position = new Vector2(this.Width - ScrollBar.DEFAULT_SCROLLBAR_SIZE, 0); this.vScrollbar.Size = new Vector2(ScrollBar.DEFAULT_SCROLLBAR_SIZE, this.Height - ScrollBar.DEFAULT_SCROLLBAR_SIZE); this.FixScrollbarMinMax(); }
protected override void OnResize(ResizeEventArgs e) { base.OnResize(e); CalcScrolling(); // Crappy fix to certain scrolling issue //if (sbVert != null) sbVert.Value -= 1; //if (sbHorz != null) sbHorz.Value -= 1; }
private void Bars_Resize(object sender, ResizeEventArgs e) { AdjustMargins(); }
void webView_ResizeComplete(object sender, ResizeEventArgs e) { }
protected override void OnResize(ResizeEventArgs e) { base.OnResize(e); ItemsChanged(); }
protected override void OnResize(ResizeEventArgs e) { CalcLayout(); base.OnResize(e); }
protected override void OnResize(ResizeEventArgs e) { base.OnResize(e); selection.Clear(); SetupBars(); }
protected override void OnResize(ResizeEventArgs e) { base.OnResize(e); }
private void OnResize(ResizeEventArgs e) { mode.Width = e.Width; mode.Height = e.Height; if (this.Resize != null) { this.Resize(this, e); } }