I’ve to draw squre using a lines, which will look like as following url.
http://www.thinkingwriting.qmul.ac.uk/wishees/tutorials/square.gif
Could you please tell me how to draw it in android using opengls GL_LINES or GL_LINES_STRIP
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.
This is fairly simple, assuming you already have a working OpenGL context:
glLineWidth)GL_LINE_LOOPorGL_LINES(depending how you set up your vertices)Take a look at this introduction to vertex buffers to get an idea of where to start. There are some much simpler tutorials but this one offers more background than most.