dotnet / android

.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
MIT License
1.89k stars 523 forks source link

[Mono.Android] Fix omitted Gl* constants. #9009

Closed jpobst closed 2 weeks ago

jpobst commented 2 weeks ago

Fixes: https://github.com/xamarin/xamarin-android/issues/8612

Some OpenGL constants get removed because they conflict with method names after they go through our capitalization correction. For example, GLES20.GL_CULL_FACE becomes GLES20.GlCullFace which then conflicts with the method named GLES20.GlCullFace (int):

warning BG8401: Skipping 'Android.Opengl.GLES20.GlCullFace' due to a duplicate method name. (Java type: 'android.opengl.GLES20')

References:

Fix these cases by using metadata to assign explicit managedName values that are the expected constant name + Const to avoid the name collision.