SetDimensions() публичный Метод

Sets the dimensions of the render context provider.
public SetDimensions ( int width, int height ) : void
width int Width.
height int Height.
Результат void
Пример #1
0
        protected override void OnSizeChanged(EventArgs e)
        {
            base.OnSizeChanged(e);

            RenderContext renderContext = this.renderContext;

            if (renderContext != null)
            {
                renderContext.MakeCurrent();

                renderContext.SetDimensions(this.Width, this.Height);

                OpenGL.Viewport(0, 0, this.Width, this.Height);

                this.Invalidate();
            }
        }