开发者

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 circ开发者_Python百科le 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


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜