public interface IRenderSurfaceRenderer extends IDrawable
IRenderSurface
Modifier and Type | Method and Description |
---|---|
void |
onSurfaceAttached(IRenderSurface surface)
Called when renderer is attached to new
IRenderSurface instance |
void |
onSurfaceDetached(IRenderSurface surface)
Called when renderer is detached from current
IRenderSurface instance |
void |
onSurfaceSizeChanged(int width,
int height,
int oldWidth,
int oldHeight)
Called when size of currently attached
IRenderSurface has changed |
void onSurfaceAttached(IRenderSurface surface)
IRenderSurface
instancesurface
- The target render surfacevoid onSurfaceDetached(IRenderSurface surface)
IRenderSurface
instancesurface
- The target render surfacevoid onSurfaceSizeChanged(int width, int height, int oldWidth, int oldHeight)
IRenderSurface
has changedwidth
- The new width in pixelsheight
- The new height in pixelsoldWidth
- The old width in pixelsoldHeight
- The new height in pixels