djcouchycouch
djcouchycouch

Reputation: 12832

Can I choose the OpenGL version my Android app uses at runtime?

Does Android support being able to choose which version of OpenGLES at runtime?

Say I want to run my game on an old Android device that supports only 1.1 and a new Android device that has 2.0. Can I detect and then choose which version of OpenGLES to instantiate?

Upvotes: 1

Views: 1023

Answers (2)

Maximus
Maximus

Reputation: 8431

Might android:glEsVersion work as well from the Manifest?

I use this to target 1.1..

<uses-feature android:required="true" android:glEsVersion="0x00010001" />

Or is the question more like, I want to write code that can use either version and change the code being used at runtime...

Upvotes: 0

genpfault
genpfault

Reputation: 52167

You sure can.

Upvotes: 1

Related Questions