onSurfaceChanged返回的宽度和高度是多少?

时间:2018-02-20 10:39:55

标签: android

我想知道对应于以下委托方法返回的宽度和高度:

public void onSurfaceChanged(GL10 gl, int width, int height)
{
}

在我的Samsung S8上,它返回以下值:

02-20 11:36:42.790 D/GLSurfaceRenderer: onSurfaceChanged
02-20 11:36:42.790 D/MyApp: onSurfaceChanged viewWidth 1080
02-20 11:36:42.790 D/MyApp: onSurfaceChanged viewHeight 2004
02-20 11:36:43.140 D/GLSurfaceRenderer: onSurfaceChanged
02-20 11:36:43.141 D/MyApp: onSurfaceChanged viewWidth 1080
02-20 11:36:43.141 D/MyApp: onSurfaceChanged viewHeight 2076

我不明白它对应的内容。

0 个答案:

没有答案