Android Extra line shows OpenGL GL_Line -


i have following...

glfloat test[8] = {-0.3f,-0.4f,0.3f,0.4f,0.2f,-0.4f,-0.2f,0.4f}; glvertexattribpointer(0, 2, gl_float, gl_false, 0, test); glenablevertexattribarray(0); gldrawarrays(gl_lines, 0, 8); 

the problem when rendered looks this...

enter image description here

can me missing? new opengl

oops found it...

gldrawarrays(gl_lines, 0, 8); 

the 8 here thought number of entries in array number of vectors (2 points per vector). dividing 8 2 (4) gives expected results.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -