Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL problem on Android

I'm quite new to animations in Android. For 3D animations I have to use OpenGL to make it look more fluid.

Is it possible to convert a Drawable that is i draw some rectangle or circle on a canvas and i want that to convert into a View using OpenGL. Is that possible and if so then how?

Can anyone please let me know what does the first point in the FEATURES say in this URL http://developer.android.com/reference/android/opengl/GLSurfaceView.html

like image 382
Lavanya Avatar asked Jul 01 '11 03:07

Lavanya


People also ask

Can I update OpenGL version Android?

The OpenGL drivers on Android are not user upgradable. Newer versions are only issued by the vendor (ARM, Qualcomm, Vivante) to their partners (Samsung, LG, Lenovo, Xiaomi, Oppo etc) which then customise and integrate them into their device Android firmware image.

How do I fix OpenGL 2.0 error?

The usual fix for this error, is to uninstall and re-install your video card device drivers, though an older version of that driver may be best . ..


2 Answers

Well, you can try to convert a Drawable to a bitmap and then map this bitmap on a 3D surface in OpenGL as a texture.

like image 107
Abhinav Avatar answered Sep 28 '22 05:09

Abhinav


OpenGL doesn't operate on that level. OpenGL is just a drawing API, giving you "pens and brushes" to draw on some canvas provided by the operating system. Any OS specific concepts like Drawables and Views are out of the scope of OpenGL and won't be dealt with by it.

However maybe if you described in detail what it is you want to achieve we may be able to help.

like image 25
datenwolf Avatar answered Sep 28 '22 06:09

datenwolf