Edit

GLTextureView.IRenderer.OnSurfaceChanged(IGL10, Int32, Int32) Method

Definition

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.

Applies to