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...
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
Post a Comment