Can anyone give me an simple example of creating a button using OpenGL in Android?
I googled but did not find any suitable link.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are frameworks such as Cocos2d you may use. If you want to create it from scratch it’s really just a textured rectangle as MadcoreTom commented, you do need to still write all the handling with touches and probably some states. Another problem is putting on some text from string. But again in most cases it’s just a textured rectangle and an if statement…