KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If I have custom renderer in opengl-es prepared: public void onDrawFrame(GL10 gl) { gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); // here i want to draw line from [0, 0, 0] to [1, 0, 0] } What is the easiest and shortest way to draw line? In ordinary OpenGL it is: glBegin(GL_LINES); glVertex3f(0, 0, 0); glVertex3f(1, 0, 0); glEnd(); But how can i get the same effect with OpenGL ES?
Tags (comma-separated)
Save Edits
Cancel