OpenGL issue on Android

I am new to animation on Android. For 3D animations, I have to use OpenGL to make it look more fluid.

Is it possible to convert a Drawable to which I draw some kind of rectangle or circle on the canvas, and I want this conversion to View using OpenGL. Is this possible, and if so, how?

Can someone please tell me what the first item in FEATURES does in this URL http://developer.android.com/reference/android/opengl/GLSurfaceView.html

+6
source share
2 answers

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

+3
source

OpenGL does not work at this level. OpenGL is just a drawing API that gives you β€œpens and brushes” to draw on canvas provided by the operating system. Any OS-specific concepts, such as Drawables and Views, are beyond the scope of OpenGL and will not be handled by it.

However, it is possible that if you talk in detail about what you want to achieve, we can help.

+3
source

Source: https://habr.com/ru/post/891784/


All Articles