public void OnSurfaceCreated(IGL10 gl, Javax.Microedition.Khronos.Egl.EGLConfig config) { gl.GlClearColor(0.0f, 0.0f, 0.0f, 0.5f); gl.GlClearDepthf(1.0f); gl.GlEnable(IGL10Constants.GL_DEPTH_TEST); gl.GlDepthFunc(IGL10Constants.GL_LEQUAL); gl.GlHint(IGL10Constants.GL_PERSPECTIVE_CORRECTION_HINT, IGL10Constants.GL_NICEST); }
public void OnSurfaceCreated(IGL10 gl, Javax.Microedition.Khronos.Egl.EGLConfig config) { // Set the background frame color // ������Ӱƽ�� gl.GlShadeModel(GL10.GlSmooth); // ��ɫ���� gl.GlClearColor(0.5f, 0.6f, 0.6f, 1.0f); // ������Ȼ��� gl.GlClearDepthf(1.0f); // ������Ȳ��� gl.GlEnable(GL10.GlDepthTest); // ������Ȳ��Ե����� gl.GlDepthFunc(GL10.GlLequal); // ����ϵͳ���ӽ������� gl.GlHint(GL10.GlPerspectiveCorrectionHint, GL10.GlNicest); }