开发者

How to Use OpenGL in android? [closed]

开发者 https://www.devze.com 2023-03-15 22:24 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I want to draw 开发者_运维百科circle ,rectangle etc in my application. can any one suggest me how to use opengl in android? and if any tutorial could u please share..


You must create a custom View subclass, override its draw method and use an OpenGLContext to draw. See the OpenGL topic in the Android documentation.

If you only need to draw some geometric primitives and performance is not a major concern (that is - you are making almost anything that is not a game), you will probably want to use the Drawable objects in android.graphics instead.

0

精彩评论

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