org.rajawali3d.renderer / ISurfaceRenderer / onRenderSurfaceCreated

onRenderSurfaceCreated

abstract fun onRenderSurfaceCreated(config: EGLConfig!, gl: GL10!, width: Int, height: Int): Unit

This corresponds to TextureView.SurfaceTextureListener#onSurfaceTextureAvailable(SurfaceTexture, int, int) and GLSurfaceView.Renderer#onSurfaceCreated(GL10, EGLConfig). Unused parameters are passed as null or -1.

Parameters

config - EGLConfig!: config. This is used if the surface is GL10 type (SurfaceView).

gl - GL10!: GL10 for rendering.

width - Int: width The surface width in pixels.

height - Int: height The surface height in pixels.

abstract fun onRenderSurfaceCreated(config: EGLConfig!, gl: GL10!, width: Int, height: Int): Unit

This corresponds to TextureView.SurfaceTextureListener#onSurfaceTextureAvailable(SurfaceTexture, int, int) and GLSurfaceView.Renderer#onSurfaceCreated(GL10, EGLConfig). Unused parameters are passed as null or -1.

Parameters

config - EGLConfig!: config. This is used if the surface is GL10 type (SurfaceView).

gl - GL10!: GL10 for rendering.

width - Int: width The surface width in pixels.

height - Int: height The surface height in pixels.