Skip to content

Android.Opengl.GLES20 is missing constant for GL_CULL_FACE. #8612

@AngryKittyMeow

Description

@AngryKittyMeow

Android application type

Classic Xamarin.Android (MonoAndroid13.0, etc.)

Affected platform version

Anything using Android.opengl

Description

In order to cull faces in opengl, the developer needs to call glEnable(GL_CULL_FACE);. There is no such enumeration in Android.Opengl. There is a work-around. If the developer manually passes in 0x0B44 into glEnable then the developer can enable face culling. Without knowing this little cheat, it is not possible to enable face culling using Android.opengl as far as I can tell.
I'm sorry if this isn't a great issue report. I'm not a professional software developer, just a hobbyist.

Steps to Reproduce

Just try to look for an enum to pass into glEnable( ) that will activate face culling in an opengl project.

Did you find any workaround?

Yes, manually pass in 0x0B44 into glEnable() in order to activate face culling.

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

Area: Mono.AndroidIssues with the Android API binding (Mono.Android.dll).bugComponent does not function as intended.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions