Interface IRenderSurfaceRenderer
Defines interface for renderer which is used to render content of IRenderSurface
Implements
Namespace:
Assembly: .dll
Syntax
public interface IRenderSurfaceRenderer extends IDrawable
Methods
onSurfaceAttached(IRenderSurface surface)
Called when renderer is attached to new IRenderSurface instance
Declaration
public abstract void onSurfaceAttached(IRenderSurface surface)
Parameters
| Type | Name | Description |
|---|---|---|
| IRenderSurface | surface | The target render surface |
onSurfaceDetached(IRenderSurface surface)
Called when renderer is detached from current IRenderSurface instance
Declaration
public abstract void onSurfaceDetached(IRenderSurface surface)
Parameters
| Type | Name | Description |
|---|---|---|
| IRenderSurface | surface | The target render surface |
onSurfaceSizeChanged(int width, int height, int oldWidth, int oldHeight)
Called when size of currently attached IRenderSurface has changed
Declaration
public abstract void onSurfaceSizeChanged(int width, int height, int oldWidth, int oldHeight)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | The new width in pixels |
| int | height | The new height in pixels |
| int | oldWidth | The old width in pixels |
| int | oldHeight | The new height in pixels |