GLTextureView.IRenderer.OnSurfaceChanged(IGL10, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when the surface changed size.
public void OnSurfaceChanged(Javax.Microedition.Khronos.Opengles.IGL10 gl, int width, int height);
Parameters
- gl
- IGL10
The GL interface.
- width
- Int32
The new width of the surface.
- height
- Int32
The new height of the surface.
Remarks
Called after the surface is created and whenever the OpenGL surface size changes.
Typically you will set your viewport here. If your camera is fixed then you could also set your projection matrix here.